RE: [suse-autoinstall] Does anyone have a working xml setup using lvm and raid-1?
Hi, we use the standard autoyast2-installation-2.7.18-1 package from SuSE Prof 8.2 for the installations. The xml file was originally created with autoyast2-2.7.19-0 but only the partition information. The raid and lvm info was added manually. Regards, Stefan Voss -----Original Message----- From: Lars Stavholm To: suse-autoinstall@suse.com Sent: 6/25/2003 7:48 PM Subject: RE: [suse-autoinstall] Does anyone have a working xml setup using lvm and raid-1? Might I ask what version of autoyast2 you're using? R/Lars On Wed, 25 Jun 2003, Voss Stefan wrote:
Hi,
yes, the following works for me. We have two discs hda and hdb. On each disc two partitions are created. A small linux partition (50 MB, /dev/hda1 resp. /dev/hdb1) and a big raid partition (/dev/hda2 resp. /dev/hdb2). /dev/hda2 and /dev/hdb2 are both added to the raid1 device /dev/md0. /dev/md0 is then taken as physical volume into volume group systemvg. The logical volumes containing the file systems
(including
/ and swap) are created from this volume group.
The small partitions /dev/hda1 and /dev/hdb2 have the file systems /boot resp. /boot_backup.
[...]
Stefan, many thanks! My inst setup now works with both raid and lvm. However, nothing's perfect, so I have one problem left now and I'm wondering if you might have the answer to this one: I adapted a script published a while back on this list to remove any previous logical volumes. That script is executed as a "pre-script" and works just fine for repeated installations on a system. As I've now added the raid portion, I get the following error message when I try to install on a system that already has a raid setup: "Cannot create the RAID /dev/md0". I have a fieling that the problem is similar to the one with the logical volumes. I also tried a pre-script containing the following two commands (suggested by yourself in an earlier posting) without any success: dd if=/dev/zero of=/dev/hda bs=512 count=2 # primary master dd if=/dev/zero of=/dev/hdc bs=512 count=2 # secondary master If I remove the partitions (using e.g. DOS fdisk) prior to the installation, the subsequent automated installation works just fine. Hints, anyone: how to remove the raid setup in a pre-script? R/Lars S Voss Stefan wrote:
Hi,
we use the standard autoyast2-installation-2.7.18-1 package from SuSE Prof 8.2 for the installations. The xml file was originally created with autoyast2-2.7.19-0 but only the partition information. The raid and lvm info was added manually.
Regards, Stefan Voss
-----Original Message----- From: Lars Stavholm To: suse-autoinstall@suse.com Sent: 6/25/2003 7:48 PM Subject: RE: [suse-autoinstall] Does anyone have a working xml setup using lvm and raid-1?
Might I ask what version of autoyast2 you're using? R/Lars
On Wed, 25 Jun 2003, Voss Stefan wrote:
Hi,
yes, the following works for me. We have two discs hda and hdb. On each disc two partitions are created. A small linux partition (50 MB, /dev/hda1 resp. /dev/hdb1) and a big raid partition (/dev/hda2 resp. /dev/hdb2). /dev/hda2 and /dev/hdb2 are both added to the raid1 device /dev/md0. /dev/md0 is then taken as physical volume into volume group systemvg. The logical volumes containing the file systems
(including
/ and swap) are created from this volume group.
The small partitions /dev/hda1 and /dev/hdb2 have the file systems
/boot
resp. /boot_backup.
[...]
-- Lars.Stavholm@telcotec.se Telcotec AB phone: +46 (0)31 7020640 Lerumsv. 29 mobile: +46 (0)705 606498 424 90 Olofstorp fax: +46 (0)31 7020617 Sweden
participants (2)
-
Lars Stavholm
-
Voss Stefan