LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (http://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   Slackware 11.0 Installation & LVM partition (http://www.linuxquestions.org/questions/slackware-installation-40/slackware-11-0-installation-and-lvm-partition-493711/)

wuf31 10-18-2006 11:01 PM

Slackware 11.0 Installation & LVM partition
 
Hi everyone, just downloaded the new Slackware 11.0.

My Question here is that it doesn't seem to me that Slackware 11.0
supports installation to LVM partition out of the box.
I've searched the net but found no guide for 11.0
Have anyone do this before. I'd prefer to install it on a root LVM2 partition as well. But if that's too much, I'll settle for LVM1.

Thanks & Looking forward for the guide :D

Slim Backwater 10-19-2006 04:02 PM

It's not easy.

The slackware install environment is kinda like a very minimum install. To get LVM you have to boot a 2.6 kernel (try huge26.s) and then you have to create a ram disk, move a couple of directories to it, and then install the LVM tools to the ram disk. Then you can do the install.

I figured out how to do RAID http://www.linuxquestions.org/questi...d.php?t=492626 from a post that was doing LVM so my message there should help you. (link to the LVM install is in my linked message).

FWIW, I wouldn't do it. If you screw your system up and can't boot, it's troublesome to recover with just the install CD. You'll probably boot a live cd to fix your non-boot problems.

What I'd suggest is to create a simple 10G partition and install Slack to that. Then use the rest of your drive as an LVM PV. The idea is that if you screw up something (lilo, etc) you can still boot off the installation cd and fix it (edit your fstab etc) easily.

I'm actually creating a 10G RAID-1 for root, and the rest of the drive is a RAID-1 for LVM. If I fill my root, then at that time I'll create LVs for something like /opt or /usr and move them to the raid.

Good luck!

wuf31 10-19-2006 10:38 PM

Quote:

It's not easy.
Gotta agree on that.

Quote:

The slackware install environment is kinda like a very minimum install. To get LVM you have to boot a 2.6 kernel (try huge26.s) and then you have to create a ram disk, move a couple of directories to it, and then install the LVM tools to the ram disk. Then you can do the install.
Basically, I've done that.
Installing Slackware into a root LVM partition is certainly tricky. Gotta hacked my way through the setup script (Whew, took me a couple hours, too!!).
Now, the system is quite done (I think). Unless when I found out that I've got myself a kernel panic (Why the hell should they named it kernel panic anyway ?? It'll be a lot nicer if they just say that can't find root partition /dev/vgmain/lvroot.) Anyway i got a hunch that the missing link is in the initrd. Guess i'm on my way to the LVM-Howto. Argh!!

Quote:

FWIW, I wouldn't do it. If you screw your system up and can't boot, it's troublesome to recover with just the install CD. You'll probably boot a live cd to fix your non-boot problems.
Rite. I've a GParted CD. That should be enough. Right :)?

Quote:

Good Luck
Thanks, I'll need it. I'll be out of town for a week or so. If i do it right. I'll post the steps here.

wuf31 11-07-2006 12:47 AM

Well, it turns out it's too much trouble creating the initrd.
No luck, so far turns back into lvm1 and simple primary ext3 partition for root.

Zmyrgel 11-09-2006 04:22 AM

I just finished installing Slack 11.0 with LVM-partitions. I usually don't install root on lvm to keep it simple.
Now I have following partitions:
/boot 100Mb
swap 512Mb
/ 1Gb
rest is lvm-partition with (/usr /var /tmp /opt /home) 98Gb

This makes the booting quite easy and still allows flexibility with the partitions.
Quick guide can be found here.

mrmandingo 03-21-2007 03:48 AM

unsuccessful
 
I attempted to install Slackware 11 with lvm as posted in this guide:

http://wiki.linuxquestions.org/wiki/...-partitions.3F

When I ran vgscan the final time I got a message saying:

/proc/mounts: fopen %s failed: No such file or directory
/proc/devices: fopen failed: No such file or directory
Failed to create lvm type filter

When I tried to reboot with either 'shutdown -r now' or 'reboot' I got the following error:

init: /dev/initctl: No such file or directory

During startup I noticed that my LVs (/usr, /var, /tmp, /opt, and /home) failed to mount reason: No such file or directory. They should be mounted as /dev/vg/volume_name.

When I created the LVs in step 6 (by running 'lvcreate -L5G -nusr vg') I got the message:

/dev/hda: open failed: Read-only file system
Logical volume "usr" created

I got the same message for all LVs created. /dev/hda is my dvd burner. I dont understand this because I am trying to creat LVs on /dev/sda4.

I think that I might not understand how to perform step 7 (mount the new root to /mnt). Does this mean to mount /dev/sda3 (my root partition) to /mnt? After mounting /dev/sda1 to /boot and /dev/sda3 to / I switched to console 2 and ran 'mount /dev/sda3 /mnt' I got the following message:

mount: /dev/sda3 already mounted or /mnt busy
mount: according to mtab, /dev/sda3 is already mounted on /mnt.

I assumed this was ok and proceeded with the rest of the installation, getting stuck at step 15 as described earlier.

I performed a hard reboot and was not able to login. The password is incorrect. I carefully noted the pass when I changed it and even ran passwd while in the chrooted enviroment. I have reattemted the whole installation multiple times. I dont know what to do.

Also, I am using the installation DVD to install Slackware.

What am I doing wrong? There seems to be something missing from this guide. Please Help Me. Thank you.

Zmyrgel 03-22-2007 03:45 AM

I send you email about the fix and I will modify the guide to be little clearer too so others won't have same issues.

The guide is bit unclear when it should switch to another console and it doesn't point out the fact that in the end before chrooting user should mount /proc and perhaps /dev to /mnt/proc and /mnt/dev.


All times are GMT -5. The time now is 04:40 PM.