Converting to a single volume file system

Article:HOWTO59514  |  Created: 2011-10-12  |  Updated: 2011-10-12  |  Article URL http://www.symantec.com/docs/HOWTO59514
Article Type
How To

Product(s)

Environment

Subject


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

    On AIX:

    Edit the /etc/filesystems file to replace the volume set name, vset1, with the volume device name, vol1.

    On HP-UX and Linux:

    Edit the /etc/fstab file to replace the volume set name, vset1, with the volume device name, vol1.

    On Solaris:

    Edit the /etc/vfstab file to replace the volume set name, vset1, with the volume device name, vol1.

  7. Mount the file system:

    On AIX:

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

    On HP-UX and Solaris:

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

    On Linux:

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

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


Legacy ID



uxrt-51sp1_v40221955_v63475671


Article URL http://www.symantec.com/docs/HOWTO59514


Terms of use for this information are found in Legal Notices