LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (http://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   how can I create lvm boot partition (http://www.linuxquestions.org/questions/linux-enterprise-47/how-can-i-create-lvm-boot-partition-764502/)

ram_rajavarapu 10-26-2009 06:58 AM

how can I create lvm boot partition
 
Hai LQ
I am using RHEL-5. I was unable to create a boot partition reside LVM whing installation? How can I create lvm boot partition? suggest me.

sploot 10-26-2009 09:59 AM

Step 1) Create an initramfs that has the utilities to scan, activate, mount LVM partitions.
Step 2) Create LVM partitions
Step 3) Build kernel
Step 4) Reboot.

:)

Or do you need more specific direction?

cardy 10-26-2009 10:15 AM

I believe that you can't.

The /boot partition holds the kernel files from which you boot. Until the Kernel has been booted then the computer will not understand lvm's. Thus you need a small ext3 (possibly others etx2 etc...) file system to boot the kernel from, once the kernel is running then the tools on the inird can be used to locate and mount file systems stored in a logical volume.

The reason is because I believe grub does not know how to read a logical volume. And thus is unable to boot the kernel from a logical volume.

sploot 10-26-2009 11:58 AM

Quote:

Originally Posted by cardy (Post 3732876)
I believe that you can't.

The /boot partition holds the kernel files from which you boot. Until the Kernel has been booted then the computer will not understand lvm's. Thus you need a small ext3 (possibly others etx2 etc...) file system to boot the kernel from, once the kernel is running then the tools on the inird can be used to locate and mount file systems stored in a logical volume.

The reason is because I believe grub does not know how to read a logical volume. And thus is unable to boot the kernel from a logical volume.

I misread your post. I thought you were talking about a root partition, not the boot partition. In fact cardy is correct here. Please disregard my prior post.

However, if you wanted to boot from USB, then you could have your entire disk setup to be LVM.

TB0ne 10-26-2009 01:15 PM

Quote:

Originally Posted by ram_rajavarapu (Post 3732725)
Hai LQ
I am using RHEL-5. I was unable to create a boot partition reside LVM whing installation? How can I create lvm boot partition? suggest me.

And I'll "suggest you" contact RedHat Enterprise support, since you're paying for it with your RHEL subscription, right? Otherwise, you'd be better off using the community-supported CentOS....

vickey_n 11-01-2009 02:36 AM

RHCE Linux lvm partitions
 
Create lvm partition and resize them

Run fdisk /dev/sda to invoke fdisk. Make sure your hard disk status via fdisk -l command before it. If you see /dev/hda in the output of fdisk -l command run fdisk /dev/hda instead of fdisk /dev/sda


Now run these command in given sequence

n
press enter
+100M

n
press enter
+100M

n
press enter
+100M

after creating partition define their file type and save via w command. lvm partitions are denoted as 8e. run these command exactly ( caution:- change only the partition you create )

t
7
8e

t
8
8e

t
9
8e

w

Now tell kernel about this change run partprobe command


i found a step by step guide on this topic
follow this link

http://completenetworkingnotes.com/c...n/rhce/lvm.htm

jonesr 11-02-2009 01:10 AM

Quote:

Originally Posted by ram_rajavarapu (Post 3732725)
...using RHEL-5 ... How can I create lvm boot partition?

Staying within the limits of "RHEL 5" you cannot. There are probably ways to do it but you would be customizing the system, not just configuring it.

Section 9 of the Deployment Guide says very clearly, "The /boot/ partition cannot reside on an LVM volume because the GRUB boot loader cannot read it."


All times are GMT -5. The time now is 06:16 AM.