Modifications to the AdvFS rmvol utility now allow it to accept more than one volume for removal on the command line. In the following example, rmvol removes three volumes from a domain:
# rmvol dsk5b dsk3a dsk4a rmvol_dmn1
rmvol: Removing 3 volume(s) from domain 'rmvol_dmn1'
rmvol: Removing volume '/dev/disk/dsk5b' from domain 'rmvol_dmn1'
rmvol: Removed volume '/dev/disk/dsk5b' from domain 'rmvol_dmn1'
rmvol: Removing volume '/dev/disk/dsk3a' from domain 'rmvol_dmn1'
rmvol: Removed volume '/dev/disk/dsk3a' from domain 'rmvol_dmn1'
rmvol: Removing volume '/dev/disk/dsk4a' from domain 'rmvol_dmn1'
rmvol: Removed volume '/dev/disk/dsk4a' from domain 'rmvol_dmn1'
rmvol: Removed 3 volume(s) from domain 'rmvol_dmn1' |
Also, the new rmvol -s option performs a free-space check before beginning rmvol operations. If calculations determine that not enough free space will be available for the complete migration of all data for all volumes requested for removal, rmvol will fail before migrating any data. Upon failure, the amount of free space needed for complete migration of all data is displayed. For example:
# rmvol -s dsk1a dsk3b test
rmvol: Removing 2 volume(s) from domain 'test'
rmvol: Not enough free space for complete migration of all volumes
requested for removal.
Free space needed: 65592K
Free space available: 46296K
rmvol: Can't remove 2 volume(s) from domain 'test' |
See the revised rmvol(8) reference page included in this kit for more information and additional examples.