Re: [suse-autoinstall] Parttioning 't'error
Hi Steven, extract from the post : "Re: [suse-autoinstall] Problems with <use> and <partition_type>" 03/10/2003. -------------------------------------- I had a problem that was somehow equivalent.. I wanted to use a volume group (vg00), but if a vg00 was already on my disks the installation crashed... (with all the config of <use> I could find) I solved the problem using a pre script the remove the vg. And now it works very well. --------------------------------------- here is the pre script I use: <pre-scripts config:type="list"> <script> <filename>pre.sh</filename> <interpreter>shell</interpreter> <source> <![CDATA[#! /bin/sh # this script remove the vg00 (if there is one!) # thus it allow yast to perform the partitioning. vg=/dev/vg00 insmod lvm-mod vgscan vgchange -a y $vg lvs=`ls -A $vg | grep -v "group"` for lv in $lvs do lvremove -f $vg/$lv done vgchange -a n $vg vgremove $vg ]]> </source> </script> </pre-scripts> You just have to adapt this chagning vg00 to rootvg. Best regards, Damien. "Heirman, Steven" <steven.heirman@compu-mark.com> compu-mark.com 15/10/2003 13:02 To: "'suse-autoinstall@suse.com'" <suse-autoinstall@suse.com> cc: Subject: [suse-autoinstall] Parttioning 't'error Hi , I have a odd problems when auto installing sles8 . The partitioning portion is not working but i can't figure out why. When parcing the xml file the system tells me that i already have a LV with the name rootvg ? sda1 on / sda2 on /boot sda3 extended sda4 linux LVM sda5 and 6 2 * swap created in extended sda3 Below is a part of my xml file that i use <partitioning config:type="list"> <drive> <device>/dev/sda</device> <partitions config:type="list"> <partition> <filesystem config:type="symbol">reiser</filesystem> <mount>/</mount> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">1</partition_nr> <region config:type="list"> <region_entry config:type="integer">0</region_entry> <region_entry config:type="integer">131</region_entry> </region> <size>1069219841</size> </partition> <partition> <filesystem config:type="symbol">reiser</filesystem> <mount>/boot</mount> <partition_id config:type="integer">131</partition_id> <partition_nr config:type="integer">2</partition_nr> <region config:type="list"> <region_entry config:type="integer">131</region_entry> <region_entry config:type="integer">17</region_entry> </region> <size>131596289</size> </partition> <partition> <partition_id config:type="integer">15</partition_id> <partition_nr config:type="integer">3</partition_nr> <region config:type="list"> <region_entry config:type="integer">148</region_entry> <region_entry config:type="integer">523</region_entry> </region> <size>4293328897</size> </partition> <partition> <mount>swap</mount> <partition_id config:type="integer">130</partition_id> <partition_nr config:type="integer">5</partition_nr> <region config:type="list"> <region_entry config:type="integer">148</region_entry> <region_entry config:type="integer">262</region_entry> </region> <size>2146664449</size> </partition> <partition> <mount>swap</mount> <partition_id config:type="integer">130</partition_id> <partition_nr config:type="integer">6</partition_nr> <region config:type="list"> <region_entry config:type="integer">410</region_entry> <region_entry config:type="integer">261</region_entry> </region> <size>2138439681</size> </partition> <partition> <partition_id config:type="integer">142</partition_id> <partition_nr config:type="integer">4</partition_nr> <region config:type="list"> <region_entry config:type="integer">671</region_entry> <region_entry config:type="integer">3749</region_entry> </region> <size>30826430465</size> <lvm_group>rootvg</lvm_group> </partition> </partitions> </drive> </partitioning> <lvm config:type="list"> <lvm_group> <lvm_name>rootvg</lvm_name> <pesize>128M</pesize> <logical_volumes config:type="list"> <lv> <lv_name>homelv</lv_name> <lv_size>2gb</lv_size> <lv_fs>reiser</lv_fs> <lv_mount>/home</lv_mount> </lv> <lv> <lv_name>optlv</lv_name> <lv_size>2gb</lv_size> <lv_fs>reiser</lv_fs> <lv_mount>/opt</lv_mount> </lv> <lv> <lv_name>tmplv</lv_name> <lv_size>512mb</lv_size> <lv_fs>reiser</lv_fs> <lv_mount>/tmp</lv_mount> </lv> <lv> <lv_name>usrlv</lv_name> <lv_size>4gb</lv_size> <lv_fs>reiser</lv_fs> <lv_mount>/usr</lv_mount> </lv> <lv> <lv_name>varlv</lv_name> <lv_size>1gb</lv_size> <lv_fs>reiser</lv_fs> <lv_mount>/var</lv_mount> </lv> </logical_volumes> </lvm_group> </lvm> Another question is i only can use this on a clean drive. When there is already something on the disk the partioning will also fail. Is there an option to clean the partition table whitin this xml file ? Regards Steven , Steven Heirman - System Engineer/Unix ---------------------------------------------------------------- St Pietersvliet 7 Tel : +3232207365 -- To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com
participants (1)
-
damien.selles@eu.effem.com