LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 08-21-2009, 09:01 PM   #1
pwjohnston
LQ Newbie
 
Registered: Jul 2009
Distribution: Fedora/CentOS
Posts: 15

Rep: Reputation: 0
Recovering the OS from software RAID HDD crash with rPath (or RHEL/CentOS/Fedora)?


Newb here.

I'm trying to build a home NAS using openfiler. I don't have a hardware RAID so I have set up a software RAID.

So my disks are
/dev/sda
/dev/sdb
/dev/sdc
/dev/sdd

df -h

Filesystem Size Used Avail Use% Mounted on
/dev/md3 2.0G 693M 1.2G 37% /
/dev/md0 251M 19M 219M 8% /boot
tmpfs 1.9G 0 1.9G 0% /dev/shm < (swap?)
/dev/md1 745M 17M 690M 3% /var/log

/dev/md0 is raid 1 mirrored using sda1 and sdc1
/dev/md1 is raid 1 mirrored using sda2 and sdc2
swap is raid 1 mirrored using sda3 and sdc3
/dev/md3 is raid 1 mirrored using sdb1 and sdd1

I set that up using this doc
https://forums.openfiler.com/viewtopic.php?id=2501
and this for reference
http://www.redhat.com/docs/manuals/l...ware-raid.html

So you guys probably can't speak for OpenFiler, so just tell me if this holds true for RHEL/CentOS.

Lets say the sda drive dies. The info is mirrored on sdc. I've done some reading and I just want to make sure that this sounds right.

Using the instructions here:
http://www.linuxquestions.org/questi...e-raid-527345/


1. Partition /dev/sda the same as /dev/sdc:
sfdisk -d /dev/sdc | sfdisk /dev/sda

2. Add the partition to the array:
mdadm /dev/md0 --add /dev/sda1

3.
mdadm /dev/md1 --add /dev/sda1

4.
mdadm /dev/md3 --add /dev/sda1


(what about swap?)
 
  


Reply


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
recovering data from a software raid partition f14f21 Linux - Newbie 3 11-06-2008 07:29 AM
Recovering data on RAID 5 with semi-faulty hdd davidsaxton Linux - Hardware 2 09-16-2006 04:45 PM
Recovering software 5 RAID wesleywest Red Hat 1 02-09-2005 03:35 PM
Recovering RAID-5 array after OS crash IMNOboist Linux - Hardware 0 12-14-2004 01:04 AM
Recovering Software RAID Mirror rootking Linux - Software 1 11-01-2004 08:32 PM


All times are GMT -5. The time now is 03:33 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration