* [linux-lvm] Reducing size of user space lvm binary
@ 2006-03-20 10:39 Urs Thuermann
0 siblings, 0 replies; only message in thread
From: Urs Thuermann @ 2006-03-20 10:39 UTC (permalink / raw)
To: linux-lvm
I am currently converting from LVM1 to DM + LVM2. I have my root fs
on LVM so I need to load the kernel modules and scan for VGs in initrd
before mounting the real root device.
With LVM1, I had copied liblvm-10.so, vgscan and vgchange to my initrd
file system. With LVM2, everything is in one large binary, which
consumes considerably more space on my initrd, which I'd like to
reduce.
I changed tools/commands.h to only contain vgscan and vgchange, and
then relinked the lvm binary with
gcc -s -o lvm lvm.o lvmcmdline.o vgchange.o vgscan.o vgmknodes.o \
pvmove.o toollib.o polldaemon.o -Wl,--export-dynamic \
-L../lib -L/lib -llvm -ldevmapper -ldl -rdynamic
The size is still 300 kB. Is there a way to further reduce its size?
Is vgscan required in the initrd? The man page for vgscan says that
in LVM2, vgscans take place automatically. What does this mean? When
is the scan done automatically? Is it done as part of other commands
like vgchange?
urs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-03-20 10:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-20 10:39 [linux-lvm] Reducing size of user space lvm binary Urs Thuermann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).