SCSI-3 PR Key Registration Fails with dmp_pr_do_reg Error on Secondary Paths in InfoScale on RHEL 9.5+

book

Article ID: 1000766336

calendar_today

Updated On:

Description

During cluster fencing startup (vxfen), fenced disk group import (vxdg -o fence import), or manual persistent reservation key registration (vxfenadm -m / sg_persist), key registration succeeds on the first path but fails on all subsequent paths to the same LUN.


The following messages appear in /var/log/messages and dmesg:
Jun 24 19:50:55 kernel: sd 1:0:0:0: reservation conflict
Jun 24 19:50:55 kernel: VxVM vxdmp V-5-0-0 dmp_pr_do_reg: registering the key failed on path (8/0x20) with status = 0x18 sense [0x0/0x0/0x0]
Jun 24 19:50:55 kernel: sd 4:0:0:0: reservation conflict
Jun 24 19:50:55 kernel: VxVM vxdmp V-5-0-0 dmp_pr_do_reg: registering the key failed on path (8/0x40) with status = 0x18 sense [0x0/0x0/0x0]
Jun 24 19:50:55 kernel: sd 4:0:1:0: reservation conflict
Jun 24 19:50:55 kernel: VxVM vxdmp V-5-0-0 dmp_pr_do_reg: registering the key failed on path (8/0x50) with status = 0x18 sense [0x0/0x0/0x0]

vxfenadm -g all -f ` displays registered keys on only a single path per LUN.
Storage controller logs (e.g., Dell Unity) report Reservation Key NonZero Error or PR Conflict on secondary initiator registrations.

Cause

This is neither a hardware/storage defect nor an issue with the cluster fencing driver (vxfen). It is a kernel interface decoding bug within vxdmp when operating on RHEL 9.5+ kernels.

In RHEL 9.5 and later kernel, Red Hat updated how SCSI command results, SAM status codes, and driver status bytes are reported across the midlayer.

In InfoScale 9.0.1, VxDMP utilized legacy SCSI completion status decoding macros/offsets. As a result, VxDMP did not recognize the returning 0x18 status as a reservation conflict.

Because the status was misinterpreted as an unrecoverable SCSI error rather than a reservation conflict, VxDMP bypassed its automatic retry/recovery logic, abandoned registration on the remaining paths, and logged dmp_pr_do_reg: registering the key failed on path ... with status = 0x18.

Resolution

Upgrade the InfoScale software stack to version 9.0.6

In InfoScale 9.0.6, VxDMP was updated to accurately decode Linux SCSI midlayer completion status packets on RHEL 9.5 and RHEL 9.6.

With the updated decoding logic:
  VxDMP properly identifies the 0x18 reservation conflict response on secondary paths.
  VxDMP triggers its built-in fallback/recovery sequence.
  Persistent reservation keys are registered across all active and secondary paths to the LUN.

 

Issue/Introduction

On systems running InfoScale 9.0.1 on Red Hat Enterprise Linux 9.5 or later , connected to storage arrays that manage SCSI target ports/nexuses independently (such as Dell EMC Unity 550F ALUA), SCSI-3 Persistent Reservation (PR) key registration via vxfen, vxfenadm, or sg_persist succeeds only on the first active path. All remaining paths fail with a SCSI reservation conflict (status = 0x18).
This failure prevents proper multi-path SCSI-3 PR registration across all available paths, impacting cluster fencing initialization and fenced disk group imports.