Remove HP P9500 ldev reservation

Have you ever faced issues while deleting an ldev from HP XP or P9500 storage arrays? if yes, this is the right spot where you can find a solution. Most of the time the issue is related to lun reservation either caused by system software or cluster resources and you may not be able to delete it until you remove the reservation. There is an easy method to remove the lun reservation by using a utility which gets installed along with the HP DSM multipathing software, which we install for effectively load balancing the disk.
The utility is called HPprutil.exe, which is usually get installed under C:\Program Files\Hewlett-Packard\HP MPIO DSM\XP DSM\X86 along with HP DSM software.


The command HPPRUTIL DEVICES displays the type of reservation active on each device.

C:\Program Files\Hewlett-Packard\HP MPIO DSM\XP DSM\X86>HPprutil.exe devices
The requested operation is in progress.Please wait......
Device#  Device Name               Scsi Address    Reservation   NT Disk#
--------------------------------------------------------------------------
1        HP      OPEN-V-CM            1.0.0.0           None         Disk 1
2        HP      OPEN-V-CM            1.0.1.1           None         Disk 2
3        HP      OPEN-V-CM            1.0.2.0           None         Disk 3
4        HP      OPEN-V-CM            1.0.2.1           None         Disk 4
5        HP      OPEN-V               1.0.2.4           None         Disk 5
6        HP      OPEN-V               0.0.2.10          PR           Disk 6

The following are the types of reservation:

    1. SCSI       - Indicates a SCSI reservation on the device.
    2. PR         - Indicates a persistent reservation on the device.
    3. None       - Indicates the device is not reserved.
    4. SCSI/PR    - Indicates that a SCSI or persistent reservation exists on the device.

In the above example, you could see that device#6 has persistent reservation and if you try to remove the ldev using management console, it will fail. We can clear the reservation using HPPRUTIL command.

Let see how!

Command to Display and remove reservations present on devices are as follows,

HPPRUTIL DEVICES              : Displays details of reservation on devices.
HPPRUTIL CLEAR DEVICE=<#>     : Clears the reservation present on device #

open command prompt and change the directory to the source where the HPPRUTIL is located and use HPPRUTIL CLEAR DEVICE command.

C:\Program Files\Hewlett-Packard\HP MPIO DSM\XP DSM\X86>HPprutil.exe clear device=6
The requested operation is in progress.Please wait......
HPPRUTIL will attempt to clear the reservation on device 6.
Are you sure you want to continue (y/n)? y

Attempting to clear the reservation on device 6...
Successfully cleared the reservation on device.
C:\Program Files\Hewlett-Packard\HP MPIO DSM\XP DSM\X86>

You can see that the lun reservation has been cleared by the command. Run the command HPPRUTIL DEVICES  to verify the status.

C:\Program Files\Hewlett-Packard\HP MPIO DSM\XP DSM\X86>HPprutil.exe devices
The requested operation is in progress.Please wait......
Device#  Device Name               Scsi Address    Reservation   NT Disk#
--------------------------------------------------------------------------
1        HP      OPEN-V-CM            1.0.1.0           None         Disk 1
2        HP      OPEN-V-CM            0.0.0.1           None         Disk 2
3        HP      OPEN-V-CM            0.0.2.0           None         Disk 3
4        HP      OPEN-V-CM            0.0.2.1           None         Disk 4
5        HP      OPEN-V               1.0.2.4           None         Disk 5
6        HP      OPEN-V               0.0.2.10          None         Disk 6
C:\Program Files\Hewlett-Packard\HP MPIO DSM\XP DSM\X86>

Persistent reservation on the device has been removed. You can delete the lun from console without any issues now. 

No comments :

Post a Comment

Admin Helpline™ © , All Rights Reserved.
Privacy Policy