Because data can be relocated among volumes in a multi-volume file system, you can convert a multi-volume file system to a traditional, single volume file system by moving all file system data onto a single volume. Such a conversion is useful to users who would like to try using a multi-volume file system or SmartTier, but are not committed to using a multi-volume file system permanently.
See About SmartTier.
There are three restrictions to this operation:
The single volume must be the first volume in the volume set
The first volume must have sufficient space to hold all of the data and file system metadata
The volume cannot have any allocation policies that restrict the movement of data
The following procedure converts an existing multi-volume file system, /mnt1
, of the volume set vset1
, to a single volume file system, /mnt1
, on volume vol1
in diskgroup dg1
.
Note: |
Steps 5, 6, 7, and 8 are optional, and can be performed if you prefer to remove the wrapper of the volume set object. |
Converting to a single volume file system
# df /mnt1 /mnt1 (/dev/vx/dsk/dg1/vol1):16777216 blocks 3443528 files
# fsvoladm resize /mnt1 vol1 150g
# fsppadm unassign /mnt1
# fsvoladm remove /mnt1 vol2 # vxvset -g dg1 rmvol vset1 vol2 # fsvoladm remove /mnt1 vol3 # vxvset -g dg1 rmvol vset1 vol3
Before removing a volume, the file system attempts to relocate the files on that volume. Successful relocation requires space on another volume, and no allocation policies can be enforced that pin files to that volume. The time for the command to complete is proportional to the amount of data that must be relocated.
# umount /mnt1
# vxvset -g dg1 rmvol vset1 vol1
/etc/fstab
file to replace the volume set name, vset1
, with the volume device name, vol1
.# mount -t vxfs /dev/vx/dsk/dg1/vol1 /mnt1