LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Manual assembly of RAID array works, won't come up on boot. (https://www.linuxquestions.org/questions/linux-software-2/manual-assembly-of-raid-array-works-wont-come-up-on-boot-812753/)

Bviper 06-07-2010 06:43 PM

Manual assembly of RAID array works, won't come up on boot.
 
On a Debian system, I have a RAID 10 array (/dev/md0) consisting of:

/dev/sda
/dev/sdb
/dev/sdc
/dev/sdd

Doing
Code:

mdadm --assemble /dev/md0 /dev/sda /dev/sdb /dev/sdc /dev/sdd
assembles the array and all the data is still intact. The array used to assemble on its own after boot; however, after an update is no longer doing this. I've tried adding
Code:

devices=/dev/sda,/dev/sdb,/dev/sdc,/dev/sdd
after the UUID to the mdadm.conf; however, I've still not been able to have it assemble on boot. The UUIDs of all the drives appear to be identical.

My mdadm.conf is below.

Code:

# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#

# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions

# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes

# automatically tag new arrays as belonging to the local system
HOMEHOST <system>

# instruct the monitoring daemon where to send mail alerts
MAILADDR **EDITED**

# definitions of existing MD arrays

# This file was auto-generated on Tue, 29 Dec 2009 18:03:33 -0600
# by mkconf $Id$
ARRAY /dev/md0 level=raid10 num-devices=4 UUID=3cf5b28a:b42c3ef0:715bc1c1:92c95b45

Any ideas?

hda7 06-08-2010 09:30 PM

One (temporary) solution would be to drop the mdadm.conf and write a script that assembles the array manually. Then call the script somewhere in the startup. Not the best solution, but if you need something, that should at work.


All times are GMT -5. The time now is 02:08 AM.