Opened 16 years ago

Closed 16 years ago

#245 closed defect (fixed)

LVM Logical Volumes size is rounded to GB

Reported by: lejav Owned by: Bruno Cornec
Priority: normal Milestone: 2.2.6
Component: mindi Version: 2.2.5
Severity: normal Keywords:


A logical volume whose size is for instance 1.5 GB

is restored to 1 GB by mondo.

OS = RedHat 4 / RedHat 5 The problem comes from the function GetValueFromField in /usr/lib/mindi/analyze-my-lvm

which gives the size by awk '{printf "%d",...}' from the line LV Size given by lvdisplay.

For my example, LV Size = 1.50 GB, and awk '{printf "%d","1.50"}' prints '1' A solution is to change 'lvdisplay' by 'lvdisplay --units m' ; but i don't

know if this option is supported on every platform.

Not sure that this is a bug or a limitation.

Change History (4)

comment:1 by lejav, 16 years ago

My email address : lejav@…

comment:2 by Bruno Cornec, 16 years ago

Status: newassigned

Should be fixed in rev [1942] (patch from Thomas Kjeldsen Will be in 2.2.6

comment:3 by Bruno Cornec, 16 years ago

Please check that official 2.2.6 now out is solving that pb.

comment:4 by Bruno Cornec, 16 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.