LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   centos - disable LVM via kickstart (https://www.linuxquestions.org/questions/linux-server-73/centos-disable-lvm-via-kickstart-850118/)

draeath 12-14-2010 06:09 AM

centos - disable LVM via kickstart
 
Does anyone know of a way to tell the CentOS installer -not- to use LVM in a kickstart?

We've been using a system that lets us define which particular drives to use during the installation as part of our deployment system. This does not work now that LVM is the 'default' in CentOS.

I've looked over the options and I see how to FORCE particular LVM configurations, but I see no way to just turn it off.

Does anyone know how to do this?

acid_kewpie 12-14-2010 06:45 AM

Sure, you just don't use them.
Code:

clearpart --all --initlabel
part /boot --fstype ext3 --size=100
part /    --fstype ext3 --size=1024 --grow

etc.

draeath 12-14-2010 07:50 AM

I'll have to clarify with the techs that saw the problem then, as our ks is being put together like this (for example):

clearpart --drives=sda --initlabel
part swap --recommended --ondisk=sda --asprimary
part / --size=5120 --ondisk=sda --asprimary
part /usr --size=20480 --ondisk=sda
part /var --size=51200 --ondisk=sda
part /tmp --size=1024 --ondisk=sda
part /home --size=1 --grow --ondisk=sda

I don't see LVM in that either, so...

Thanks for looking at this acid_kewpie!

chickenjoy 12-14-2010 08:12 AM

Haven't had much exposure to ks files but wouldn't obtaining the KS file from a test installation with the desired partitions be a great place to start?

draeath 12-14-2010 08:14 AM

Quote:

Originally Posted by chickenjoy (Post 4191002)
Haven't had much exposure to ks files but wouldn't obtaining the KS file from a test installation with the desired partitions be a great place to start?

We're using Cobbler actually. The ks is actually generated by a URL that is edited on the PXE line to suite the installation instance (IP, partitions, etc). I think I've gotten some bad/weird info actually, since the KS generated when I looked was correct and did specify non-LVM partitions.

acid_kewpie 12-14-2010 08:43 AM

well I'm literally actaully right now writing a centos 5.5 kickstart on cobbler, that was actually taken from the script, no sign of LVM anywhere. Are you referring to CentOS 6? Not even in beta yet is it?

draeath 12-14-2010 09:04 AM

Quote:

Originally Posted by acid_kewpie (Post 4191033)
well I'm literally actaully right now writing a centos 5.5 kickstart on cobbler, that was actually taken from the script, no sign of LVM anywhere. Are you referring to CentOS 6? Not even in beta yet is it?

Well, like I said I don't think I have a valid issue. If I get something usable I'll post back and we can go from there :)

(yea, it would have been 5.5)


All times are GMT -5. The time now is 10:37 AM.