Chapter 7. Open systems servers - UNIX 223
The syntax and options are:
lquerypr [[-p]|[-c]|[-r]][-v][-V][-h/dev/PVname]
Flags:
–p If the persistent reservation key on the device is different from the
current host reservation key, it preempts the persistent reservation key
on the device.
–c If there is a persistent reservation key on the device, it removes any
persistent reservation and clears all reservation key registration on the
device.
–r Removes the persistent reservation key on the device made by this
host.
–v Displays the persistent reservation key if it exists on the device.
–V Verbose mode. Prints detailed message.
To query the persistent reservation on a device, type:
lquerypr -h /dev/vpath30
This command queries the persistent reservation on the device. If there is a persistent
reserve on a disk, it returns 0 if the device is reserved by the current host. It returns 1 if the
device is reserved by another host. Caution must be taken with the command, especially
when implementing preempt-abort or clear persistent reserve service action. With
preempt-abort service action not only the current persistent reserve key is preempted; it also
aborts tasks on the LUN that originated from the initiators that are registered with the
preempted key. With clear service action, both persistent reservation and reservation key
registrations are cleared from the device or LUN.
This command is useful if disk was attached to one system, and was not varied off leaving the
SCSI reserves on the disks, thus preventing another system from accessing them.
mkvg4vp, extendvg4vp, savevg4vp, and restvg4vp
mkvg4vp, extendvg4vp, savevg4vp, and restvg4vp have the same functionality as their
counterpart commands without the 4vp extension; use the 4vp versions when operating on
vpath devices. These commands will maintain pvids on vpaths and keep SDD working
properly.
It is a good idea to check periodically to make sure none of the volume groups are using
hdisks instead of vpaths. You can verify the path status several ways. Some commands are:
lspv (look for hdisk with volume group names listed)
lsvpcfg
lsvg -p <vgname>
Remember to change any scripts you may have that call savevg or restvg and change the
calls to savevg4vp and restvg4vp.
7.6.1 HP-UX SDD commands
SDD for HP-UX adds the specific commands shown in Table 7-3 on page 224.