Antwort: Re: [suse-autoinstall] Antwort: Re: [suse-autoinstall] Autoyast and LVM
Hi it is me again.
Andreas Matthieu send me a little pre-script, which would delete LVM data
of a specific vg. I added some code, so that it should now be possible do
delete all vgs.
Here it is.
<scripts>
<pre-scripts config:type="list">
<script>
<filename>/vgremove.sh</filename>
<interpreter>shell</interpreter>
<source>
<![CDATA[
vgs=`ls /dev/vg_*`
insmod lvm-mod
vgscan
for vg in $vgs
do
if [ -d $vg ]
then
vgchange -a y $vg
lvs=`ls $vg`
for lv in $lvs
do
i=`basename $lv`
if [ $lv != "group" ]
then
lvremove -f $vg/$lv
fi
done
vgchange -a n $vg
vgremove $vg
done
]]>
</source>
</script>
</pre-scripts>
</scripts>
Mit freundlichen Grüßen
Tobias Mucke
--------------------------------------------------------------------------------------------------
MAN Nutzfahrzeuge AG
Informationssysteme Organisation (I)
Dachauer Straße 667
D-80995 München
Tel.: +49 (0) 89 1580 5269
Mail-Adresse: Tobias_Mucke@mn.man.de
Internet-Adresse: http://www.man-trucks.com
--------------------------------------------------------------------------------------------------
Stefan Weigel
From the documentation (http://www.suse.de/~nashif/autoinstall/8.1/html/c326.html#AEN690):
Pre-Install Scripts Executed before YaST2 does any real change of the system (Before partitioning ~~~~~ and package installation) So, make such a script and do a: vgscan vgchange -a y lvremove /dev/myvg/mvlv lv remove /dev/myvg/mylv2 [..] vgchange -a n vgremove myvg If you have different systems with different vg's/lv's, then you could write a script which does these steps automaticly (get the lv/vg from the output from vgscan & lvscan). Best regards Stefan Am Donnerstag, 12. Juni 2003 08:47 schrieb Andreas Rother:
Hi,
we have the same problem here with SLES8. Our Workaround is to have an additional autoyast-config without LVM, so we wipe out any lvm information on the disks, before we install the server.
Of course it would be nicer, if this bug would be solved ;-)
Kind regards Andreas Rother UNIX-Systemadministration
-- __________________________________________ stefan weigel administration global linxs gmbh knowledge interaction romanstrasse 16 80639 munich - germany www.global-linxs.com tel.: +49(0)89. 189 336- 61 fax.: +49(0)89. 189 336- 99 email: sw@global-linxs.com __________________________________________ -- To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com Diese Mitteilung sowie eventuelle Anhänge sind vertraulich und können privilegiert oder auf andere Weise gegen Weitergabe geschützt sein. Sollten Sie nicht der beabsichtigte Empfänger sein, bitte rufen oder mailen Sie den Absender an und löschen Sie diese Mitteilung sowie eventuelle Anhänge aus Ihrem System. Sind Sie nicht der beabsichtigte Empfänger, dürfen Sie diese Mitteilung bzw. die Anhänge weder kopieren noch an andere Personen weitergeben.
participants (1)
-
Tobias_Mucke@mn.man.de