View previous topic :: View next topic |
Author |
Message |
MasterPrenium Tux's lil' helper
Joined: 07 Dec 2006 Posts: 90
|
Posted: Sun Oct 04, 2015 11:18 pm Post subject: mdadm inactive array at boot |
|
|
Hi guys,
I'm having an issue since a long date, which is ennoying me on multiple gentoo systems I setted-up.
My issue is with mdadm.
When booting, most of time (not always), I'm having some arrays that doesn't start, and I can't find where I missed something.
Quote: | # cat /etc/mdadm.conf | tail -n 1
ARRAY /dev/md/5 metadata=1.2 UUID=b2bdfcac:7913c315:a846fef1:0c6d9b6c name=ostest:5 |
Quote: | # cat /proc/mdstat
md5 : inactive sdb5[1](S)
314441728 blocks super 1.2 |
Quote: | # rc-update show | grep mdadm
mdadm | boot |
Of course if I manually do
mdadm --stop /dev/md5 && mdadm --assemble /dev/md5
It's working, but I would like to have it auto started...
Quote: | # mdadm --detail /dev/md5
/dev/md5:
Version : 1.2
Creation Time : Thu Oct 1 14:37:03 2015
Raid Level : raid1
Array Size : 314441728 (299.88 GiB 321.99 GB)
Used Dev Size : 314441728 (299.88 GiB 321.99 GB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Mon Oct 5 01:11:16 2015
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Name : ostest:5 (local to host ostest)
UUID : 1aecd804:f2c08c96:6211f583:3aa5c890
Events : 565
Number Major Minor RaidDevice State
0 8 5 0 active sync /dev/sda5
1 8 21 1 active sync /dev/sdb5 |
Where did I missed something ?
Last edited by MasterPrenium on Mon Oct 05, 2015 12:44 pm; edited 1 time in total |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Sun Oct 04, 2015 11:50 pm Post subject: Re: mdadm inactive array at boot |
|
|
MasterPrenium wrote: | ARRAY /dev/md/5 metadata=1.2 UUID=b2bdfcac:7913c315:a846fef1:0c6d9b6c name=ostest:5 |
Try changing it to:
Code: | ARRAY /dev/md5 UUID=b2bdfcac:7913c315:a846fef1:0c6d9b6c |
That's all you need, all other conditions (name, etc.) can prevent it from working.
Apart from that, show dmesg and mdadm --examine /dev/sd*, preferably full output no | tail | grep etc. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|