Public bug reported:

Binary package hint: byobu

the disk_io script uses '/sys/block/$disk/stat' to get the device
statistics, but for LVM and raid devices the mounts look like this:

$ mount | grep 'on / '
/dev/mapper/main-devel on / type ext4 
(rw,relatime,discard,errors=remount-ro,commit=0)
$ ls -l /dev/mapper/main-devel 
lrwxrwxrwx 1 root root 7 2011-01-28 12:57 /dev/mapper/main-devel -> ../dm-2
$ls -l /dev/dm-2
brw-rw---- 1 root disk 252, 2 2011-01-28 12:57 /dev/dm-2

$ ls /sys/block/
dm-0  dm-2   loop1  loop3  loop5  loop7  ram1   ram11  ram13  ram15  ram3  ram5 
 ram7  ram9  sdb
dm-1  loop0  loop2  loop4  loop6  ram0   ram10  ram12  ram14  ram2   ram4  ram6 
 ram8  sda

so if I get this right the sed command in line 33 will set disk too ""
and you get no disk_io output unless setting MONITORED_DISK to /dev/dm-2

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: byobu 3.26-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.37-12.26-generic 2.6.37
Uname: Linux 2.6.37-12-generic i686
NonfreeKernelModules: eee
Architecture: i386
Date: Fri Jan 28 13:46:06 2011
InstallationMedia: Kubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LANG=en_US.UTF-8
 LANGUAGE=en_US.UTF-8
ScreenRC:
 
SourcePackage: byobu

** Affects: byobu (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 natty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/709224

Title:
  disk_io doesn't work on LVM or dmraid devices

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to