Tell me more ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I cannot figure out the mapping between different logical and physical block device names. The output of "cat /proc/diskstats" is :

 104    0 cciss/c0d0 ...
 104    1 cciss/c0d0p1 ...
 104    2 cciss/c0d0p2 ...
 104    16 cciss/c0d1 ...
 253    0 dm-0 ...
 253    1 dm-1 ...
 253    2 dm-2 ...
 253    3 dm-3 ...

The output of "df -h" is :

/dev/cciss/c0d0p1                 99M   39M   56M  42% /boot
/dev/mapper/VolGroup01-LogVol02   908G  760G  103G  89% /home
/dev/mapper/VolGroup01-LogVol03   193G  181G  2.6G  99% /opt
/dev/mapper/VolGroup00-LogVol00   54G   11G   41G  21%  /

Where do I find the mapping between "cciss" , "dm-#", and "VolGroup##" ?

Thanks

share|improve this question
1  
Everything in the /dev/mapper directory is typically a symlink to the actual device. – jw013 Jun 19 '12 at 1:29

2 Answers

There're handy dmsetup ls --tree and lsblk utils.

share|improve this answer
2  
Although that doesn't give you the mapping between VGs and their PVs. For that, you'd need to run pvdisplay and vgdisplay and correlate their output to that of dmsetup ls. – Alexios Jun 19 '12 at 9:54
@Alexios, ? Didn't try lsblk? – poige Jun 20 '12 at 13:17

Ok, finally figured that out.

pvscan command provides the mapping I'm looking for.

share|improve this answer
pvs, rather, or did I misunderstand the question? – Gilles Jun 19 '12 at 23:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.