LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-02-2009, 06:39 AM   #1
rajesh.bahl
Member
 
Registered: Jan 2007
Posts: 101

Rep: Reputation: 15
Adding hard disk to Software RAID after crash


Dear All,

Hello ! My system is running on CentOS 5.2. There were two hard disks running on software RAID level 1. One of the hard disks (IDE) crashed. The system is still running.I have added a new hard disk in the system.

How can I configure it in software RAID so that it becomes exact mirror of the existing disk ?



Thanks In Advance
 
Old 01-02-2009, 07:28 AM   #2
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
Check your current /etc/raidtab
Code:
cat /etc/raidtab

       raiddev /dev/md0
           raid-level              1
           nr-raid-disks           2
           persistent-superblock   0
           chunk-size              8

           device                  /dev/hda1
           raid-disk               0
           device                  /dev/hdb1
           raid-disk               1
You should be able to see your current raid configuration and the device. If the replaced hard drive has been detected as the same device, just the 'raidhostadd'

Code:
raidhotadd /dev/md0 /dev/hdb1
I assumed that /dev/hdb1 is your newly added disk partition.

Then use 'watch cat /proc/mdstat' to view the re-mirroring process.

Before this make sure that you have re-partioned your new hard disk same as earlier.
 
  


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
Fedora8 installed on Software Raid+lvm will not start (GRUB Hard Disk Error) nikaudio Fedora - Installation 1 07-08-2008 08:50 AM
Adding an old software-RAID array to a software-RAID installation.. Boot problems GarethM Linux - Hardware 2 05-05-2008 03:16 PM
Software RAID 5 crash and wrongful failed disk flagged Cairan Linux - Server 0 12-18-2006 05:14 AM
RAID 1: adding a new SCSI disk to existing disk.... help mgy Linux - Enterprise 4 04-17-2006 03:56 AM
adding a hard drive to an existing software raid array iammisc Linux - Hardware 3 03-01-2006 06:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:51 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