Veritas File System 5.1 SP1 Administrator"s Guide (5900-1499, April 2011)

To add a volume to a multi-volume file system
Add a new volume to a multi-volume file system:
# fsvoladm add /mnt1 vol2 256m
Removing a volume from a multi-volume file system
Use the fsvoladm remove command to remove a volume from a multi-volume file
system. The fsvoladm remove command fails if the volume being removed is the
only volume in any allocation policy.
To remove a volume from a multi-volume file system
Remove a volume from a multi-volume file system:
# fsvoladm remove /mnt1 vol2
Forcibly removing a volume
If you must forcibly remove a volume from a file system, such as if a volume is
permanently destroyed and you want to clean up the dangling pointers to the lost
volume, use the fsck -o zapvol=volname command. The zapvol option performs
a full file system check and zaps all inodes that refer to the specified volume. The
fsck command prints the inode numbers of all files that the command destroys;
the file names are not printed. The zapvol option only affects regular files if used
on a dataonly volume. However, it could destroy structural files if used on a
metadataok volume, which can make the file system unrecoverable. Therefore,
the zapvol option should be used with caution on metadataok volumes.
Moving volume 0
Volume 0 in a multi-volume file system cannot be removed from the file system,
but you can move volume 0 to different storage using the vxassist move command.
The vxassist command creates any necessary temporary mirrors and cleans up
the mirrors at the end of the operation.
To move volume 0
Move volume 0:
# vxassist -g mydg move vol1 \!mydg
97Multi-volume file systems
Adding a volume to and removing a volume from a multi-volume file system