mpathpersist command fails to add registration key on a device with zero registration/reservation keys.
Issue
mpathpersist
command fails to addregistration
key on a device with zeroregistration/reservation
keys.
[root@hostname ~]# multipath -l|grep -A7 "36006016068b123456789abcdef7d0f0f"
36006016068b123456789abcdef7d0f0f dm-174 DGC,VRAID
size=20G features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=0 status=active
| |- 11:0:2:153 sdni 71:320 active undef running
| `- 12:0:2:153 sdpp 130:496 active undef running
`-+- policy='service-time 0' prio=0 status=enabled
|- 11:0:3:153 sdasw 130:1152 active undef running
`- 12:0:3:153 sdatu 132:1024 active undef running
[root@hostname ~]# mpathpersist --in -k -d /dev/mapper/36006016068b123456789abcdef7d0f0f
PR generation=0x0, 0 registered reservation key.
[root@hostname ~]# mpathpersist --out --register --param-sark=0xABC123 /dev/mapper/336006016068b123456789abcdef7d0f0f
persistent reserve out: scsi status: Reservation Conflict
PR out: command failed
[root@hostname ~]# mpathpersist --in -k -d /dev/mapper/36006016068b123456789abcdef7d0f0f
PR generation=0x4, 0 registered reservation key.
Environment
- Red Hat Enterprise Linux
- Red Hat Enterprise Virtualization
- SCSI reservation
- SCSI Fencing
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.