zhengweisk / aspersa

Automatically exported from code.google.com/p/aspersa
0 stars 0 forks source link

summary: add devicemapper id's to filesystem information #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
With iostat, you usually get devices like dm-2:

Device:         rrqm/s   wrqm/s   r/s   w/s    rMB/s    wMB/s avgrq-sz avgqu-sz 
  await  svctm  %util
dm-2              0.00     0.00 58.34 171.11     0.92     5.52    57.52     
1.11    4.85   2.28  52.39

I usually use dmsetup info to map that id (see minor) with the actual mounted 
filesystem:
-bash-3.2$ sudo /sbin/dmsetup info
Password: 
Name:              nameoflvmpartition
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      253, 2
Number of targets: 1
UUID: LVM-kyr837WMXHZadHawsY7GLwmhWaDM9oslWBzspuYVOil55Ft9KlPzcfBaneY3QrzE

It would be handy if this was added to summary (maybe Mounted filesystems).

Original issue reported on code.google.com by gryp...@gmail.com on 18 Nov 2010 at 9:47

GoogleCodeExporter commented 9 years ago
So instead of this,

  Filesystem                     Size Used Type  Opts Mountpoint
  /dev/mapper/vg_ginger-lv_root  454G   6% ext4  rw   /
  /dev/sda1                      194M  31% ext4  rw   /boot
  tmpfs                          2.0G   1% tmpfs rw   /dev/shm

Maybe you want this?

  Filesystem                     DM_ID Size Used Type  Opts Mountpoint
  /dev/mapper/vg_ginger-lv_root  dm-3  454G   6% ext4  rw   /
  /dev/sda1                      -     194M  31% ext4  rw   /boot
  tmpfs                          -     2.0G   1% tmpfs rw   /dev/shm

Original comment by baron.schwartz on 14 Feb 2011 at 1:53