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


  Search this Thread
Old 08-21-2009, 08:01 PM   #1
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

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
and this for reference

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:

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

mdadm /dev/md1 --add /dev/sda1

mdadm /dev/md3 --add /dev/sda1

(what about swap?)


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

All times are GMT -5. The time now is 01:43 PM.

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