delete lvm groups in kickstart

Farkas Levente lfarkas at bppiac.hu
Wed Jan 16 13:44:16 UTC 2008


Gerrard Geldenhuis wrote:
> Hi
> I am assuming you don't want to use 
> clearpart --all?

i use clearpart, BUT only on the system disk, ie:
clearpart --initlabel --all --drives=sda
while there are other data disk in the system and lvm groups are system
wide not disk specific. there are some system where i would like to keep
data on the data disks (those do not cointans volgroups) so i can't
clearpart those disk. but if there is not data on them there may can be
volgroup on them. but if i'd be able to
lvremove VolGroup00
in kickstart then it'd be good for me.

> Regards
> 
>> -----Original Message-----
>> From: kickstart-list-bounces at redhat.com [mailto:kickstart-list-
>> bounces at redhat.com] On Behalf Of Farkas Levente
>> Sent: 16 January 2008 13:29
>> To: Discussion list about Kickstart
>> Subject: delete lvm groups in kickstart
>>
>> hi,
>> in kickstart one can use clearpart to remove old partition, but there
> is
>> no command to remove old lvm volgroup or logvols. and if there are
>> volgroup or logvols already on the system where you want to install
>> through kickstart the install process failed with a python stack trace
>> since eg. VolGroup00 already exist and can't be created.
>> currently there is no other way to delete only in %pre scripts but
> imho
>> it'd be an essential feature.
>> yours.
> 
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list


-- 
  Levente                               "Si vis pacem para bellum!"




More information about the Kickstart-list mailing list