Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-30-2014, 12:23 AM   #1
LQ Newbie
Registered: Apr 2014
Posts: 4

Rep: Reputation: Disabled
RAID not persisting after reboot

I'm at my wits end. I've rebuilt this RAID a half a dozen times. I create it. i format it. i wait 2 hrs for it to sync. i mount a directory to it. i add files. i add it to /etc/fstab (by device, by UUID, i've even tried by LABEL, all 'work'). i test performance with dd... i reboot, and it all goes away. What am i missing?? as an aside, when i rebuild the RAID, it warns that they look like their part of a raid already. fdisk shows no partition. mdstat is empty. no sign of md0 or md0p1 anywhere

this is a continuation of this thread

mdadm -v --create /dev/md0 --level=raid10 --raid-devices=4 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1

mkfs.ext4 -v -m .1 -b 4096 -E stride=256,stripe-width=512 /dev/md0p1

watch cat /proc/mdstat
any thoughts would be appreciated!! Thanks guys/gals!
Old 04-30-2014, 12:54 PM   #2
Senior Member
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,848

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Did you have an mdadm.conf file? The kernel will only only automatically assemble raid sets if the md code is built-in, otherwise the array is assembled by init scripts. To add your array to the file do:
mdadm --detail --scan >> /etc/mdadm/mdadm.conf
1 members found this post helpful.
Old 04-30-2014, 10:00 PM   #3
LQ Newbie
Registered: Apr 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
sweet... thank you so much. I was mdadm stuff into /etc/mdadm.conf by mistake. works like a dream now!!!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] 13.37 default Xfce version panel clock not persisting custom format bassplayer69 Slackware 2 06-03-2011 08:55 AM
[SOLVED] synaptics touchpad settings in xorg.conf not persisting upon reboot adityavpratap Slackware 20 05-17-2010 08:57 PM
MultiLink PPP & persisting connection adilturbo *BSD 4 09-03-2008 10:24 AM
Persisting The connection using 2 modems adilturbo Linux - Networking 1 08-27-2008 05:46 PM
Nested raid gets disassembled on reboot Fox2k Linux - Hardware 0 10-22-2007 04:37 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:03 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration