LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   Installing Slackware (everything) on LVM (https://www.linuxquestions.org/questions/slackware-installation-40/installing-slackware-everything-on-lvm-4175425787/)

Aurorius 09-05-2012 11:13 AM

Installing Slackware (everything) on LVM
 
1 Attachment(s)
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

natharran 09-07-2012 05:54 PM

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?

Aurorius 09-07-2012 08:32 PM

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.

natharran 09-08-2012 10:48 AM

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

Aurorius 09-08-2012 05:18 PM

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)


MQMan 09-09-2012 03:36 PM

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

Cheers.

Aurorius 09-09-2012 03:42 PM

Quote:

Originally Posted by MQMan (Post 4776317)
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?

MQMan 09-09-2012 04:21 PM

Quote:

Originally Posted by Aurorius (Post 4776320)
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 (Post 4776320)
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.

Aurorius 09-09-2012 04:26 PM

Quote:

Originally Posted by MQMan (Post 4776341)
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.

Aurorius 09-09-2012 09:27 PM

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

Aurorius 09-10-2012 09:05 PM

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


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