When a multi-volume file system is created, all volumes are dataonly, except volume zero, which is used to store the file system's metadata. The volume availability flag of volume zero cannot be set to dataonly.
As metadata cannot be allocated from dataonly volumes, enough metadata space should be allocated using metadataok volumes. The "file system out of space" error occurs if there is insufficient metadata space available, even if the df command shows that there is free space in the file system. The fsvoladm command can be used to see the free space in each volume and set the availability flag of the volume.
Unless otherwise specified, VxFS commands function the same on multi-volume file systems as the commands do on single-volume file systems.
The following procedure is an example of creating a multi-volume file system.
Example of creating a multi-volume file system
# mkfs -t vxfs /dev/vx/rdsk/dg1/myvset version 10 layout 134217728 sectors, 67108864 blocks of size 1024, log size 65536 blocks rcq size 4096 blocks largefiles supported maxlink supported
After the file system is created, VxFS allocates space from the different volumes within the volume set.
# mount -t vxfs /dev/vx/dsk/dg1/myvset /mnt1 # fsvoladm -H list /mnt1 devid size used avail name 0 20 GB 10 GB 10 GB vol1 1 30 TB 10 TB 20 TB vol2
# vxassist -g dg1 make vol5 50m # vxvset -g dg1 addvol myvset vol5 # fsvoladm add /mnt1 vol5 50m # fsvoladm -H list /mnt1 ddevid size used avail name 0 10 GB 74.6 MB 9.93 GB vol1 1 20 GB 16 KB 20.0 GB vol2 2 50 MB 16 KB 50.0 MB vol5
# fsvoladm queryflags /mnt1 volname flags vol1 metadataok vol2 dataonly vol5 dataonly
# fsvoladm clearflags dataonly /mnt1 vol2 # fsvoladm queryflags /mnt1 volname flags vol1 metadataok vol2 metadataok vol5 dataonly
More Information