LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-26-2012, 12:06 PM   #1
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,270

Rep: Reputation: 99
Unhappy LVM Options in Kickstart in CentOS 6.2


Dear All,

I have created a PXE Kickstart setup on CentOS 6.2 64 Bit.

When I install CentOS 6.2 64 Bit without using LVM options (in kickstart file) it works fine but when I use below LVM options, it does not throw any error in installation but after reboot kernel panics finding /lib/modules/2.6.32-220.el6.x86_64/modules.dep which is not created at the time of installation.

Code:
part /boot --fstype ext3 --size=100 --ondisk=sda
part pv.01 --size=1 --grow --ondisk=sda
volgroup rootvg pv.01
logvol / --fstype ext3 --name=lvroot --vgname=rootvg --size=5000
logvol /home --fstype ext3 --name=lvhome --vgname=rootvg --size=100
logvol swap --fstype swap --name=lvswap --vgname=rootvg --size=512
I use the same code with the difference of "--size=0" in the second line for RHEL/CentOS 5.X installation and it works well.

Please suggest what I am missing, proabably it has something to do with "--size" option only.
 
Old 01-26-2012, 12:42 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
why not start off by setting the pv to be a reasonable size in the first place?? --size=2000 or something.
 
Old 01-26-2012, 01:20 PM   #3
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,270

Original Poster
Rep: Reputation: 99
Quote:
Originally Posted by acid_kewpie View Post
why not start off by setting the pv to be a reasonable size in the first place?? --size=2000 or something.
Yes, this was on my mind. I have already tried setting it to 5000, installation is on now. I will update once it completes. Thanks.
 
Old 01-27-2012, 05:33 AM   #4
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Debian, OS X
Posts: 1,270

Original Poster
Rep: Reputation: 99
Many thanks Acid, --size=5000 worked well for me.
 
Old 01-27-2012, 05:36 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
I'd put this one down to "life's too short to care" ;-)
 
  


Reply


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
[SOLVED] LVM on install centos 5.6, mis-allocated - options?? needsleep Linux - Newbie 6 08-23-2011 11:34 PM
centos - disable LVM via kickstart draeath Linux - Server 6 12-14-2010 10:04 AM
can't kickstart CentOs on VirtualBox VM geek.ksa Linux - Virtualization and Cloud 3 08-29-2010 10:35 AM
centos kickstart problem xiutuo Linux - General 10 05-12-2010 02:07 AM
[SOLVED] How to Write Kickstart for Menu Options? your_shadow03 Linux - Newbie 2 01-30-2010 10:50 AM


All times are GMT -5. The time now is 11:55 PM.

Main Menu
Advertisement
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