Prevent/Allow Medium Removal (1Eh)

Prevent/Allow Medium Removal (1Eh) locks or unlocks the CAPs.

The library does not maintain a separate "prevent" or "allow" state for each initiator. There is a single state for all initiators. Therefore, if any initiator sends a Prevent Medium Removal command, the library locks the CAPs. If any initiator sends an Allow Media Removal command, the library unlocks the CAPs.

Note:

You can also lock or unlock the CAPs from the GUI.

Additionally, the library unlocks the CAPs:

  • During a library power-on or reset
  • After a LUN reset or a target reset
  • After a Persistent Reservation Preempt & Abort command

If a partition has no CAPs, the Prevent/Allow Media command has no effect and returns Good (00h) status. In a partitioned library with a shared CAPs, the library maintains the Prevent/Allow state until the partition owns the CAPs (see Example 2-2).

Prevent

0 = Allow — The library unlocks the CAPs. You can open the CAP using the operator panel.

Note:

When Prevent = 0, the library disregards device reservations and executes the command. For more information, see Reservation Handling.

1 = Prevent — The library locks the CAPs.