Re: mdadm --assemble --scan hassles....

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

 



On Thursday October 30, hvisage@envisage.co.za wrote:
> On Thu, Oct 30, 2003 at 12:18:44PM +1100, Neil Brown wrote:
> > 
> > Show me:
> >  -  your current mdadm.conf
> >  - the output of mdadm -Es -c partitions
> >  - the output of mdadm -Ds
> >  - the output of mdadm -Asv
> > 
> > And I'll try to tell you.
> 
> root@hvstress ~ # mdadm -Es -c partitions
..etc...

Thanks.

So you have to raid arrays:
  md0 is raid0 from 2 scsi partitions and has
                   UUID=832ab839:9920da12:97991965:f9af96e2 
  md1 is linear from another scsi partitions and md0, and has
                   UUID=4478ef04:f7b90666:6a122182:c6b44cf4

So you want mdadm to scan all SCSI partitions and md0, and
to assemble md0 first, then md1.  Identifying partitions
by UUID is easiest so:

 DEVICE /dev/sd* /dev/md0
 ARRAY /dev/md0  UUID=832ab839:9920da12:97991965:f9af96e2 
 ARRAY /dev/md1  UUID=4478ef04:f7b90666:6a122182:c6b44cf4

should do it.  Having "level=xxx" and "num-devices=2" doesn't hurt,
but isn't necessary.

> root@hvstress ~ # cat /etc/mdadm.conf 
> DEVICE /dev/md/* /dev/sd[a-z] partitions /dev/md*
> 
> ARRAY /dev/md/0 level=raid0 num-devices=2 UUID=832ab839:9920da12:97991965:f9af96
> e2
>    devices=/dev/scsi/host0/bus0/target1/lun0/part1,/dev/scsi/host0/bus0/target2/
> lun0/part1
> ARRAY /dev/md/1 level=linear num-devices=2 UUID=c2a91233:5ffd5398:eac27773:e1294
> 5dd
>  devices=/dev/md/0,/dev/scsi/host0/bus0/target1/lun0/part2

I suspect the reason that this didn't work was the devices= lines.
The "/dev/scsi/..." doesn't match (as a string) any of the devices
listed in the DEVICE line.  It is fairly rare that you would need to
want "devices=" entries in mdadm.conf

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux