LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   LVM Options in Kickstart in CentOS 6.2 (https://www.linuxquestions.org/questions/linux-server-73/lvm-options-in-kickstart-in-centos-6-2-a-925811/)

vikas027 01-26-2012 11:06 AM

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.

acid_kewpie 01-26-2012 11:42 AM

why not start off by setting the pv to be a reasonable size in the first place?? --size=2000 or something.

vikas027 01-26-2012 12:20 PM

Quote:

Originally Posted by acid_kewpie (Post 4585063)
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.

vikas027 01-27-2012 04:33 AM

Many thanks Acid, --size=5000 worked well for me.

acid_kewpie 01-27-2012 04:36 AM

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


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