When running vxdisk -e list, Volume Manager shows string of zeros under OS_NATIVE_NAME for devices that no longer exist.

book

Article ID: 100019177

calendar_today

Updated On:

Resolution

This issue can be identified when "vxdisk -e list" is executed.  

# vxdisk -elist
DEVICE      TYPE      DISK        GROUP        STATUS      OS_NATIVE_NAME  
c1t1d0s2    auto      -            -            error      00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Disk_0      auto      -       -            online      c1t0d0s2    
Disk_1      auto      -            -            online      c1t5d0s2    
Disk_2      auto      -            -            online      c1t4d0s2    
Disk_3      auto      -            -            online      c1t1d0s2    
Disk_4      auto      -            -            online      c1t2d0s2    
Disk_5      auto      -            -            online      c1t3d0s2

The disk showing up in the list as a device as well as being a multipathed device (Disk_3) is an indication that this is an incorrect entry.

The solution is to physically remove the device node entries, clean and rebuild the device tree at the OS level and have Volume Manager rescan the devices.

1.  Remove all affected devices from VM

# vxdisk rm

Example:

# vxdisk rm c1t1d0s2  

2. Remove the device nodes for the affected device(s).

# rm /dev/vx/*dmp/*

Note:  If device is a CTD pathname, omit the s2 from the device name.

Example:

# rm /dev/vx/*dmp/c1t1d0*

3.  Clean out the device tree and have VM scan for devices

# devfsadm -C
# vxdctl enable

4.  Run a disk list again to see if the entries have reappeared.

# vxdisk -e list
DEVICE      TYPE      DISK        GROUP        STATUS      OS_NATIVE_NAME  
Disk_0      auto      -       -            online      c1t0d0s2    
Disk_1      auto      -            -            online      c1t5d0s2    
Disk_2      auto      -            -            online      c1t4d0s2    
Disk_3      auto      -            -            online      c1t1d0s2    
Disk_4      auto      -            -            online      c1t2d0s2    
Disk_5      auto      -            -            online      c1t3d0s2

Issue/Introduction

When running vxdisk -e list, Volume Manager shows string of zeros under OS_NATIVE_NAME for devices that no longer exist.