up vote 3 down vote favorite
share [g+] share [fb]

mount shows mount devices like:

/dev/mapper/VolGroup01-LogVol00 on /var type ext3 (rw)

or

/dev/mapper/VolGrp_backups-backups on /mnt/backups type ext3 (rw)

but

iostat uses dm- notation. like dm-0, dm-1 and so on.

Where can I find a way to know which is which?

link|improve this question

70% accept rate
Somehow, I thought there was a way to tell iostat to 'just do that', but there isn't one (that I can find). +1 for a great question that got an answer that helped me too. – Tim Post May 17 '11 at 17:16
feedback

2 Answers

up vote 6 down vote accepted

ls -l /dev/mapper/*, the device minor number (field 6 of what ls -l outputs) corresponds to the number in dm-\d+.

link|improve this answer
feedback

Depending on the version of iostat you have the -N option will do this for you:

-N Display the registered device mapper names for any device mapper devices. Useful for viewing LVM2 statistics.

Edit: versions >= 7.1.4 of systat (which includes iostat) have that option.

2007/04/29: Version 7.1.4 - Sebastien Godard (sysstat wanadoo.fr) * Option -N added to iostat. This option enables the user to query any device-mapper devices for their registered device name [bugzilla #177540].

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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