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
Determine the version of the volume's diskgroup:
# vxdg list dg1 | grep version: | awk '{ print $2 }' 105
If the version is less than 110, upgrade the diskgroup:
# vxdg upgrade dg1
Determine the disk layout version of the file system:
# vxupgrade /mnt1 Version 6
If the disk layout version is 6, upgrade to Version 7:
# vxupgrade -n 7 /mnt1
# umount /mnt1
Convert the volume into a volume set:
# vxvset -g dg1 make vset1 vol1
Edit the /etc/fstab
file to replace the volume device name, vol1
, with the volume set name, vset1
.
# mount -t vxfs /dev/vx/dsk/dg1/vset1 /mnt1
As necessary, create and add volumes to the volume set:
# vxassist -g dg1 make vol2 256M # vxvset -g dg1 addvol vset1 vol2
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
Add the new volumes to the file system:
# fsvoladm add /mnt1 vol2 256m