Converting to a single volume file system

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

  1. Determine if the first volume in the volume set, which is identified as device number 0, has the capacity to receive the data from the other volumes that will be removed:

      # df /mnt1
      /mnt1  (/dev/vx/dsk/dg1/vol1):16777216 blocks  3443528 files
  2. If the first volume does not have sufficient capacity, grow the volume to a sufficient size:

      # fsvoladm resize /mnt1 vol1 150g
  3. Remove all existing allocation policies:

      # fsppadm unassign /mnt1
  4. Remove all volumes except the first volume in the volume set:

      # 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.

  5. Unmount the file system:

      # umount /mnt1
  6. Remove the volume from the volume set:

      # vxvset -g dg1 rmvol vset1 vol1
  7. Edit the /etc/filesystems file to replace the volume set name, vset1, with the volume device name, vol1.

  8. Mount the file system:

      # mount -V vxfs /dev/vx/dsk/dg1/vol1 /mnt1