disk_io incompatible with LVM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Fix Released
|
Medium
|
Unassigned | ||
byobu (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
following our last discussion about LVM compatibility, here follows my system configuration:
(disk_io should read from /sys/block/dm-0, setting MONITORED_DISK doesn't work because it don't find it in mtab)
$ sh -x /usr/local/
+ PKG=byobu
+ DATA=/u/uqn7/.byobu
+ color
+ '[' '' = 1 ']'
+ ICON_RD='<'
+ '[' '' = 1 ']'
+ ICON_WR='>'
+ '[' -z '' ']'
+ MP=/
+ case $MP in
++ grep -m 1 ' / ' /etc/mtab
++ sed -e 's: .*$::'
+ disk=/dev/
++ echo /dev/mapper/
++ sed -e 's: .*$::' -e 's:^.*/::' -e 's:\([hsv]
+ disk=ROOTVG-LVROOT
+ '[' '' = --detail ']'
+ '[' -d /var/run/
+ DIR=/u/uqn7/.byobu
++ date +%s
+ t2=1298384278
+ for i in '"read"' '"write"'
+ cache=/
++ stat -c %Y /u/uqn7/
+ t1=1298384274
+ unit=kB/s
+ '[' 1298384278 -le 1298384274 ']'
++ cat /u/uqn7/
+ x1=
+ '[' read = read ']'
+ symbol='<'
++ awk '{print $3}' /sys/block/
awk: cmd. line:1: fatal: cannot open file `/sys/block/
+ x2=
+ echo ''
++ echo 1298384274 1298384278 '' ''
++ awk '{printf "%.0f", ($4 - $3) / ($2 - $1) * 512 / 1024 }'
+ rate=0
+ '[' 0 -lt 0 ']'
+ '[' 0 -gt 1024 ']'
++ color b M W
++ true
++ color -
++ true
++ color M W
++ true
++ color -
++ true
+ printf '<0kB/s '
+ for i in '"read"' '"write"'
+ cache=/
++ stat -c %Y /u/uqn7/
+ t1=1298384275
+ unit=kB/s
+ '[' 1298384278 -le 1298384275 ']'
++ cat /u/uqn7/
+ x1=
+ '[' write = read ']'
+ symbol='>'
++ awk '{print $7}' /sys/block/
awk: cmd. line:1: fatal: cannot open file `/sys/block/
+ x2=
+ echo ''
++ echo 1298384275 1298384278 '' ''
++ awk '{printf "%.0f", ($4 - $3) / ($2 - $1) * 512 / 1024 }'
+ rate=0
+ '[' 0 -lt 0 ']'
+ '[' 0 -gt 1024 ']'
++ color b M W
++ true
++ color -
++ true
++ color M W
++ true
++ color -
++ true
+ printf '>0kB/s '
$ cat /etc/mtab | grep '/ '
/dev/mapper/
$ sudo /sbin/lvm lvdisplay
--- Logical volume ---
LV Name /dev/ROOTVG/LVROOT
VG Name ROOTVG
LV UUID erMVk8-
LV Write Access read/write
LV Status available
# open 1
LV Size 20.00 GB
Current LE 640
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/ROOTVG/LVWORK
VG Name ROOTVG
LV UUID AuNIqo-
LV Write Access read/write
LV Status available
# open 1
LV Size 50.41 GB
Current LE 1613
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Name /dev/ROOTVG/LVSWAP
VG Name ROOTVG
LV UUID lAsNlZ-
LV Write Access read/write
LV Status available
# open 1
LV Size 4.00 GB
Current LE 128
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
$ cat /proc/partitions
major minor #blocks name
8 0 78149687 sda
8 1 104391 sda1
8 2 78043770 sda2
253 0 20971520 dm-0
253 1 52854784 dm-1
253 2 4194304 dm-2
Changed in byobu: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in byobu (Ubuntu): | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in byobu: | |
status: | Fix Committed → Fix Released |
This bug was fixed in the package byobu - 3.29-0ubuntu1
---------------
byobu (3.29-0ubuntu1) natty; urgency=low
[ Dustin Kirkland ] man/man1/ byobu.1: document PS1 workaround, LP: #525552 man/man1/ byobu.1: fix minor manpage typo, add SERVICES example byobu/wifi_ quality, usr/share/ man/man1/ byobu.1: support overriding man/man1/ byobu.1: document TERM=vt100 for Mac keyboard users, byobu-janitor: use readlink, much more graceful byobu/time_ binary, usr/share/ byobu/profiles/ common, share/man/ man1/byobu. 1: fixup a couple of minor issues with the binary byobu-status: switch the interpreter from sh to bash; this is
* usr/share/
* usr/share/
* usr/lib/
the default wireless interface, LP: #723260
* usr/share/
LP: #482623
* usr/bin/
* usr/lib/
usr/
clock commit
* usr/bin/
needed to support James' time_binary script, which is bash and cannot be
simply sourced by byobu-status; if significant performance regressions
occur, we will need to back this change out and approach it a different
way
[ James Hunt ] byobu-config, usr/lib/ byobu/time_ binary, share/byobu/ profiles/ common, usr/share/ man/man1/ byobu.1:
* etc/byobu/statusrc, usr/bin/
usr/
- add support for the super-geeky-but-fun binary clock; requires
UTF8 support in GNU Screen, LP: #705037
[ Chow Loong Jin and Dustin Kirkland ] byobu/disk_ io: canonicalize symlinks so that disk_io works
* usr/lib/
with raid, lvm, dm volumes, LP: #709224, #711373, #723187
-- Dustin Kirkland <email address hidden> Wed, 23 Feb 2011 16:24:38 -0600