Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7592 - lvmcreate_initrd script miscalculating ramdisk size
Summary: lvmcreate_initrd script miscalculating ramdisk size
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-06 20:17 UTC by Dan Lund
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Lund 2002-09-06 20:17:30 UTC
I recently had the misfortune of finding out that version lvm-user-1.0.5
included a version of lvmcreate_initrd that miscalculated the
initrd-lvm-$KERNELVERSION.gz.
This would come up with errors at boot, but not during the creation of the
initrd image.
There is a thread on this: http://forums.gentoo.org/viewtopic.php?t=14014
I fixed the issue I had with it and posted it.  I uncommented the "INITRDSIZE="
line, and added a value of 4096. (a little over my initrd-lvm-2.4.19.gz loopback
size)  It appears that the auto-calculation does not leave enough room in the
initrd to actually write the /etc/lvmtab & /etc/lvmtab.d files when it is acting
as a temporary root.

I am not sure how to fix this permanently, but I wanted to bring it to the
attention of the maintainers of Gentoo.
Comment 1 Matthew Kennedy (RETIRED) gentoo-dev 2002-09-07 19:26:04 UTC
seemant, i think some kernel dude would better understand this
Comment 2 Dan Lund 2002-09-09 18:53:21 UTC
I just re-upgraded to 1.0.5 and re-made my initrd-lvm-2.4.19.gz with
lvmcreate_initrd (this time without any changes to the INITRDSIZE= variable) and
it made it alright.  I lessened the number of modules I am using, so I think it
has something to do with sizing of the modules, perhaps?
Might not be something Gentoo specific, the more I'm looking at it.  Probably
LVM Project specific.
Comment 3 Brandon Low (RETIRED) gentoo-dev 2002-10-21 18:22:29 UTC
sorry to dump this one back to the field again, but I know less than nothing 
about LVM...
Comment 4 Dan Lund 2002-11-12 18:50:35 UTC
Perhaps we should just close this bug.. I haven't ran into the issue again.
Perhaps it was an anomoly?
However, another person had the same anomoly.
I'm not sure what we can do since it is a LVM issue, the more I think about it.