LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices



Reply
 
Search this Thread
Old 10-19-2006, 12:01 AM   #1
wuf31
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Rep: Reputation: 0
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
 
Old 10-19-2006, 05:02 PM   #2
Slim Backwater
Member
 
Registered: Nov 2005
Distribution: Slackware 10.2 2.6.20
Posts: 68

Rep: Reputation: 15
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!
 
Old 10-19-2006, 11:38 PM   #3
wuf31
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 11-07-2006, 01:47 AM   #4
wuf31
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 11-09-2006, 05:22 AM   #5
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 36
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.

Last edited by Zmyrgel; 11-09-2006 at 05:56 AM.
 
Old 03-21-2007, 04:48 AM   #6
mrmandingo
LQ Newbie
 
Registered: Apr 2006
Posts: 3

Rep: Reputation: 0
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.

Last edited by mrmandingo; 03-21-2007 at 09:50 PM.
 
Old 03-22-2007, 04:45 AM   #7
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 36
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.
 
  


Reply

Tags
installation, lvm2, slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to partition HD for Linux (Slackware 10.2) Installation vidguy Linux - Newbie 12 02-15-2006 01:28 PM
Installing Slackware 10.2 on an LVM Partition darkarcon2015 Slackware - Installation 10 02-07-2006 05:19 PM
Partition type LVM & Raid siawash Linux - Newbie 16 07-13-2004 07:37 PM
Installation & Partition Nefarious Linux - Newbie 25 11-24-2002 09:27 AM


All times are GMT -5. The time now is 11:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration