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. |
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? |
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. |
Quote:
However, if you wanted to boot from USB, then you could have your entire disk setup to be LVM. |
Quote:
|
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 |
Quote:
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 12:00 AM. |