cancel
Showing results for 
Search instead for 
Did you mean: 

Couple of questions

mrrout
Level 4

Hi,

Q1.

Please refer to the following message, this message appeared when a device path under DMP control came back online: 

NOTICE: VxVM vxdmp V-5-0-148 enabled path 118/0x60 belonging to the dmpnode 322/0x18

I can find the dmpnode - "322/0x18" by looking into "/dev/vx/dmp" (Solaris (SPARC) OS)folder:

brw-------   1 root     root     322, 18 Jul 11 20:41 df8000_00a1s2

I wanted to know how I may find the device name for "118/0x60".

Q2.

Assuming a ufs filesystem (Solaris (SPARC)) created on a VxVM volume, is there any way to find out the number of LBAs in the file system, LBAs assigned any file in the filesystem.

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions

g_lee
Level 6

The device 118/0x60 corresponds to the major/minor number of the underlying disk/path under /devices/...

Use ls -laL /dev/rdsk (-L to display the target file information rather than just the symbolic link) and grep for the minor number.

Note that the minor number (0x60) is in hexadecimal format, so need to convert this to decimal for the grep (in this case it converts to 96)

eg: on the following machine, 118/0x60 corresponds to the following disk path:

# ls -laL /dev/rdsk | grep -w 96
crw-r-----   1 root     sys      118, 96 Jun  1 13:02 c2t50001FE150062DFCd63s0
# ls -la /dev/rdsk/c2t50001FE150062DFCd63s0
lrwxrwxrwx   1 root     root          80 Nov 10  2010 /dev/rdsk/c2t50001FE150062DFCd63s0 -> ../../devices/pci@3,700000/fibre-channel@0/fp@0,0/ssd@w50001fe150062dfc,3f:a,raw

Note for the dmp path 322/0x18, 0x18 is also hex, so you should be looking for minor number 24 under /dev/vx/dmp to find the correct dmp device.

Regarding your second question, off the top of my head I would say it's possible to find the LBAs in the volume, however not sure about the mapping LBAs to files in the filesystem - perhaps someone else can help answer this for you.

View solution in original post

1 REPLY 1

g_lee
Level 6

The device 118/0x60 corresponds to the major/minor number of the underlying disk/path under /devices/...

Use ls -laL /dev/rdsk (-L to display the target file information rather than just the symbolic link) and grep for the minor number.

Note that the minor number (0x60) is in hexadecimal format, so need to convert this to decimal for the grep (in this case it converts to 96)

eg: on the following machine, 118/0x60 corresponds to the following disk path:

# ls -laL /dev/rdsk | grep -w 96
crw-r-----   1 root     sys      118, 96 Jun  1 13:02 c2t50001FE150062DFCd63s0
# ls -la /dev/rdsk/c2t50001FE150062DFCd63s0
lrwxrwxrwx   1 root     root          80 Nov 10  2010 /dev/rdsk/c2t50001FE150062DFCd63s0 -> ../../devices/pci@3,700000/fibre-channel@0/fp@0,0/ssd@w50001fe150062dfc,3f:a,raw

Note for the dmp path 322/0x18, 0x18 is also hex, so you should be looking for minor number 24 under /dev/vx/dmp to find the correct dmp device.

Regarding your second question, off the top of my head I would say it's possible to find the LBAs in the volume, however not sure about the mapping LBAs to files in the filesystem - perhaps someone else can help answer this for you.