Converting a single volume file system to a multi-volume file system

The following procedure converts a traditional, single volume file system, /mnt1, on a single volume vol1 in the diskgroup dg1 to a multi-volume file system.

To convert a single volume file system

  1. Determine the version of the volume's diskgroup:
      # vxdg list dg1 | grep version: | awk '{ print $2 }'
      105
  2. If the version is less than 110, upgrade the diskgroup:
      # vxdg upgrade dg1
  3. Determine the disk layout version of the file system:
      # vxupgrade /mnt1
      Version 6
  4. If the disk layout version is 6, upgrade to Version 7:
      # vxupgrade -n 7 /mnt1
  5. Unmount the file system:
      # umount /mnt1
  6. Convert the volume into a volume set:
      # vxvset -g dg1 make vset1 vol1
  7. Edit the /etc/fstab file to replace the volume device name, vol1, with the volume set name, vset1.
  8. Mount the file system:
      # mount -t vxfs /dev/vx/dsk/dg1/vset1 /mnt1
  9. As necessary, create and add volumes to the volume set:
      # vxassist -g dg1 make vol2 256M
      # vxvset -g dg1 addvol vset1 vol2
  10. Set the placement class tags on all volumes that do not have a tag:
      # vxassist -g dg1 settag vol1 vxfs.placement_class.tier1
      # vxassist -g dg1 settag vol2 vxfs.placement_class.tier2