Forum Discussion

V_Ahire's avatar
V_Ahire
Level 2
14 years ago

Identify device from their VxDMP id

How do i identify the disk device from their VxDMP  id.

for e.g., "VxDMP48" is associated with which disk/LUN.

I need this information to troubleshoot below error.

 "kernel: Buffer I/O error on device VxDMP48, logical block 1"
 

Regards,

Viralkumar Ahire

  • Hi Viral,

     

    Not sure what exactly are you looking for so I will try to answer your original question and I hope the following helps:

     

    Find the major and minor number of the VxDMP[*] device from /proc/partitions

     

    Look for that major and minor number in the /dev/vx/dmp/

     

    For instance, lets consider a device VxDMP6

     

     

    # grep VxDMP6 /proc/partitions
     201    80    5242880 VxDMP6
     
     
    Here we can see that the major number is 201 and minor number is 80.  
     
    201 is for the DMP device driver which can be found in /proc/devices
     
     
    Now we know the major and minor number of the device. Run the following to find the corresponding DMP device (Locate the major and minor number):
     
    For example:
    ls -l /dev/vx/dmp/
    brw------- 1 root root 201,  80 Nov 10 20:36 sdh
     
     
    This might seem the long way but I am not sure if a shorter method exists.
     
     
     

6 Replies

Replies have been turned off for this discussion
  • where are you getting this message ? I mean which log file you are refering ?

    Is there any other message preceeding or after this message ?

    what is OS & vxvm version ?

     

    Gaurav

  • Hi Gaurav,

    I am receiving error in syslog of my linux OS.

    OS & VxVM version is:

    RHEL 5.4 ( 2.6.18-164.11.1.el5 ) & VRTSvxvm-5.0.40.00-MP4_RHEL5
     

    Same error occured on many other paths as well. 

    Dec  7 09:46:39 lxx0311 kernel: Buffer I/O error on device VxDMP48, logical block 1
    Dec  7 09:46:39 lxx0311 kernel: end_request: I/O error, dev sdcf, sector 0
    Dec  7 09:46:39 lxx0311 kernel: Buffer I/O error on device VxDMP48, logical block 0
    Dec  7 09:46:39 lxx0311 kernel: end_request: I/O error, dev sdcf, sector 24
    Dec  7 09:46:39 lxx0311 kernel: Buffer I/O error on device VxDMP26, logical block 1
    Dec  7 09:46:39 lxx0311 kernel: Buffer I/O error on device VxDMP42, logical block 2
    Dec  7 09:46:39 lxx0311 kernel: Buffer I/O error on device VxDMP26, logical block 0
    Dec  7 09:46:39 lxx0311 kernel: Buffer I/O error on device VxDMP42, logical block 0
    Dec  7 09:46:39 lxx0311 kernel: end_request: I/O error, dev sddo, sector 8
    Dec  7 09:46:39 lxx0311 kernel: end_request: I/O error, dev sdfw, sector 0
    Dec  7 09:46:39 lxx0311 kernel: end_request: I/O error, dev sdej, sector 16
    Dec  7 09:46:39 lxx0311 kernel: end_request: I/O error, dev sdgf, sector 16
    Dec  7 09:46:39 lxx0311 kernel: end_request: I/O error, dev sddx, sector 0
    Dec  7 09:46:39 lxx0311 kernel: end_request: I/O error, dev sdee, sector 8
    Dec  7 09:46:39 lxx0311 kernel: end_request: I/O error, dev sdee, sector 24
     

    Regards,

    Viral Ahire

  • Hello,

    do you have any such device like VxDMP in "vxdisk list" or /dev/vx/rdmp or /dev/vx/dmp or under /dev/ tree ?

    Do you use DMP as multipathing software or is there any other multipathing software underneath ?

  • Hi Gaurav,

     

    I dont have such device in said locations.  LUNs naming convention is diffrent than this.

    Yes, we are using DMP as multipathing software. And the error occuring on subpaths. like in folloing error "sddo" is mpath.

     

    Dec  7 09:46:39 lxx0311 kernel: end_request: I/O error, dev sddo, sector 8

     

    Regards,

    Viral Ahire

  • Hi Viral,

     

    Not sure what exactly are you looking for so I will try to answer your original question and I hope the following helps:

     

    Find the major and minor number of the VxDMP[*] device from /proc/partitions

     

    Look for that major and minor number in the /dev/vx/dmp/

     

    For instance, lets consider a device VxDMP6

     

     

    # grep VxDMP6 /proc/partitions
     201    80    5242880 VxDMP6
     
     
    Here we can see that the major number is 201 and minor number is 80.  
     
    201 is for the DMP device driver which can be found in /proc/devices
     
     
    Now we know the major and minor number of the device. Run the following to find the corresponding DMP device (Locate the major and minor number):
     
    For example:
    ls -l /dev/vx/dmp/
    brw------- 1 root root 201,  80 Nov 10 20:36 sdh
     
     
    This might seem the long way but I am not sure if a shorter method exists.