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 disk group dg1 to a multi-volume file system.

To convert a single volume file system to a multi-volume file system

  1. Determine the version of the volume's disk group:
      # vxdg list dg1 | grep version: | awk '{ print $2 }'
      90
  2. If the version is less than 110, upgrade the disk group:
      # vxdg upgrade dg1
  3. Determine the disk layout version of the file system:
      # vxupgrade /mnt1
      /mnt1: vxfs file system version 7 layout
  4. If the disk layout version is less than 7, upgrade to a disk layout version that is greater than or equal to 7, as per the requirement.

    Currently we can upgrade upto the disk layout version 10.

    #vxupgrade -n 8 /mnt1
    # vxupgrade -n 9 /mnt1
    # vxupgrade -n 10 /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