Enabling volume protection

To prevent active volumes or host mappings from being deleted inadvertently, the system supports a global setting that prevents these objects from being deleted if the system detects that they had recent I/O activity.

Use the chsystem command to set an interval at which the volume must be idle before it can be deleted from the system. Any command that is affected by this setting will fail. If the -force parameter is used, the deletion fails if the volume has not been idle for the specified interval.

The following commands are affected by this setting:
  • rmvdisk
  • rmvolume
  • rmvdiskcopy
  • rmvdiskhostmap
  • rmmdiskgrp
  • rmhostiogrp
  • rmhost
  • rmhostport

To enable volume protection by setting an inactive interval to prevent deletion of volumes, complete the following step:

Issue svctask chsystem -vdiskprotectionenabled yes -vdiskprotectiontime 60.
The parameter -vdiskprotectionenabled yes enables volume protection and the -vdiskprotectiontime parameter indicates how long a volume must be inactive before it can be deleted. Volumes can be deleted only if they are inactive for over 60 minutes.