LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 10-17-2005, 02:22 PM   #1
blkcamarozr28
Member
 
Registered: Oct 2005
Location: Honolulu, Hawaii
Distribution: Fedora Core 1-7, CentOS 4/5, Ubuntu/Xubuntu
Posts: 63

Rep: Reputation: 15
Linux Raid 1 Mirror bad on SCSI HDD. Howto fix?


Hi,

I have a Fedora Core 2 server that has a bad SCSI drive that is affecting mirror md3. I am running FC2's software raid 1 (mirroring). How do you fix this problem? I have 4 scsi hdd's [(2) 18GB + (2) 9GB]. They are setup as this:
9GB - / & swap
18GB- /home


Below are some info on the system.

*** /proc/mdstat ***
Personalities : [raid1]
md2 : active raid1 sdb2[1] sda2[0]
1023744 blocks [2/2] [UU]

md3 : active raid1 sdc1[1]
17920768 blocks [2/1] [_U]

md1 : active raid1 sdb1[1] sda1[0]
7862016 blocks [2/2] [UU]

*** df ***
Filesystem Size Used Avail Use% Mounted on
/dev/md1 7.4G 6.1G 1.1G 86% /
none 506M 0 506M 0% /dev/shm
/dev/md3 17G 701M 16G 5% /home


*** fdisk -l ***
Disk /dev/sda: 9100 MB, 9100369920 bytes
64 heads, 32 sectors/track, 8678 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 7678 7862256 fd Linux raid autodetect
/dev/sda2 7679 8678 1024000 fd Linux raid autodetect

Disk /dev/sdb: 9100 MB, 9100369920 bytes
64 heads, 32 sectors/track, 8678 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 7678 7862256 fd Linux raid autodetect
/dev/sdb2 7679 8678 1024000 fd Linux raid autodetect

Disk /dev/sdc: 18.3 GB, 18351959040 bytes
64 heads, 32 sectors/track, 17501 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 17501 17921008 fd Linux raid autodetect
 
Old 10-17-2005, 07:19 PM   #2
blkcamarozr28
Member
 
Registered: Oct 2005
Location: Honolulu, Hawaii
Distribution: Fedora Core 1-7, CentOS 4/5, Ubuntu/Xubuntu
Posts: 63

Original Poster
Rep: Reputation: 15
Im going to try and answer my own question. Let me know if this is correct or not.

*********************
*Repair bad sdc partition*
*********************
sfdisk -d /dev/sdc > sdc.dat *Copies sdc partition table
sfdisk /dev/sdd < sdc.dat *Copies sdc partition table to sdd
mdadm --add /dev/md3 /dev/sd1 *Rebuild Mirror by adding sd1 back in
 
  


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
Howto Format a new RAID 5 HDD kamalsharif Linux - Hardware 14 04-02-2005 06:09 PM
I wanted linux so bad I formatted HDD! penguinhead31 Linux - Laptop and Netbook 8 02-06-2005 01:05 PM
how to make mirror image of one hdd to 2 hdd raj_1 General 1 12-02-2004 06:19 PM
How to make mirror image of linux partion to one1 HDD TO 2 HDD raj_1 Linux - General 2 11-04-2004 01:45 AM
can 36GB SCSI used as a mirror for an 18GB SCSI DrAx Linux - Newbie 4 09-22-2004 10:46 AM


All times are GMT -5. The time now is 12:20 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration