Re: [gentoo-user] Re: [OT] Moving system from single-disk to RAID-1 configuration

2005-10-25 Thread Mike Williams
On Tuesday 25 October 2005 06:01, Francesco Talamona wrote:
  DEVICE partitions
  ARRAY /dev/md0 uuid=8ef83d67:79b230ba:6cc967c3:208b9224

 AFAIK fd partition type is mandatory. Anyway is good to know that I can
 avoid explicit node names in config files.

I'm not sure it's mandatory, but there really is no reason not to do so.

  I have a SATA card that doesn't have in kernel drivers, so I have to
  load a module, which naturally means the kernel can't autostart all
  my arrays, but mdadm can without me having to tell it any device
  nodes.

 How can you prevent it to start in degraded mode?

I don't have the raid drivers compiled into the kernel :)
I have 3 arrays, 2 of which have more devices on the SATA card than the array 
can loose. mdadm would warn me by email if it detected any array in degraded 
mode anyway.

I'm not sure what problem you had that meant you could only create a degraded 
array. But if you boot from a gentoo livecd you can create a mirror from an 
existing disk *without* losing any data, or needing to backup. If you specify 
the disk/partition with the data on it you want to keep *first* to mdadm, 
that data will get replicated to the others.

-- 
Mike Williams
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: [OT] Moving system from single-disk to RAID-1 configuration

2005-10-25 Thread Dan Johansson
On Tuesday 25 October 2005 12.27, Mike Williams wrote:
 On Tuesday 25 October 2005 06:01, Francesco Talamona wrote:
   DEVICE partitions
   ARRAY /dev/md0 uuid=8ef83d67:79b230ba:6cc967c3:208b9224
 
  AFAIK fd partition type is mandatory. Anyway is good to know that I can
  avoid explicit node names in config files.

 I'm not sure it's mandatory, but there really is no reason not to do so.

   I have a SATA card that doesn't have in kernel drivers, so I have to
   load a module, which naturally means the kernel can't autostart all
   my arrays, but mdadm can without me having to tell it any device
   nodes.
 
  How can you prevent it to start in degraded mode?

 I don't have the raid drivers compiled into the kernel :)
 I have 3 arrays, 2 of which have more devices on the SATA card than the
 array can loose. mdadm would warn me by email if it detected any array in
 degraded mode anyway.

 I'm not sure what problem you had that meant you could only create a
 degraded array. But if you boot from a gentoo livecd you can create a
 mirror from an existing disk *without* losing any data, or needing to
 backup. If you specify the disk/partition with the data on it you want to
 keep *first* to mdadm, that data will get replicated to the others.

Thanks for your input. Just one Question about setting the partition type to 
'FD' - should I do this for all Partitions or ?
Today I have the following Partitions defined
Partition   TypeFS
/dev/hde1   83  /boot
/dev/hde2   82  (SWAP)
/dev/hde3   83  /
/dev/hde4   8E  (LVM)

Regards,
-- 
Dan Johansson, http://www.dmj.nu
***
This message is printed on 100% recycled electrons!
***


pgpKwRCgJe9UP.pgp
Description: PGP signature


Re: [gentoo-user] Re: [OT] Moving system from single-disk to RAID-1 configuration

2005-10-25 Thread Mike Williams
On Tuesday 25 October 2005 18:02, Dan Johansson wrote:
 Thanks for your input. Just one Question about setting the partition type
 to 'FD' - should I do this for all Partitions or ?

Which ever partitions you are going to create raid arrays from, but I don't 
imagine it would do any real harm to those that aren't going to be part of an 
array.

-- 
Mike Williams
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: [OT] Moving system from single-disk to RAID-1 configuration

2005-10-24 Thread Mike Williams
On Monday 24 October 2005 19:28, Francesco Talamona wrote:
 The most difficult thing was making disc naming sticky, I have a ASUS
 A8V with a Via and a Promise controller, and the disk naming was so
 sloppy that if sda failed all other disks were renamed to accommodate
 in the free namespace, not at all reliable!

I don't read french, so I don't know what that URL said, but device naming is 
not an issue.
All you need to do is change the partition type to fd Linux raid autodetect, 
then either:
1) Compile all the raid/ide/scsi drivers you need into the kernel, and all 
your arrays will be automagically created on startup.
2) Add an entry like at the bottom of page 1 of the linuxdevcenter article, 
except all you actually need is this:

DEVICE partitions
ARRAY /dev/md0 uuid=8ef83d67:79b230ba:6cc967c3:208b9224

I have a SATA card that doesn't have in kernel drivers, so I have to load a 
module, which naturally means the kernel can't autostart all my arrays, but 
mdadm can without me having to tell it any device nodes.

-- 
Mike Williams
-- 
gentoo-user@gentoo.org mailing list