Slackware 12.1 and LVM
Hi, all!
I just got Slackware 12.1 and decided to install it onto LVM (this is my first time of using LVM). I use VMWare for test with 11Gb virtual dynamic SCSI-HDD. I split it on 2 partitions: /dev/sda1 (100Mb, bootable) and /dev/sda2 (type '8e' - Linux LVM). Next steps I did with reading README_LVM.TXT: I run: Code:
# pvcreate /dev/sda2 Code:
/dev/myvg/root / (ext3) I made initrd: Code:
mkinitrd -c -k 2.6.24.5-smp -m ext3 -f ext3 -r /dev/myvg/root -L Code:
image = /boot/vmlinuz-generic-smp-2.6.24.5-smp After my system boot I saw: Code:
No volume group found. |
I don't see anything wrong in the steps you took. But the error indicates that your LVM is no longer there. Did you see any errors when you ran 'lilo'?
Try booting from the Slackware install CD again, and when you get to the prompt, type Code:
# vgscan --mknodes With Code:
pvdisplay -c Eric |
Hi, Eric!
Thank you for an answer. I made just fresh new installation step-by-step from first post. In past of installation process I ran lilo. Here is what it said to me: Code:
root@slackware:/# lilo Code:
No volume group found. Code:
root@slackware:/# vgscan --mknodes |
Quote:
To fix this you should be able to do the following (no need to re run the install again, unless you want to): boot from install cd, login to command line and then run these Code:
vgscan --mknodes Though this is mentioned in the readme_lvm file, it's easy to miss and it would be nice if the install scripts could issue these vgscan and vgchange commands for you in the chrooted environment prior to entering the lilo dialog phase of the install. Maybe that's an improvement the Slacware team could look at for future versions? Anyway, give that a go and let us know if it still doesn't work. |
Quote:
Code:
mount -o bind /proc /mnt/proc Code:
vgscan --mknodes --ignorelockingfailure Running "vgchange -ay --ignorelockingfailure" in the chroot has not been necessary in all my installs so far. Eric |
I stand corrected then. Thanks Eric. I'm still running 12.0 here. I really should get around to upgrading.
|
I thought a bit and found that md5sum of my DVD didn't match to original :)
I decided to download DVD once again from torrent. May be it will solve all this problems. |
Plenty,
I realize you are working on downloading and burning a new ISO because your MD5 checksum doesn't match up, but I may have another solution for you. I just went through the same grief you did (No volume group found), but on a Slamd64 12.1 RC1 installation (64-bit Slackware derivative). I'm a longtime Slack user, but completely new to LVM and messing with initrd. This is significant, because once I read the initrd man page where it described the two phases of boot-up, it lead me to look closer at the boot messages and discover that the boot loader was not finding my hardware SAS RAID controller and disks. I looked back over the successful boot with the installation disk, and determined that I needed the megaraid_sas kernel module to be present for the system to find /dev/sda, and the associated logical volumes. If I would have been adding that to your mkinitrd command, it would look like this: Code:
mkinitrd -c -k 2.6.24.5-smp -m ext3:megaraid_sas -f ext3 -r /dev/myvg/root -L Hope this helps, and best wishes to you! Brett By the way, you wrote: Quote:
|
Thank you Col-Panic. Figured, solution to Plenty's question is loading the BusLogic module
mkinitrd -c -k 2.6.24.5-smp -m ext3:BusLogic -f ext3 -r /dev/myvg/root -L ran it from chroot, ran lilo again, rebooted and everthing came up perfecty. Now I have hard time doing "Install Vmware tools". vmware-config-tools.pl log is detailed below Code:
None of the pre-built vmhgfs modules for VMware Tools is suitable for your |
|
Hey! I solved my problem!
Quote:
I remade initrd and got working LVM and LUKS+LVM too! |
Nice!
If you would do me a favour, and download this script: mkinitrd_command_generator.sh I would like to see the results it writes to your console when you run Code:
sh mkinitrd_command_generator.sh -r What I would like to know if it shows (nearly) the same command you have used yourself. If the next Slackware should get the functionality for automatic creation of an initrd, I want it to be tested as much as possible. Regards Eric |
Hi, Eric. I'm glad to be usefull for Slackware team :)
It is an output for your script after running by me: Code:
# Code:
mkinitrd -c -k 2.6.24.5-smp -m mptspi:reiserfs -f reiserfs -r /dev/cryptvg/root -C /dev/sda2 -L Code:
ls /boot/initrd-tree/lib/modules/2.6.24.5-smp/kernel/message/fusion Code:
ls /boot/initrd-tree/lib/modules/2.6.24.5-smp/kernel/drivers/scsi Code:
ls /boot/initrd-tree/lib/modules/2.6.24.5-smp/kernel/fs/reiserfs A big note: I used VmWare (with SCSI HDD) in this case for testing purposes only because I would like to saw LUKS+LVM in Slackware. That's why when I made initrd I used such few modules. In a real life I'll plan to install and work with Slackware on my laptop HP 6710s and probably write small howto for installing Slackware on this nice laptop :) |
Definitely need to find out why the script tries to drag network and sound drivers into the module list...
Eric |
mkinitrd_command_generator.sh is a great script, already!
In fact, it's amazing how well it works. It helped me a lot. In my environment I found only one little "snag", if you would call it that way, at all, regarding keyboard configuration: pkgtool configuration is apparently ignored, instead the system locale is used. But I guess that most users outside the USA have a standard locale, ie en_US, but an international keyboard setup, configured with pkgtool. For these users it would probably be better to support their keyboard, even if the locale is the basic US one. As README_LVM.TXT points out, you need the right keyboard setup if you use international characters in your passphrase. But apart from this little cosmetic thing, that can, of course, most easily be fixed by hand, anytime, it is a great script. Once I said: If I were allowed to put only one program on a Slackware wishlist, it would be src2pkg. But if I were allowed to add a second one, it would be mkinitrd_command_generator.sh. Thanks, Eric!!! gargamel |
All times are GMT -5. The time now is 09:30 PM. |