Removes one or more volumes from a storage pool and redistributes the contents to other volumes in the same storage pool.
>>-rmvol--+----------+--+-------------------------+-------------> +- –?----+ '- –client--client_name-' +- –h----+ '- –help-' .-------------. V | >--+-------+--+-----------+--+---volume_name-+-+--------------->< '- –f-' '- –quiet-' '- – -----------'
The –f parameter is not allowed when you remove volumes from the system storage pool.
You must have Administrator privileges to use the command.
You must be logged in to the operating system on the engine hosting the master metadata server to run this command.
The cluster must not be in an offline state when you run this command.
You do not need to deactivate a volume before you remove it.
Before removing a volume, SAN File System moves (drains) the contents of the volume across other available volumes in the same storage pool. If the storage pool does not have sufficient space available in other volumes to move all of the data contained in the specified volume, the removal fails and the metadata server suspends the volume (the metadata server cannot allocate new data on that volume).
A volume must be empty to be removed from a storage pool. If one or more files cannot be moved to another volume in the same storage pool, you can specify the –f parameter to discard those files. If you do not specify the –f parameter and the files cannot be removed, the removal fails.
If an error occurs during volume removal, the volume remains in a suspended state so new allocations will not be satisfied from the volume being removed. To activate the volume, use the activatevol command.
You must explicitly remove a volume if you want to reuse it. Removing a volume removes the label and frees the device for reuse. If you want to add a device that is in the in-use state, you must remove it using the –f option before you can add it as a volume.
sfscli> rmvol -client client02 vol1 vol2 Are you sure you want to delete volume vol1? [y/n] Y Volume vol1 removed. Are you sure you want to delete volume vol21? [y/n] Y Volume vol2 removed.
Parent topic: Administrative commands
Related reference
activatevol
chvol
expandvol
lslun
lsvol
mkvol
rediscoverluns
reportvolfiles
suspendvol