LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 10-26-2009, 05:58 AM   #1
ram_rajavarapu
Member
 
Registered: May 2008
Posts: 41

Rep: Reputation: 15
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.
 
Old 10-26-2009, 08:59 AM   #2
sploot
Member
 
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121

Rep: Reputation: 27
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?
 
Old 10-26-2009, 09:15 AM   #3
cardy
Member
 
Registered: Jan 2005
Location: Shropshire, England, UK
Distribution: RedHat, Fedora, CentOS..........
Posts: 121

Rep: Reputation: 19
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.
 
Old 10-26-2009, 10:58 AM   #4
sploot
Member
 
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121

Rep: Reputation: 27
Quote:
Originally Posted by cardy View Post
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.
 
Old 10-26-2009, 12:15 PM   #5
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,223

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
Originally Posted by ram_rajavarapu View Post
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....
 
Old 11-01-2009, 01:36 AM   #6
vickey_n
LQ Newbie
 
Registered: Nov 2009
Posts: 21
Blog Entries: 1

Rep: Reputation: 3
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
 
Old 11-02-2009, 12:10 AM   #7
jonesr
Member
 
Registered: Feb 2008
Location: Sacramento
Distribution: RHEL AS, mostly
Posts: 44

Rep: Reputation: 18
Quote:
Originally Posted by ram_rajavarapu View Post
...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."
 
  


Reply

Tags
rhce


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cannot boot-need help recovering Fedora partition LVM rietsit Fedora 11 06-11-2009 04:44 PM
Create a partition on existing lvm cghcgh Linux - Enterprise 12 04-14-2008 01:34 AM
How to create partition to dual boot kcb1960 Linux - General 4 04-22-2007 09:07 PM
boot fails when booting from lvm partition jlatl69 Linux - Newbie 6 03-07-2006 06:23 AM
can i put /boot in lvm partition benseghir Linux - Enterprise 1 06-15-2005 08:29 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration