Clear Scsi reverse on Hitachi disks

dlmpr – utility for clearing Hitachi SAN HDLM persistent reservation
Description

The persistent reservation of a logical unit (LU) may not be canceled due to some reason when multiple hosts share a volume group rather than making up a cluster configuration using HACMP. In this case, this utility clears the Reservation Key to cancel the persistent reservation.

# /usr/DynamicLinkManager/bin/dlmpr {{-k | -c} [hdiskn] | -h}

where:

-k: specify this parameter to display the Reservation Key. The utility displays an asterisk (*) for a Reservation Key of another host. If the Reservation Key is not set, [0x0000000000000000] is displayed.

-Regist Key: the registered Keys are displayed.

-Key Count: the number of registered Keys is displayed.

-c: specify this parameter to clear the Reservation Key.

hdiskn: specify the physical volume (hdiskn) for which you want to display the Reservation Key. You can specify more than one volume. Note: If you do not specify this parameter, the utility displays the Reservation Keys for all the physical volumes.

-a: when multiple physical volumes (hdiskn) are specified, even if an error occurs during processing, the processing continues for all physical volumes.

-h: displays the format of the utility for clearing HDLM persistent reservation.

Note: [0x????????????????] appears for Reservation Key if the destination storage subsystem does not support the persistent reservation or if a hardware error occurs.

Example to execute the dlmpr utility to display the Reservation Keys for hdisk1, hdisk2, hdisk3, hdisk4, hdisk5, and hdisk6:

# /usr/DynamicLinkManager/bin/dlmpr -k hdisk1 hdisk2 hdisk3 hdisk4 hdisk5 hdisk6

self Reservation Key : [0xaaaaaaaaaaaaaaaa]
hdisk1 Reservation Key : [0xaaaaaaaaaaaaaaaa]
Regist Key : [0xaaaaaaaaaaaaaaaa], Key Count : 1
hdisk2 Reservation Key : [0xbbbbbbbbbbbbbbbb]*
Regist Key : [0xaaaaaaaaaaaaaaaa], Key Count : 2
Regist Key : [0xbbbbbbbbbbbbbbbb], Key Count : 2
hdisk3 Reservation Key : [0xbbbbbbbbbbbbbbbb]*
Regist Key : [0xbbbbbbbbbbbbbbbb], Key Count : 4
hdisk4 Reservation Key : [0xaaaaaaaaaaaaaaaa]
Regist Key : [0xaaaaaaaaaaaaaaaa], Key Count : 4
hdisk5 Reservation Key : [0x0000000000000000]
hdisk6 Reservation Key : [0x0000000000000000]
Regist Key : [0xaaaaaaaaaaaaaaaa], Key Count : 1
Regist Key : [0xbbbbbbbbbbbbbbbb], Key Count : 1

Example to execute the dlmpr utility to clear the Reservation Keys for other hosts (marked by an asterisk (*)):

# /usr/DynamicLinkManager/bin/dlmpr -c hdisk2 hdisk3

Example

dlmpr -k hdisk1; dlmpr -c hdisk2

3 thoughts on “Clear Scsi reverse on Hitachi disks

  1. The emc version is called emcpowerreset, there is also a TotalStorage version. pprootdev is another interesting EMC command. Today, it appears that my issues are with Oracle ACM which writes over the PVID on the disk, apparently you aren’t supposed to use the PVID, which is a nightmare from an admin perspective.

  2. # /buxs/bin/dlmpr -k hdiskpower5
    self Reservation Key : [0x000000050f24a1d9]
    hdiskpower5 Reservation Key : [0x????????????????]
    KAPL10665-I The dlmpr utility completed.
    # /buxs/bin/dlmpr -c hdiskpower5
    KAPL10641-I Reservation Key will now be cleared. Is this OK? [y/n]:y
    KAPL10649-E hdiskpower5 : An attempt to perform Reservation Key clear processing has failed.
    KAPL10665-I The dlmpr utility completed.

  3. I get the following error when there is a defined child on hdiskpower5:

    # ./emcpowerreset fcs0 hdiskpower5
    /dev/hdiskpower5: Permission denied

    # rmdev -l 22_hdiskpower5
    22_hdiskpower5 Defined
    # ./emcpowerreset fscsi1 hdiskpower5

    This seemed to work

Leave a Reply

Your email address will not be published. Required fields are marked *