[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#336514: yaird: falls down when new scsi/sata disks are added



On Mon, Oct 31, 2005 at 12:37:49AM +0100, Jonas Smedegaard wrote:
> Daniel Jacobowitz <dan@debian.org> wrote:
> 
> > This system has three SATA drives in it.  sda and sdc have a RAID-1
> > array on them, with LVM on top of that, holding my root partition.
> > sdb has a Windows installation.
> > 
> > The Windows installation is new.  So is the drive; I plugged it in
> > yesterday.  Previously the RAID array was on sda and sdc.
>                                                        ^^^
> 
> I suspect you meant sdb here.

Er, right.

> In your case it would make sense to only have the image tied to the
> UUID, but in other cases perhaps it would make sense to ignore UUID and
> instead only use device names.

Even SCSI ID would be an improvement!  This is exposed via sysfs,
though not wonderfully.  Use the device path followed by block/.  But
that has plenty of failure modes too.

> What I believe will work (I haven't tried myself) is to
> edit /etc/yaird/Templates.cfg and at TEMPLATE mdadm remove the third
> line of the script (remember to also remove the trailing "\" in the
> line above).

The device nodes wouldn't be right.  The original failure was trying to
create /dev/sdb2, when there no longer was such a device (it only had
one partition).

-- 
Daniel Jacobowitz
CodeSourcery, LLC



Reply to: