"vxdmpadm enable path=<diskpath>" command fails with error "dmp_open_path: Open failed with 5 for <path>"

book

Article ID: 100023664

calendar_today

Updated On:

Description

Error Message

root@sprst5120b4-06:~# vxdmpadm enable path=c3t50060E80104EF3F3d3s2
VxVMvxdmpadm ERROR V-5-1-15149 Attempt to enable a path that is not available.
Check hardware to analyze the problem.
root@sprst5120b4-06:~#

/var/adm/messages file shows this error:
Aug 18 10:48:27 sprst5120b4-06 vxdmp: [ID 808364 kern.notice] NOTICE: VxVM vxdmp V-5-3-0 dmp_open_path: Open failed with 5 for path 237/0x68
Aug 18 10:48:27 sprst5120b4-06 vxdmp: [ID 382146 kern.notice] NOTICE: VxVM vxdmp V-5-0-112 [Warn] disabled path 237/0x68 belonging to the dmpnode 307/0x48 due to open failure

 

Cause

- DMP in the control or IO domain keeps NORMAL mode open on partitions that exist and NDELAY mode open on partitions that do not exit.

- If the partition information changes from within the guest domain, DMP in control domain does not know about this. Let's say partition S0 is removed from inside the guest domain.
 
- If a path is disabled (either intentionally by admin for maintenance purpose or due to hardware issue) and we try to re-enable it, DMP sees NORMAL mode open on S0 and tries to open partition S0 on the corresponding path being enabled. This fails as partition no longer exists, and path enable fails.

Resolution

Workaround:


1. Shutdown the guest domain (which involves an outage) using "shutdown" command within the guest or "ldm stop " from the control domain. If customer doesn't want to take the guest ldom down, please see NOTE #1 below for alternate procedure. 
2. Remove the disk from the guest domain using command "ldm rm-vdisk  "
3. Exclude the dmpnode and include it back. This automatically enables all the paths. "vxdmpadm exclude dmpnodename=" and "vxdmpadm include dmpnodename="
4. Add the disk back to the guest domain using command "ldm add-vdisk " and start the domain using "ldm start ".

Note:

  • In the guest LDOM, if disk is under ZFS control, export the zpool containing the dmpnode "zpool export ". 
  • In the guest LDOM, if disk is under DMP control, exclude the dmpnode from the guest domain "vxdmpadm exclude dmpnodename=". 

After fixing the path issue from the control domain, import the zpool or include the dmpnode in the guest domain. 

Permanent fix for this issue is available in the following hotfixes:

 6.1.0 patches:
Solaris 10 HF 6.1.0.003 : https://svlvault.veritas.com/cgi-bin/patch_central?archive=10715
Solaris 11 HF 6.1.0.004 : https://svlvault.veritas.com/cgi-bin/patch_central?archive=10714


6.1.1 patches:
Solaris 11 HF: https://release.veritas.com/cgi-bin/patch_central?archive=10692

Please note that the patch would still require customers to follow the procedure given below to re-enable a disabled path

1. Shutdown the guest domain (which involves an outage) using "shutdown" command within the guest or "ldm stop " from the control domain. If customer doesn't want to take the guest ldom down, please see NOTE #1 above for alternate procedure. 
2. Remove the disk from the guest domain using command "ldm rm-vdisk  "
3. Add the disk back to the guest domain using command "ldm add-vdisk  " and start the domain using "ldm start ".

 

Issue/Introduction

In a Solaris LDOM environment, for a disk that's been assigned to a guest domain, vxdmpadm path enable fails with the error below. 

Additional Information

ETrack: 3843878