Hello,
I have the same problem mentioned some times since 2002 in the list,
unfortunately I did not found an answer which works for me.
I am installing SLES8 through autoyast with software raid and LVM on it.
Software Raid contains two partitions (sda3 and sdb3) as I can not use
whole disks. The machine is a pSeries p690 LPAR so a PrepBoot partition is
required on each disk.
The installation worked fine for the first time, repeating the installation
on the same disks produced an error: can not create md0 device and can not
create system volume group- volume group already exists.
I am using <initialize config:type="boolean">true</initialize> in each
drive section
And true in lvmgroup.
I guess the problem is related to the persistent superblock used by
software raid and VGDA on the disk used by LVM. I also tried using a
prescript:
dd if=/dev/zero of=/dev/sda bs=1MB count=3
dd if=/dev/zero of=/dev/sdb bs=1MB count=3
# this does not works:
blockdev --rereadpt /dev/sda
blockdev --rereadpt /dev/sdb
For network boot on pSeries I am using SUSE SLES8 SP3 Kernel with the
builtin commandline: ./mkzimage_cmdline -a -1 -c -s "insmod=e100
insmod=e1000 hostip=9.156.175.22 netmask=255.255.255.0
install=nfs://9.156.175.8/software/Linux/PPC/SLES8/unpacked/CD1
autoyast=tftp://9.156.175.8/tftpboot/autoyast_tb.xml" install.tb
Unfortunately I can overwrite the begining of the disk, but rereading the
partition table fails (disc is in use message in the log). Is there any
trick how to reread the partition table or to get rid of the persistent
Superblock and VGDA before the installation starts? Now, I need to start
installation, read the error messages about raid and lvm, restart
installation and it works fine running second time. It also works fine on a
new LPAR.
Any help is welcome..
Mit freundlichen Gruessen / Best regards,
Tomas Baublys
IBM Certified Advanced Technical Expert (CATE) pSeries and AIX
pSeries Technical Sales Support
JS20 Technical Focus Group
Systems Sales, Central Region
here is my autoyast control file:
root@csm:/tftpboot> cat autoyast_tb.xml
<?xml version="1.0"?>
<!DOCTYPE profile SYSTEM
"/usr/share/YaST2/include/autoinstall/profile.dtd">
<profile xmlns="http://www.suse.com/1.0/yast2ns"
xmlns:config="http://www.suse.com/1.0/configns">
<configure>
<networking>
<dns>
false
false
<domain>munich.de.ibm.com</domain>
<hostname>p690-lpar2</hostname>
<nameservers config:type="list">
</nameservers>
<searchlist config:type="list">
<search>ibm.com</search>
</searchlist>
</dns>
<interfaces config:type="list">
<interface>
<bootproto>static</bootproto>
<broadcast></broadcast>
<device>eth0</device>
<ipaddr>9.156.175.22</ipaddr>
<module>e100</module>
<netmask>255.255.255.0</netmask>
<network>9.156.175.0</network>
<options></options>
<startmode>onboot</startmode>
<wireless>no</wireless>
</interface>
</interfaces>
<routing>
false
<routes config:type="list">
<route>
<destination>default</destination>
<device>-</device>
<gateway>9.156.175.1</gateway>
<netmask>-</netmask>
</route>
</routes>
</routing>
</networking>
<scripts>
<chroot-scripts config:type="list"/>
<post-scripts config:type="list">
<script>
<filename>postinstalltasks.sh</filename>
<interpreter>shell</interpreter>
<source>
<![CDATA[
/sbin/lilo
dd if=/dev/sda1 of=/dev/sdb1
mkdir /mnt/sp3
mount 9.156.175.8:/software/Linux/PPC/SLES8/unpacked/Fixpack3-CD1 /mnt/sp3
rpm -Fvh
/mnt/sp3/ppc/update/SuSE-SLES/8/rpm/ppc/kernel-ppc64-2.4.21-111.ppc.rpm
/usr/bin/installation_sources -e -a
nfs://9.156.175.8:/software/Linux/PPC/SLES8/unpacked/Fixpack3-CD1
]]>
</source>
</script>
</post-scripts>
<pre-scripts config:type="list">
<script>
<filename>eliminator.sh</filename>
<interpreter>shell</interpreter>
<source>
<![CDATA[
vgchange -an
vgremove system
pvchange -ax
mount -t nfs 9.156.175.8:/software/Linux/PPC /mnt
/mnt/mdadm --zero-superblock /dev/sda
/mnt/mdadm --zero-superblock /dev/sdb
/mnt/mdadm -S /dev/md0
umount /mnt
vgscan
vgchange -an
vgreduce system -a -v
vgchange -a y system
lvremove -f /dev/system/usrlv
lvremove -f /dev/system/swaplv
lvremove -f /dev/system/usrlv
lvremove -f /dev/system/homelv
lvremove -f /dev/system/*
vgchange -a n system
vgremove system
dd if=/dev/zero of=/dev/sda bs=1MB count=3
dd if=/dev/zero of=/dev/sdb bs=1MB count=3
# klappt erst nach reboot
blockdev --rereadpt /dev/sda
blockdev --rereadpt /dev/sdb
]]>
</source>
</script>
</pre-scripts>
</scripts>
<files config:type="list">
/etc/lilo.conf
<![CDATA[
# lilo von autoyast
default=linux
timeout=100
boot=/dev/sda1
activate
image = /boot/vmlinuz
label = linux
root = /dev/sda2
# initrd = /boot/initrd
append = ""
]]>
/root2/etc/lilo.conf
<![CDATA[
# sdb lilo von autoyast
default=linux
timeout=100
boot=/dev/sdb1
activate
image = /boot/vmlinuz
label = linux
root = /dev/sdb2
# initrd = /boot/initrd
append = ""
]]>
/etc/ntp.conf
<![CDATA[
# ntp config von autoyast
server 192.53.103.103
server 192.53.103.104
]]>
</files>
<users config:type="list">
<user>
<encrypted config:type="boolean">true</encrypted>
XGULujbJ2KVmI
<username>root</username>
</user>
</users>
</configure>
<install>
<bootloader>
<location>ppc_chrp</location>
/dev/sda1
</bootloader>
<general>
<clock>
<hwclock>localtime</hwclock>
<timezone>Europe/Berlin</timezone>
</clock>
<keyboard>
<keymap>german</keymap>
</keyboard>
<language>de_DE</language>
<mode>
<confirm config:type="boolean">false</confirm>
<forceboot config:type="boolean">false</forceboot>
false
<reboot config:type="boolean">false</reboot>
</mode>
<mouse>
<id>none</id>
</mouse>
</general>
<partitioning config:type="list">
<drive>
<device>/dev/sda</device>
<use>all</use>
<initialize config:type="boolean">true</initialize>
<partitions config:type="list">
<partition>
1
primary
false
<format config:type="boolean">false</format>
<mount></mount>
65
<size>7.8MB</size>
</partition>
<partition>
2
primary
false
<filesystem config:type="symbol">ext3</filesystem>
<format config:type="boolean">true</format>
<fstopt>noatime,data=ordered</fstopt>
<label>ROOT</label>
<mount>/</mount>
<mountby config:type="symbol">device</mountby>
131
<size>2GB</size>
</partition>
<partition>
false
<format config:type="boolean">false</format>
/dev/md0
253
3
<size>max</size>
</partition>
</partitions>
</drive>
<drive>
<device>/dev/sdb</device>
<use>all</use>
<initialize config:type="boolean">true</initialize>
<partitions config:type="list">
<partition>
1
primary
false
<format config:type="boolean">false</format>
<mount></mount>
65
<size>7.8MB</size>
</partition>
<partition>
2
primary
false
<filesystem config:type="symbol">ext3</filesystem>
<format config:type="boolean">true</format>
<fstopt>noatime,data=ordered</fstopt>
<size>2GB</size>
<label>ROOT2</label>
<mount>/root2</mount>
</partition>
<partition>
false
<format config:type="boolean">false</format>
/dev/md0
253
3
<size>max</size>
</partition>
</partitions>
</drive>
</partitioning>
<raid config:type="list">
/dev/md0
left-asymmetric
true
raid1
system
<mount />
<format config:type="boolean">false</format>
</raid>
<lvm config:type="list">
true
system
<pesize>16M</pesize>
<lv>
usrlv
1GB
ext3
/usr
</lv>
<lv>
swaplv
512MB
</lv>
<lv>
varlv
512MB
ext3
/var
</lv>
<lv>
varloglv
512MB
ext3
/var/log
</lv>
<lv>
optlv
512MB
ext3
/opt
</lv>
<lv>
homelv
512MB
ext3
/home
</lv>
</lvm>
<software>
<base>Minimal</base>
<packages config:type="list">
<package>tripwire</package>
<package>rsync</package>
<package>xntp</package>
<package>raidtools</package>
<package>vim</package>
<package>autoyast2-installation</package>
</packages>
</software>
</install>
</profile>