LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (http://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   /boot as LVM?? (http://www.linuxquestions.org/questions/slackware-installation-40/boot-as-lvm-752190/)

egregor 09-02-2009 03:02 PM

/boot as LVM??
 
Hi. Regarding a lvm installation:

Can LILO or GRUB (I prefer and am used to the later) start from a LVM'ed /boot? Can /boot be a separated LV?



Thanks

firewiz87 09-02-2009 03:43 PM

I dont think that is possible.... most of the grub files (like stage 2) is stored in /boot and Loading lvm before stage 2 is not possible(as far as i know).... Thus the /boot should be a physical partition....

However, you can put everything else as LV.... though making root an LV is not recommended since an LVM error would make the system unbootable....

gegechris99 09-02-2009 04:06 PM

Hello egregor,

This thread LVM question may be of interest to you.

egregor 09-02-2009 05:29 PM

firewiz87

I agree, wasn't expecting GRUB to have this feature. But it seems LILO has. Thanks


gegechris99

Thanks, this post sheds some light. But let me ask you, did you make /boot within lvm (you said fallowed "README_LVM.TXT")?

-------------------------------------------------------------------------

Then I'm thinking about doing a / and a lvm for other partitions. So, to be sure, I will need an initrd with -L option, so it will be possible to mount the rest of the system?



UPDATE

Installed here with grub and root outside lvm. If it wasn't the help maybe I would still be stuck. Thanks


But this question is still up: can Lilo boot from LVM?

gegechris99 09-03-2009 03:20 AM

Quote:

Originally Posted by egregor (Post 3667417)
But this question is still up: can Lilo boot from LVM?


Yes. In file README_LVM.TXT, the example describes the installation of both the root "/" and /home directories in LVM.

So /boot is also in LVM (because root "/" is in LVM). And in this case, you'll need an initrd.gz image file that will be used by lilo during boot.

Of course, follow carelful the instructions in the README file to create the initrd.gz file and update your lilo configuration.

egregor 09-03-2009 07:48 AM

Quote:

Originally Posted by gegechris99 (Post 3667909)
Yes. In file README_LVM.TXT, the example describes the installation of both the root "/" and /home directories in LVM.

So /boot is also in LVM (because root "/" is in LVM). And in this case, you'll need an initrd.gz image file that will be used by lilo during boot.

Of course, follow carelful the instructions in the README file to create the initrd.gz file and update your lilo configuration.


OK.


Thanks

firewiz87 09-03-2009 12:04 PM

thought i would add in... just so that you would know...

The "new" grub, called grub2 supports booting from LVM....
http://grub.enbug.org/LVMandRAID

Do post how all this works out...


All times are GMT -5. The time now is 10:55 AM.