Hitachi Dynamic Link Manager Software Users Guide for Linux

Key Count
The number of registered keys is displayed.
-c
Specify this parameter to clear the reservation key.
sdn
Specify the SCSI device (sdn) for which you want to display or clear the
reservation key. You can specify more than one SCSI device.
If you omit this parameter, the utility displays or clears the reservation
keys for all SCSI devices.
-a
Even if an error occurs during processing, processing continues for all
remaining SCSI devices.
-h
Displays the format of the utility for clearing HDLM persistent reservation.
Example
To check the reservation keys, and then clear a reservation key:
1. Execute the dlmpr utility to display the reservation keys for sda, sdb,
sdc, sdd, sde, and sdf.
# /opt/DynamicLinkManager/bin/dlmpr -k sda sdb sdc sdd sde sdf
sda Reservation Key : [0xaaaaaaaaaaaaaaaa]
Regist Key : [0xaaaaaaaaaaaaaaaa], Key Count : 1
sdb Reservation Key : [0xbbbbbbbbbbbbbbbb]
Regist Key : [0xaaaaaaaaaaaaaaaa], Key Count : 2
Regist Key : [0xbbbbbbbbbbbbbbbb], Key Count : 2
sdc Reservation Key : [0xbbbbbbbbbbbbbbbb]
Regist Key : [0xbbbbbbbbbbbbbbbb], Key Count : 4
sdd Reservation Key : [0xaaaaaaaaaaaaaaaa]
Regist Key : [0xaaaaaaaaaaaaaaaa], Key Count : 4
sde Reservation Key : [0x0000000000000000]
sdf Reservation Key : [0x0000000000000000]
Regist Key : [0xaaaaaaaaaaaaaaaa], Key Count : 1
Regist Key : [0xbbbbbbbbbbbbbbbb], Key Count : 1
2. Execute the dlmpr utility to clear the reservation key.
# /opt/DynamicLinkManager/bin/dlmpr -c sdb sdc
3. The confirmation message appears. Enter y to clear. Otherwise, enter n.
KAPL10641-I Reservation Key will now be cleared. Is this OK?
[y/n]:y
KAPL10642-I Reservation Key of sdb was cleared.
KAPL10642-I Reservation Key of sdc was cleared.
7-36
Utility Reference
Hitachi Dynamic Link Manager (for Linux®) User Guide