Hi guys,
I have been using systemimager from CVS (a couple of nights old) for a
bit of a play.
I've noticed something odd with lvdisplay (used in Common.pm to gather
lvm disk info).
Basically lvdisplay is reporting the size as twice the value it should
be. The output even differs between columnised and non columnised:
# lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID tN692l-Usev-VzCG-ZZB5-QSwr-yrb9-6LHgE5
LV Write Access read/write
LV Status available
# open 1
LV Size 75.56 GB
Current LE 2418
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:0
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID XsSEEW-SZtw-g37L-VKdO-M40B-HWeT-LHmvPP
LV Write Access read/write
LV Status available
# open 1
LV Size 992.00 MB
Current LE 31
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:1
And columnised:
# lvdisplay -c
/dev/VolGroup00/LogVol00:VolGroup00:3:1:-1:1:158466048:2418:-1:0:0:253:0
/dev/VolGroup00/LogVol01:VolGroup00:3:1:-1:1:2031616:31:-1:0:0:253:1
The values look very suspiciously like they have been doubled.
The version of lvdisplay being used is:
# lvdisplay --version
LVM version: 2.00.31 (2004-12-12)
Library version: 1.00.19-ioctl (2004-07-03)
Driver version: 4.1.0
This is on a redhat enterprise 3 box.
Something to watch out for - perhaps it is something that can be worked
around? E.g. parse the output of non-columnised and compare it to
columnised, if they don't match then either alert the user, take the
non-columnised value, or just bomb. Or we could detect this version of
lvdisplay and simply halve the values it reports.
Cheers,
Anton
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Sisuite-devel mailing list
Sisuite-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sisuite-devel