Re: Cannot auto assemble a raid1 array on boot

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

 



Hi,

The mdadm.conf in the initrd image contains the correct devices. I.e.
the contents of mdadm.conf in initrd are the output of

mdadm --detail --scan

ARRAY /dev/md0 metadata=1.2 name=mercury:0
UUID=60ea870e:029dcf99:eaae356e:f1c12085
ARRAY /dev/md1 metadata=1.2 name=mercury:1
UUID=d89a52ed:0247f2e8:5edf5d09:21e7fa48

However, the problem remains. That is when booting, the system dumps
into initramfs shell with the raid array in an inactive state. I have
to manually stop the array and then reassemble.

mdadm --manage --stop /dev/md1
mdadm --assemble /dev/md1 /dev/sde1 /dev/md0


At the point, I am able to continue booting and everything is fine after.

Here are the contents of /proc/mdstat from the initrd shell before
reassembling the array.

md1 : inactive sde1[2](S)
      976639672 blocks super 1.2

md0 : active linear sdb1[0] sdc1[1]
      976770537 blocks super 1.2 0k rounding

unused devices: <none>

It just seems to me that it is not possible to mix md devices and sata
devices for new arrays.

Regards,

Jivko

On Wed, Oct 17, 2012 at 9:14 PM, Adam Goryachev
<mailinglists@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> On 18/10/12 13:35, Jivko Sabev wrote:
>> Greetings,
>>
>> I have a RAID1 array setup of the following
>>
>> /dev/md0 [linear raid array consisting of two 500GB SATA drives]
>> /dev/md1  [RAID1 array consisting of /dev/md0 and one 1TB SATA drive]
>>
>> here is my /proc/mdstat
>>
>> --------
>>
>> Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
>> [raid4] [raid10]
>> md1 : active raid1 md0[0] sde1[2]
>>       976639296 blocks super 1.2 [2/2] [UU]
>>
>> md0 : active linear sdb1[0] sdc1[1]
>>       976770537 blocks super 1.2 0k rounding
>>
>> unused devices: <none>
>>
>>
>> --------
>>
>> However, on every reboot, the md1 array is in degraded mode and I get
>> dumped to a intramfs shell. I can then assemble the said array - i.e.
>> mdadm --assemble /dev/md1 /dev/md0 /dev/sde1 and everything is fine.
>> Is it possible to have such an array auto assembled and how?
>>
>
> Maybe you need to update the mdadm.conf within the initrd image ?
>
> Regards,
> Adam
>
> --
> Adam Goryachev
> Website Managers
> www.websitemanagers.com.au
>
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
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