Skip to contentSkip to conversation

vgscan and initrd

linux-lvm Mark 2 participants 2 messages Jun 27, 2003

lore
Share & tools
lore

Mark

author
#0 lore raw

That's one of the solutions I had heard over at the Gentoo-LVM forums.

I've tried adjusting my initrd, both to manualy load the pdc_new module (for my raid controller) and adjusting the size of the initial ramdisk to 4096.

Didn't work. And still I don't get why vgscan wouldn't work while chroot'ed.

Also, the lvm root partition is only about 6 or 7 gb in size, would that constitute 'to big' ?

What do you mean by

Quoted 2 lines

mount a tmpfs volume over /etc, and meanwhile I have been recreating the initrd image leaving enough space to allow vgscan to run.

I can (and did I think) increase the size of the initrd, but how do i mount a tmpfs volume over /etc ??

To be complete, I am running (on the new system anyways) a 2.4.21 kernel, and lvm 1.0.7.

Booting into the system with any other kernel, such as gentoo-xfs-2.4.19 or Suse-Rescue-2.4.6 works like a charm.

Still confused, but gratefull for any help

Mark

#1 lore raw

Your follow-up makes it sound as though you have a different problem from mine, but I can answer your question about mounting tmpfs over /etc:

mount -t tmpfs tmpfs /etc

You wind up with an empty /etc, but at that point there should be no problem. vgscan just wants some place to store a metadata backup which you are going to throw away, and after pivot-root runs you'll have a different /etc anyway. If the Gentoo startup scripts are like Red Hat's, they'll do a second LVM metadata backup into the "real" /etc later.

Signature · 2 lines
Mark H. Wood, Lead System Programmer   [email protected]
MS Windows *is* user-friendly, but only for certain values of "user".