Example of creating a multi-volume file system

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

Product(s)

Environment

Subject


Example of creating a multi-volume file system

The following procedure is an example of creating a multi-volume file system.

To create a multi-volume file system

  1. After a volume set is created, create a VxFS file system by specifying the volume set name as an argument to mkfs:

    On AIX:

      # mkfs -V vxfs /dev/vx/rdsk/rootdg/myvset
      version 7 layout
      327680 sectors, 163840 blocks of size 1024,
      log size 1024 blocks largefiles supported

    On HP-UX or Solaris:

      # mkfs -F vxfs /dev/vx/rdsk/rootdg/myvset
      version 7 layout
      327680 sectors, 163840 blocks of size 1024,
      log size 1024 blocks largefiles supported

    On Linux:

      # mkfs -t vxfs /dev/vx/rdsk/rootdg/myvset
      version 7 layout
      327680 sectors, 163840 blocks of size 1024,
      log size 1024 blocks largefiles supported

    After the file system is created, VxFS allocates space from the different volumes within the volume set.

  2. List the component volumes of the volume set using of the fsvoladm command:

    On AIX:

      # mount -V vxfs /dev/vx/dsk/rootdg/myvset /mnt1
      # fsvoladm list /mnt1
      devid   size     used   avail   name
      0       10240    1280   8960    vol1
      1       51200    16     51184   vol2
      2       51200    16     51184   vol3
      3       51200    16     51184   vol4

    On HP-UX or Solaris:

      # mount -F vxfs /dev/vx/dsk/rootdg/myvset /mnt1
      # fsvoladm list /mnt1
      devid   size     used   avail   name
      0       10240    1280   8960    vol1
      1       51200    16     51184   vol2
      2       51200    16     51184   vol3
      3       51200    16     51184   vol4

    On Linux:

      # mount -t vxfs /dev/vx/dsk/rootdg/myvset /mnt1
      # fsvoladm list /mnt1
      devid   size     used   avail   name
      0       10240    1280   8960    vol1
      1       51200    16     51184   vol2
      2       51200    16     51184   vol3
      3       51200    16     51184   vol4
  3. Add a new volume by adding the volume to the volume set, then adding the volume to the file system:

      # vxassist -g dg1 make vol5 50m
      # vxvset -g dg1 addvol myvset vol5
      # fsvoladm add /mnt1 vol5 50m
      # fsvoladm list /mnt1
      devid   size     used   avail   name
      0       10240    1300   8940    vol1
      1       51200    16     51184   vol2
      2       51200    16     51184   vol3
      3       51200    16     51184   vol4
      4       51200    16     51184   vol5
  4. List the volume availability flags using the fsvoladm command:

      # fsvoladm queryflags /mnt1
      volname    flags
      vol1       metadataok
      vol2       dataonly
      vol3       dataonly
      vol4       dataonly
      vol5       dataonly
  5. Increase the metadata space in the file system using the fsvoladm command:

      # fsvoladm clearflags dataonly /mnt1 vol2
      # fsvoladm queryflags /mnt1
      volname    flags
      vol1       metadataok
      vol2       metadataok
      vol3       dataonly
      vol4       dataonly
      vol5       dataonly

See Creating multi-volume file systems


Legacy ID



uxrt-51sp1_v40221661_v63475671


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


Terms of use for this information are found in Legal Notices