LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Thread Tools
Old 01-02-2009, 07:39 AM   #1
rajesh.bahl
Member
 
Registered: Jan 2007
Posts: 71
Thanked: 0
Adding hard disk to Software RAID after crash


[Log in to get rid of this advertisement]
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
rajesh.bahl is offline     Reply With Quote
Old 01-02-2009, 08:28 AM   #2
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 153
Thanked: 3
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.
avijitp is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 09:50 AM
Adding an old software-RAID array to a software-RAID installation.. Boot problems GarethM Linux - Hardware 2 05-05-2008 04:16 PM
Software RAID 5 crash and wrongful failed disk flagged Cairan Linux - Server 0 12-18-2006 06:14 AM
RAID 1: adding a new SCSI disk to existing disk.... help mgy Linux - Enterprise 4 04-17-2006 04:56 AM
adding a hard drive to an existing software raid array iammisc Linux - Hardware 3 03-01-2006 07:08 PM


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

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration