Veritas™ File System 5.0.1 Programmer's Reference Guide
Administering volume sets
The following examples show how to administer volume sets.
To convert a volume to a volume set
■ To convert myvol1 to a volume set, use the following function call:
# vxvset make myvset myvol1
To add a volume to a volume set
■ To add myvol2 to the volume set myvset, use the following function call:
# vxvset addvol myvset myvol2
To list volumes of a volume set
■ To list the volumes of myvset, use the following function call:
# vxvset list myvset
To remove a volume from a volume set
■ To remove myvol2 from myvset, use the following function call:
# vxvset rmvol myvset myvol2
Querying the volume set for a file system
The following function calls query a volume set for a file system.
To query all volumes associated with the file system
■ To query all volumes associated with the file system, use the following function
call:
vxfs_vol_enumerate(fd, &count, infop);
To query a single volume
■ To query a single volume, use the following function call:
vxfs_vol_stat(fd, vol_name, infop);
Modifying a volume within a file system
The following function calls modify a volume within a file system.
53Multi-volume support
Volume application programming interfaces