Re: mdctl --assemble --scan , Not funtioning as expected .

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

 



On Sunday March 17, babydr@baby-dragons.com wrote:
> 
> 	Hello All ,  If I do a ,
> 	mdctl --assemble /dev/md0 /dev/sda /dev/sdb
> 	all is well .
> 
> 	But if I do a ,
> 	mdctl --assemble --scan
> 	I get ,
> 	mdadm: no devices found for /dev/md0
> 
> 	I get the same thing if I add /dev/md0 right after the word
> 	'assemble' .
> 
> 	I am also not getting the raid1 to be recognised at boot time and
> 	-really- need this to happen as /dev/md0 contains the only devices
> 	in the system .  I have the funny feeling that this difficulty is
> 	directly related to the first .  Tia ,  JimL
> 
> # cat /etc/mdadm.conf
> ARRAY /dev/md0 level=raid1 disks=2 UUID=76b11f6d:a4bfe1b0:1323e977:94d33783
>    devices=/dev/sda,/dev/sdb

 From mdadm.conf.5

The keywords are:
.TP
.B DEVICE
A
.B device
line lists the devices (whole devices or partitions) that might contain
a component of an MD array.  When looking for the components of an
array,
.B mdadm
will scan these devices and no others.
                            ^^^^^^^^^

Also,
.TP
.B devices=
The value is a comma separated list of device names. Precisely these
devices will be used to assemble the array.  Note that the devices
listed there must also be listed on a DEVICE line.


You need to add

DEVICE /dev/sd[ab]

or similar to mdadm.conf

NeilBrown



> 
>        +------------------------------------------------------------------+
>        | James   W.   Laferriere | System    Techniques | Give me VMS     |
>        | Network        Engineer |     P.O. Box 854     |  Give me Linux  |
>        | babydr@baby-dragons.com | Coudersport PA 16915 |   only  on  AXP |
>        +------------------------------------------------------------------+
> 
> -
> 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
-
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