[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: switch from 2.4.24 lvm1 to 2.6.10 lvm 2 problems



Pigeon wrote:

Same error. It seems as if the mkinitrd scripts is not really meant to
handle lvm :(

Just checking: this LVM group still boots OK on other kernels?

Indeed, boots ok with 2.4.24 kernel and an initrd. Since you mentioned lvmcreate_initrd below,
i think i made my initrd for the 2.4.24 kernel with that script!

Yeah, I get that. /dev/console seems to be there; I don't know why it
does it, but since it doesn't seem to stop anything working I grew to
ignore it.

OK. Anyway, i've entered a bug report for the mkinitrd error when lvm is compiled into the kernel. (Bug#293508: initrd-tools refuses to make an initrd when lvm support is compiled,
in the kernel)

The LVM tools need a writable /etc or nothing works. When you get that
error, / is still the initrd, which is a read-only filesystem because
it's cramfs. You can either do some jiggery-pokery to make an initrd
of a different fs type which can be mounted writable, or you can do
some different jiggery-pokery to provide a writable /etc. I chose to
provide a writable /etc; see the bit after the comment '# Make a
writable /etc for lvmtab' in the lvm-init script on my site.
OK, so if i would add your script i have a chance that it works. Anyway, is there a good reason for the mkinitrd script to behave this way (not mounting /etc/ writeable) or can that also be considered a bug? IMO if the script says it's able to handle lvm, then it can be considered
a bug.

Now, I was doing a bit of aimless poking about and I discovered that
in /lib/lvm-10 there is a script called lvmcreate_initrd, with its own
man page an' all, whose purpose in life is to create initrds for root
on LVM. It might be that this would save a lot of trouble. I haven't
tried it, though, because the machine I was setting up the LVM root on
is a server which is now live (from my point of view)

Yep, i used that for the initrd of my 2.4.24 kernel. However, lvm2 doesn't provide such a script.

If people on Woody are going to have the same problems when they do
a dist-upgrade, this is going to be a lot of fun :(

Perhaps that script will perform the requisite magic?
I found a version of the script that reportedly should work with lvm2
http://poochiereds.net/svn/lvm2/
Problem is that it doesn't support modules
   3) This initrd image does not support modules.
Anyway, I hope it will work. I don't know why they don't provide such a script standard in the lvm2 package. Since having this problem, i've seen loads of mails of people struggling with this.

Thanks for your ongoing help, really appreciate it!

Regards,
Benedict



Reply to: