Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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....
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
...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."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.