Here are the various outcomes if you use the cfgadm command to remove a tape device without the RCM script.
If you use the cfgadm command and the backup application is not using the tape device, the operation succeeds.
If you use the cfgadm command and the backup application is using the tape device, the operation fails.
Here are the various outcomes if you use the cfgadm command to remove a tape device with the RCM script.
If you use the cfgadm command and the backup application is not using the tape device, the operation succeeds.
If you use the cfgadm command without the -f option and the backup application is using the tape device, the operation fails with an error message similar to the following:
tape backup in progress pid=... |
If you use the cfgadm -f command and the backup application is using the tape device, the script stops the backup application and the cfgadm operation succeeds.