LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-03-2009, 04:34 PM   #16
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392

Quote:
Originally Posted by Didier Spaier View Post

Does that mean that I should have installed lilo either in the MBR (which I do not want to do) or at least outside the LVM ?
If you install lilo in your root partition which itself is inside the LVM, I'm not sure what will make your system boot.

I'm no expert but installing lilo in the MBR when using LVM makes sense to me because then at boot you can run some code to make your LVM available. Technical information about that were given in a previous post from trhodes in this thread.

If you do not want to put lilo in MBR, I guess the alternative is to put it in another place outside the LVM. But then you reach the end of my limited knowledge on this topic
 
Old 09-03-2009, 04:35 PM   #17
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by Didier Spaier View Post
To install Slackware 13 in a LVM I followed instructions from the README_LVM.TXT written by Eric Hameleers and tried to install lilo in my root partition (in the LVM):
Code:
boot = /dev/vg/root
I thought it had worked, but at reboot I got the infamous message:
Code:
No sig. in partition
Does that mean that I should have installed lilo either in the MBR (which I do not want to do) or at least outside the LVM ?

Sorry to hijack this thread but this is also a LVM question, isn't it ?
1. Unless you use another main boot manager (in the MBR) and indend to chain-load, install lilo in the MBR.
2. Make sure to follow the instructions in the README_LVM.TXT step by step, especially concerning the creation of initrd (with the "-L" parameter to mkinitrd) and adding the generic-smp-2.6.29.6-smp kernel to the lilo.conf.
 
Old 09-03-2009, 04:37 PM   #18
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by niels.horn View Post
If I remember correctly, this is not possible...
I use LVM as well on my machine, and the LVM partitions can only be mounted later on in the boot process (in /etc/rc.d/rc.S).

So you will need to have / mounted before you can mount the LVM volumes.

But, maybe there is a way... won't be simple though.
No, you are not right. There is currently no problem having the root partition on LVM, provided that one uses initrd image.
 
Old 09-03-2009, 04:48 PM   #19
dwabot
LQ Newbie
 
Registered: Jun 2009
Location: Toronto, Canada
Distribution: Slackware
Posts: 22

Rep: Reputation: 16
I just did a 13.0 install using LVM and initrd. I created 2 partitions and left /boot outside the LVM. My setup:

sda1 - /boot
sda2 - LVM - containing logical volumes for /root, /home and swap

My /boot *had* to remain outside the LVM because the system is encrypted... Something to consider if you decide to check out encrypted filesystems later on.
 
Old 09-03-2009, 10:48 PM   #20
niels.horn
Senior Member
 
Registered: Mar 2007
Location: Rio de Janeiro - Brazil
Distribution: Slackware64-current
Posts: 1,004

Rep: Reputation: 91
Quote:
Originally Posted by tramni1980 View Post
No, you are not right. There is currently no problem having the root partition on LVM, provided that one uses initrd image.
You are completely correct... My answer was based on outdated experiences with Logical Volumes on other Unices, not recent Slackware versions.

My current setup continues to work this way, with non-LVM / & /boot partitions.
 
Old 09-04-2009, 04:21 PM   #21
Mistoffeles
Member
 
Registered: Dec 2007
Location: TGWN
Distribution: Fedora, RHEL, CentOS, Evil Entity
Posts: 36

Rep: Reputation: 15
It's a chicken-and-egg problem, you need to be able to access the LVM software before you can access the logical volumes, so if the LVM software is on the logical volumes you can't load it to enable access to the logical volumes; therefore, it has to be located somewhere that you have access to before loading LVM, such as an initrd image on a non-LVM /boot partition, for example.
 
Old 09-04-2009, 05:07 PM   #22
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
OK, forget it: I ended up creating only two primary partitions, one for swap (4G) and one for / (remaining space). So:
- I didn't have to set up an extended partition
- I won't have to re size anything, so no need for LVM
- I could install lilo on the root partition

Only remaining question: why am I not able to find simple ways to do things at first

Thanks for your answers anyway.
 
Old 09-04-2009, 05:28 PM   #23
Mistoffeles
Member
 
Registered: Dec 2007
Location: TGWN
Distribution: Fedora, RHEL, CentOS, Evil Entity
Posts: 36

Rep: Reputation: 15
Less interesting?

I like LVM, but I always have ext2/3/4 `/boot` and `swap` partitions first (or at the very least `/boot`) and then the rest of the disk is LVM. This lets me make small partitions as needed and expand them if ever comes to that (which so far has only happened once).
 
Old 09-16-2009, 09:16 AM   #24
oggg
LQ Newbie
 
Registered: Nov 2007
Distribution: Slackware 13.0
Posts: 3

Rep: Reputation: 0
Reading all posts I agree with tramni1980 that README_LVM.TXT is a well written manual for installing Slack on LVM, as I have tried it on a Sun virtual box and installation was successful. My problem is when trying to migrate from existing installation to LVM. I have tryed http://www.unixwerk.eu/linux/slack/lvm2root.html a couple of times but in this case after editing lilo.conf and run lilo, there is a

Lilo fatal Linux experimental device 0x04x needs to be defined
Check man lilo.conf under disk= and max_partitions=

message. Is there anyone who has a successful migration to LVM?
 
Old 09-16-2009, 09:37 AM   #25
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by oggg View Post
Reading all posts I agree with tramni1980 that README_LVM.TXT is a well written manual for installing Slack on LVM, as I have tried it on a Sun virtual box and installation was successful. My problem is when trying to migrate from existing installation to LVM. I have tryed http://www.unixwerk.eu/linux/slack/lvm2root.html a couple of times but in this case after editing lilo.conf and run lilo, there is a

Lilo fatal Linux experimental device 0x04x needs to be defined
Check man lilo.conf under disk= and max_partitions=

message. Is there anyone who has a successful migration to LVM?
Did you create an initrd with the "-L" option?
 
Old 09-17-2009, 03:09 AM   #26
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Hello!

I would like to ask the lvm users with /root on an lvm partition, what boot parameters they pass to the kernel, when in a pinch? That is, what kernel parameters they pass to the hugesmp kernel when using the rescue cd to boot?

Regards,

Martin
 
Old 09-17-2009, 03:26 AM   #27
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Quote:
Originally Posted by tramni1980 View Post
Hello!
That is, what kernel parameters they pass to the hugesmp kernel when using the rescue cd to boot?
I've not tested it personally, but I think that you just need to use the default parameters. LVM will be taken care of automatically.

Code:
hugesmp.s root=/dev/hda1 noinitrd ro
Change /dev/hda1 if your LVM partition is somewhere else.
 
Old 09-17-2009, 03:31 AM   #28
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by gegechris99 View Post
I've not tested it personally, but I think that you just need to use the default parameters. LVM will be taken care of automatically.

Code:
hugesmp.s root=/dev/hda1 noinitrd ro
Change /dev/hda1 if your LVM partition is somewhere else.
I see, but so long as I have read so far, even if a kernel has lvm support built-in, as hugesmp does, it still needs an initrd to activate the lvm volumes beforehand. That is why I suppose in the case of lvm on root, some boot parameter has to be passed to hugesmp to do the job.
 
Old 09-17-2009, 03:38 AM   #29
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
AFAIK, hugesmp kernel has everything built-in (including LVM).

I think the easiest thing to do is to just give it a try. If the default parameters do not work, just post the error message.
 
Old 09-17-2009, 03:41 AM   #30
oggg
LQ Newbie
 
Registered: Nov 2007
Distribution: Slackware 13.0
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by tramni1980 View Post
Did you create an initrd with the "-L" option?
Always but no result
 
  


Reply



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
some unformal LVM and RAID questions -- crispyleif Linux - Software 4 07-27-2009 02:10 AM
Using LVM on RAID, some questions [GOD]Anck Slackware 2 03-16-2008 11:07 AM
software raid5 + LVM and other questions slackman Linux - Server 0 05-08-2007 02:54 AM
Basic LVM Questions. hondaman Linux - Software 0 08-24-2006 04:54 PM
lvm questions billehunt Linux - Software 4 06-15-2005 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:55 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
Open Source Consulting | Domain Registration