LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-05-2012, 12:13 PM   #1
Aurorius
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Rep: Reputation: 1
Installing Slackware (everything) on LVM


I've been trying almost a day to install Slackware v13.37 64 bit using LVM on my server. I think I've followed everything from http://slackware.osuosl.org/slackwar...README_LVM.TXT.

- Created one partition for the whole hardisk and set Linux LVM as its type.
- Created LVM

Code:
$ pvcreate /dev/sda1
$ vgcreate vg01 /dev/sda1
$ lvcreate -L 20G -n root vg01
$ lvcreate -L 20G -n iso vg01
$ lvcreate -L 4G -n swap vg01
$ mkswap /dev/vg01/swap
$ setup
$ chroot /mnt
$ mkinitrd -c -k 2.6.37.6 -m ext4 -f ext4 -r /dev/vg01/root -L
$ ln -sf /boot/vmlinuz-generic-2.6.37.6 /boot/vmlinuz
$ (put initrd = /boot/initrd.gz in my lilo.conf)
$ lilo
$ exit
$ reboot
BTW, I left some space to be used later. It's a 250GB HD. After the first boot, I got an error saying something about no volume groups found (refer to the pic). I was hoping there was a silly typo somewhere, so, I repeated the installation a few times and the result is still the same.

Could you guys point me to the right direction to solve this error? Thanks in advance.

UPDATE

Setup partitions: http://i.imgur.com/amkQl.png
After installation: http://imgur.com/OLCag
Edit lilo: http://imgur.com/u8bMl
Run lilo: http://imgur.com/bxTJy
fstab: http://imgur.com/KkSVP

All images: http://imgur.com/amkQl,OLCag,u8bMl,bxTJy,KkSVP
Attached Images
File Type: jpg SC.jpg (282.7 KB, 27 views)

Last edited by Aurorius; 09-09-2012 at 10:22 PM. Reason: added pictures
 
Old 09-07-2012, 06:54 PM   #2
natharran
Member
 
Registered: Jul 2012
Location: Czech Republic
Distribution: Slackware64 14.1
Posts: 34

Rep: Reputation: Disabled
Hi,

I'm not exactly and expert so I may be totally wrong, but your system says something about not being able to mount "/dev/vg01/root" to "/mnt". Shouldn't it be mounting "/dev/vg01/root" to "/" instead? How did you configure your mountpoints during the setup? Could you past your /etc/fstab content (after chroot, of course)?

Also, is it possible to bypass the error with

Code:
mount -rt ext4 /dev/vg01/root /
after it occures?
 
Old 09-07-2012, 09:32 PM   #3
Aurorius
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Original Poster
Rep: Reputation: 1
I'll get you more info later since I can't access the server remotely. But thanks for answering, I'll try my best providing any info you want.

I configured my server using the guide at http://slackware.osuosl.org/slackwar...README_LVM.TXT. It says that after the setup is complete, I should use

Code:
chroot /mnt
and then use this command to generate initrd

Code:
mkinitrd -c -k 2.6.37.6 -m ext4 -f ext4 -r /dev/vg01/root -L
By the way, I can't type anything during the error. It says I can try to fix it, but I can't type anything and the only thing I can do is powering off the server manually. I'm starting to think there's a typo somewhere, but I've already tried these commands on the same server several times. I've also tried using these same commands (exactly) on my Xen virtual machines (two of them) and surprisingly I can boot without any problems.
 
Old 09-08-2012, 11:48 AM   #4
natharran
Member
 
Registered: Jul 2012
Location: Czech Republic
Distribution: Slackware64 14.1
Posts: 34

Rep: Reputation: Disabled
Hi again,

if these commands work fine for other computers then it could possibly be a kernel issue. I had a similar issue a few weeks ago (not exactly the same, though; I was installing an encrypted Slackware 13.37 64bit system). The "huge" kernel was responsible for the error, as I found out after switching to the "generic" kernel, which you apparently use. Maybe some newer kernel could do the trick for you.

I hope there's an easier solution but since two other computers work fine after this procedure then my money is on kernel (not to mention you can't write anything to fix the error - your hardware seems not to be properly recognized).

You surely know the procedure - install the system, import the new kernel source, chroot, compile, install, mkinitrd, edit /etc/lilo.conf if needed and run lilo.

Natharran
 
Old 09-08-2012, 06:18 PM   #5
Aurorius
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Original Poster
Rep: Reputation: 1
I still can't believe those commands won't work on that server. I'll try the installation again in a few days (maybe I'll also try with slackware-current/slackware v14). This time I'll type in letter by letter slowly. There has to be some stupid newbie mistake that I made. In case anyone interested, I'm installing this on Dell R710.

Code:
$ lspci
00:00.0 Host bridge: Intel Corporation 5520 I/O Hub to ESI Port (rev 13)
00:01.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 1 (rev 13)
00:03.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 3 (rev 13)
00:04.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 4 (rev 13)
00:05.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 5 (rev 13)
00:06.0 PCI bridge: Intel Corporation 5520/X58 I/O Hub PCI Express Root Port 6 (rev 13)
00:07.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 7 (rev 13)
00:09.0 PCI bridge: Intel Corporation 5520/5500/X58 I/O Hub PCI Express Root Port 9 (rev 13)
00:14.0 PIC: Intel Corporation 5520/5500/X58 I/O Hub System Management Registers (rev 13)
00:14.1 PIC: Intel Corporation 5520/5500/X58 I/O Hub GPIO and Scratch Pad Registers (rev 13)
00:14.2 PIC: Intel Corporation 5520/5500/X58 I/O Hub Control Status and RAS Registers (rev 13)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IB (ICH9) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IB (ICH9) 2 port SATA IDE Controller (rev 02)
01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
01:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
02:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
03:00.0 SCSI storage controller: LSI Logic / Symbios Logic SAS1068E PCI-Express Fusion-MPT SAS (rev 08)
08:03.0 VGA compatible controller: Matrox Graphics, Inc. MGA G200eW WPCM450 (rev 0a)
fe:00.0 Host bridge: Intel Corporation Xeon 5600 Series QuickPath Architecture Generic Non-core Registers (rev 02)
fe:00.1 Host bridge: Intel Corporation Xeon 5600 Series QuickPath Architecture System Address Decoder (rev 02)
fe:02.0 Host bridge: Intel Corporation Xeon 5600 Series QPI Link 0 (rev 02)
fe:02.1 Host bridge: Intel Corporation Xeon 5600 Series QPI Physical 0 (rev 02)
fe:02.2 Host bridge: Intel Corporation Xeon 5600 Series Mirror Port Link 0 (rev 02)
fe:02.3 Host bridge: Intel Corporation Xeon 5600 Series Mirror Port Link 1 (rev 02)
fe:02.4 Host bridge: Intel Corporation Xeon 5600 Series QPI Link 1 (rev 02)
fe:02.5 Host bridge: Intel Corporation Xeon 5600 Series QPI Physical 1 (rev 02)
fe:03.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Registers (rev 02)
fe:03.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Target Address Decoder (rev 02)
fe:03.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller RAS Registers (rev 02)
fe:03.4 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Test Registers (rev 02)
fe:04.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Control (rev 02)
fe:04.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Address (rev 02)
fe:04.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Rank (rev 02)
fe:04.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 0 Thermal Control (rev 02)
fe:05.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Control (rev 02)
fe:05.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Address (rev 02)
fe:05.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Rank (rev 02)
fe:05.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 1 Thermal Control (rev 02)
fe:06.0 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Control (rev 02)
fe:06.1 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Address (rev 02)
fe:06.2 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Rank (rev 02)
fe:06.3 Host bridge: Intel Corporation Xeon 5600 Series Integrated Memory Controller Channel 2 Thermal Control (rev 02)
 
Old 09-09-2012, 04:36 PM   #6
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 13.37
Posts: 536

Rep: Reputation: 36
Depending on the kernel you are using, you might have to include some of the LVM modules in the mkinitrd.

Cheers.
 
Old 09-09-2012, 04:42 PM   #7
Aurorius
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by MQMan View Post
Depending on the kernel you are using, you might have to include some of the LVM modules in the mkinitrd.

Cheers.
I'm using generic kernel and I'm passing -L option when I'm making the initrd. Is there anything else I should do?
 
Old 09-09-2012, 05:21 PM   #8
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 13.37
Posts: 536

Rep: Reputation: 36
Quote:
Originally Posted by Aurorius View Post
I'm using generic kernel and I'm passing -L option when I'm making the initrd. Is there anything else I should do?
Sorry, I wasn't familiar with the -L option, so I guess that covers what I was thinking of, assuming that you have the LVM packages installed.

As asked earlier, what's the contents of /etc/fstab.

You could also take a look at the comments in /etc/rc.d/rc.S regarding how the init process activates LVM, although I'm not sure exactly how that works, if you boot from an LVM partition.
Quote:
Originally Posted by Aurorius View Post
Code:
$ mkinitrd -c -k 2.6.37.6 -m ext4 -f ext4 -r /dev/myvg/root -L
$ ln -sf /boot/vmlinuz-generic-2.6.38.7 /boot/vmlinuz
That doesn't look right, as you should be using the same version kernel and modules. Or was it just a typo.

Cheers.
 
Old 09-09-2012, 05:26 PM   #9
Aurorius
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by MQMan View Post
Sorry, I wasn't familiar with the -L option, so I guess that covers what I was thinking of, assuming that you have the LVM packages installed.

As asked earlier, what's the contents of /etc/fstab.

You could also take a look at the comments in /etc/rc.d/rc.S regarding how the init process activates LVM, although I'm not sure exactly how that works, if you boot from an LVM partition.

That doesn't look right, as you should be using the same version kernel and modules. Or was it just a typo.

Cheers.
Ah, sorry about that, I'm pretty sure it's a typo coz usually I'll just use autocomplete whenever it's possible. I'll get back to you in a few hours about the fstab (I assume the fstab after I've chroot, right?). I'll also try this commands again, hopefully I can rule out typo.
 
Old 09-09-2012, 10:27 PM   #10
Aurorius
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Original Poster
Rep: Reputation: 1
I've updated the first post with all the necessary pictures. The content of the fstab is as follows:

Code:
/dev/vg01/swap        swap          swap        defaults          0 0
/dev/vg01/root        /             ext4        defaults          1 1
/dev/vg01/iso         /iso          ext4        defaults          1 2
#/dev/cdrom           /mnt/cdrom    auto        noauto,owner,ro   0 0
/dev/fd0              /mnt/floppy   auto        noauto,owner      0 0
devpts                /dev/pts      devpts      gid=5,mode=620    0 0
proc                  /proc         proc        defaults          0 0
tmpfs                 /dev/shm      tmpfs       defaults          0 0
Based on this pic: http://imgur.com/KkSVP

Last edited by Aurorius; 09-09-2012 at 10:28 PM. Reason: typo
 
Old 09-10-2012, 10:05 PM   #11
Aurorius
LQ Newbie
 
Registered: Feb 2007
Posts: 20

Original Poster
Rep: Reputation: 1
Found the problem. I should not just load ext4 as the module instead I need to run this mkinitrd:

Code:
mkinitrd -c -k 2.6.37.6 -f ext4 -r /dev/vg01/root -m mptbase:mptscsih:mptsas:usbhid:ehci-hcd:uhci-hcd:jbd2:mbcache:ext4 -L -u -o /boot/initrd.gz
Generated from /usr/share/mkinitrd/mkinitrd_command_generator.sh
 
  


Reply

Tags
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
Installing Slackware entirely on LVM astanton Slackware - Installation 4 01-29-2012 03:15 PM
[SOLVED] Installing Slackware 13.37 with a LVM as root nigel_galloway Slackware - Installation 2 06-24-2011 07:23 PM
[SOLVED] Slackware on LVM alexbrui Slackware 1 04-15-2011 11:15 AM
Installing Slackware 10.2 on an LVM Partition darkarcon2015 Slackware - Installation 10 02-07-2006 05:19 PM
installing Slackware 10.2 w/ Kernel 2.6 and LVM alphahawk Slackware 4 12-05-2005 02:49 PM


All times are GMT -5. The time now is 07:16 PM.

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