Mailinglist Archive: opensuse-autoinstall (140 mails)

< Previous Next >
RE: [suse-autoinstall] Does anyone have a working xml setup using lvm and raid-1?
  • From: Lars Stavholm <stava@xxxxxxxxxxx>
  • Date: Mon, 30 Jun 2003 17:45:53 +0000 (UTC)
  • Message-id: <Pine.LNX.4.53.0306301943160.6037@xxxxxxxxxxxxxxxxx>
On Mon, 30 Jun 2003, Voss Stefan wrote:

> Hi,
>
> I think someone on this list had already pointed out why my
> suggestion (dd ... of=/dev/hda ...) does not work: The lvm
> and raid data are not stored in the mbr of the disks but at
> the beginning of partitions /dev/hda2 and /dev/hdc2.
>
> You could try
>
> dd if=/dev/zero of=/dev/hda2 bs=512 count=2
> dd if=/dev/zero of=/dev/hdc2 bs=512 count=2
>
> or
>
> raidstop /dev/md0
>
> in a pre-script to get rid of existing raid data.

I've tried the following in a pre-script (with no success):

mdadm -S /dev/md0
mdadm --zero-superblock /dev/hda2
mdadm --zero-superblock /dev/hdc2
vgchange -a n vg00
vgexport vg00

R/Lars

>
> Regards,
> Stefan Voss
>
>
> -----Original Message-----
> From: Lars Stavholm
> To: Voss Stefan
> Cc: suse-autoinstall@xxxxxxxx
> Sent: 6/29/2003 1:11 PM
> Subject: Re: [suse-autoinstall] Does anyone have a working xml setup using
> lvm and raid-1?
>
> 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@xxxxxxxx
> > 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@xxxxxxxxxxx Telcotec AB
> phone: +46 (0)31 7020640 Lerumsv. 29
> mobile: +46 (0)705 606498 424 90 Olofstorp
> fax: +46 (0)31 7020617 Sweden
>
>

< Previous Next >
References