content_image/969217.jpg
## 7.9.8 Deleting a volume 

Use the rmvdisk  command to delete a volume. Consider these scenarios: 

<img src='content_image/969217.jpg'>

IBM_2145:ITSO_CLUSTER:superuser>rmvdisk volume_A 

This command deletes the  volume_A volume from the IBM Spectrum Virtualize configuration. If the volume is assigned to a host, you must use the -force  flag to delete the volume, as shown in Example 7-18. 

## 7.9.9 Volume delete protection 

IBM_2145:ITSO_CLUSTER:superuser>rmvdisk -force volume_A 

You can prevent active volumes or host mappings from being deleted inadvertently as described in this section. A global setting prevents these objects from being deleted if the system detects recent I/O activity to these objects. 

Use the chsystem  command to set the time interval that the volume must be idle. During this interval, the volume cannot be deleted from the system. This setting affects the following commands: 

GLYPH<SM590000> rmvdisk 

GLYPH<SM590000> rmvolume 

GLYPH<SM590000> rmvdiskcopy 

GLYPH<SM590000> rmvdiskhostmap 

