Re: mdctl config (was Re: Using mdctl for replacing failed disk)

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

 



On Thursday February 14, babydr@baby-dragons.com wrote:
> 
> 	Hello All , That subject reminded me that I have seen some notes
> 	in the 0.5 TODO file that say DONE & seem to be related to a
> 	config file for mdctl .  The only example of a config file I found
> 	was in 0.4.2 and is two lines long .  And did not show any of the
> 	related items from the 0.5 TODO file of course .  What I have
> 	below is from the config.c file .  Is there further document(s)
> 	or examples that describe the config file in further detail ?
> 		Tia ,  JimL

I guess I should improve the doco and do another release...

> 
> 
> 	1 )  Keywords are :
> 		DEVICE
> 		ARRAY

Yep.
> 
> 	2 )  DEVice has two styles
> 		DEV /dev/sda* /dev/hd*
> 		DEV /dev/sd[b-f]*

these are both the same style.  You just list all devices that should
scanned, and you can use "glob"-style wild cards (aka shell filename
expansion style).
> 
> 	3 )  ARRay Must contain a /dev/md* & May contain these options .
> 		ARR /dev/md0 [uuid=whatever] [name=something]

name=something doesn't work (yet) as superblocks do not contain a
name.
The ways to identify a devices are:
    uuid=whatever
    super-minor=number
    devices=/dev/hda1,/dev/hdb1

The first will assemble from any devices that were found with a RAID
superblock with the given uuid.  UUID can be found with "mdctl --examine"
The second will select superblocks based on minor number.  If you
create an array as /dev/md3, then the minor number in the superblock
will be 3.
The third will use the listed devices.  This is not reliably for scsi
as device names can change, but it is ok for ide.

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