LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-29-2014, 11:23 PM   #1
jjstinger72
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
http://www.linuxquestions.org/questi...78#post5160478

Code:
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, 11:54 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
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:
Code:
mdadm --detail --scan >> /etc/mdadm/mdadm.conf
 
1 members found this post helpful.
Old 04-30-2014, 09:00 PM   #3
jjstinger72
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!!!
 
  


Reply



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 07:55 AM
[SOLVED] synaptics touchpad settings in xorg.conf not persisting upon reboot adityavpratap Slackware 20 05-17-2010 07:57 PM
MultiLink PPP & persisting connection adilturbo *BSD 4 09-03-2008 09:24 AM
Persisting The connection using 2 modems adilturbo Linux - Networking 1 08-27-2008 04:46 PM
Nested raid gets disassembled on reboot Fox2k Linux - Hardware 0 10-22-2007 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:19 AM.

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