Your mkinitrd.conf looks fine to me.
What you can try is download mkinitrd_command_generator.sh and run it like this on your system: Code:
mkinitrd_command_generator.sh -c Or try Code:
mkinitrd_command_generator.sh -i -c Eric |
Wow, that was quick, thanks a lot!
I've run the script and found two lines of its output quite interesting, though I doubt that any of them has to do with my problems in the last two or three days. Code:
LUKSDEV="/dev/md/1" Code:
MODULE_LIST="pata_acpi:ata_generic:pata_via:mbcache:jbd:ext3" Code:
MODULE_LIST="pata_acpi:ata_generic:pata_via:uhci-hcd:usbhid:mbcache:jbd:ext3" Code:
[...] As I said above, with /dev/md/1 defined as ROOTDEV in /etc/mkinitrd.conf, the output on booting is the same, with just the three lines from "Unlocking LUKS crypt volume" through "key slot 0 unlocked." missing. What else could I check for? Thanks for your great patience! gargamel |
ROOTDEV="/dev/cryptvg/root" is the correct notation. As for the other weirdness... still thinking that over.
Eric |
Just another observation from another experiment.
I wanted to find out if my /etc/lilo.conf might be part of the problem, and changed the line Code:
root = /dev/cryptvg/root Code:
root = /dev/mapper/cryptvg-root The result were *exactly* the same messages at boot as above, with root = /dev/cryptvg/root. Not sure this helps investigating the problem, just to let you know... gargamel |
There seems to be a flaw in the initrd. The RAID configuration is done too late.
Could you try and apply this patch to your /boot/initrd-tree/init script (assuming you used the default directory for this directory): Code:
diff -ur /boot/initrd-tree.orig/init /boot/initrd-tree/init Code:
cd /boot/initrd-tree The patched init script will cause the initrd to first initialize the RAID, then unlock the LUKS volume and then activate the LVM. Interested to know if this patch fixes your problem. If yes, I wonder if I had already applied this patch when I tested this myself a month ago. Regards, Eric |
Dear Eric,
you saved my day! That was it! The patch as such didn't work, but as far as I understand it, all it does is move the chunk of text regarding the RAID initialization from the original place to the line immediately below " if [ "$RESCUE" = "" ]; then". Simple enough to do by hand, and I can boot my system, after entering my passphrase! This was GREAT SUPPORT, thanks a lot! For completeness I post the file init.rej, that may help you to find out why the patch failed (in case you want to). When I issued the patch command Code:
cd /boot/initrd-tree Code:
*************** gargamel |
Cool.
Pat has the patch and will probably "sit on it" for a little while to catch any negatives. Expect to see an updated mkinitrd soon-ish. Eric |
Excellent!
And BTW: I write this post from the now running brand-new RAID-1 + LVM + LUKS Slackware 12.1 system! 8-) gargamel |
Hmm, just thought, we could compile the information in this thread to a small HOW-TO... Because, once the patch is applied, most of what was said in the original post is correct. Just let me complete my system setup, first. I'll come back to this, when the machine runs as it is supposed to.
gargamel |
Quote:
Thanks for your time. |
Quote:
In fact, the case in this thread is when you need an additional raid device for your /boot partition because the other raid1 device is encrypted (which makes it impossible for lilo to read a kernel from that device when the computer boots). The mkinitrd patch has gone into Slackware 12.1's patches directory. So, with some fiddling you can install Slackware 12.1 using RAID1 and have a LVM with LUKS encryption inside. Eric |
Quote:
For now, if you want to set up a RAID + LVM + RAID-1 system, most of what I described in my original post is correct. It just didn't work due to this little snag with RAID initialization being done too late. This would be a very good first test for the HOWTO, BTW, if you like. But ensure that you use the patched mkinitrd package. gargamel |
My scenario is different. I have a 4 disk RAID5 and it is my present intention to create 2 partitions on each HD. The first is small, where sda1 is /boot and sd[bcd]1 are swap. sd[abcd]2 would then comprise /dev/md0 and LVM will break that up into / and /var where /var will be mounted with option noatime.
I'll have to think about a separate /home. So, while the RAID1 described here is essentially correct, it certainly does not cover all possibilities, and Eric's README_*.TXT files fail to explain, so liberal use of "man" will be required. Unfortunately, man pages won't be available because there won't be a working Slackware during the processing... IMO, Eric failed to consider that you have to accomplish this "blind". If this thread were copied and pasted into a HOWTO, it would be a darn good start. Fleshing it out with a bit of explanation wouldn't hurt either. Knowing this, I'll print out a couple of man pages before running dd. But I can't help feeling some trepidation. |
Quote:
Third, using LVM and /or disk encryption is unrelated to your use of RAID. Combining the information in the three READMEs for RAID, LVM and CRYPT, you should have no real problems in putting it all together. I did not 'fail' to consider that you may have a printer and/or another internet-enabled computer available during install. I also assume that people who want to combine raid, lvm and encryption are knowledgeable enough to find a way - I am not doing any hand-holding here. Eric |
Quote:
I got this exact message. I like having my own custom minimal kernel and spend two hours of useless debugging because of this error. It was a pretty dumb error, but worth mentioning. I have a custom .config I use as a template and this didn't include initrd support. So if you get this message or similar and use an initrd and a custom kernel. Check that you actually have initrd support. :) |
All times are GMT -5. The time now is 03:10 PM. |