cancel
Showing results for 
Search instead for 
Did you mean: 

Identify device from their VxDMP id

V_Ahire
Level 2
Certified

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

1 ACCEPTED SOLUTION

Accepted Solutions

kunal
Level 4
Employee

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.
 
 
 

View solution in original post

6 REPLIES 6

Gaurav_S
Moderator
Moderator
   VIP    Certified

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

V_Ahire
Level 2
Certified

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

Gaurav_S
Moderator
Moderator
   VIP    Certified

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 ?

V_Ahire
Level 2
Certified

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

kunal
Level 4
Employee

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.
 
 
 

V_Ahire
Level 2
Certified

Thanks for the solution!!!!!!!!!!!