Raid Failed What to to
Hello
I have got a Raid 5 with 4 160 GB Disk,
On of the Disks Failed because. But I know its OK I had this for some times. A Restart solved The Problem.
But now Tried to raidhotremove the Drive and removed the wrong drive. I just recongized the Problem after i raidhotadded itagain.
No the Raid tries to sync again.
Syslog gets flooded by the following
May 20 23:52:25 utgard kernel: md: syncing RAID array md0 May 20 23:52:25 utgard kernel: md: minimum _guaranteed_ reconstruction speed: 1000 KB/sec/disc. May 20 23:52:25 utgard kernel: md: using maximum available idle IO bandwith (but not more than 200000 KB/sec) for reconstruction. May 20 23:52:25 utgard kernel: md: using 128k window, over a total of 156288256 blocks. May 20 23:52:25 utgard kernel: md: md0: sync done.
a cat /proc/mdstat gibes me different output
utgard:~# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid5]
md1 : active raid1 hdd2[1] hdc2[0]
79055744 blocks [2/2] [UU]md0 : active raid5 hdk1[4] hdi1[3] hdg1[5](F) hde1[0]
468864768 blocks level 5, 32k chunk, algorithm 2 [4/2] [U__U]
[>....................] recovery = 0.0% (128/156288256)
finish=13024.0min speed=128K/sec
unused devices: <none>
utgard:~# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid5]
md1 : active raid1 hdd2[1] hdc2[0]
79055744 blocks [2/2] [UU]md0 : active raid5 hdk1[4] hdi1[3] hdg1[5](F) hde1[0]
468864768 blocks level 5, 32k chunk, algorithm 2 [4/2] [U__U]
[>....................] recovery = 0.0% (128/156288256)
finish=13024.0min speed=128K/sec
unused devices: <none>
utgard:~# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid5]
md1 : active raid1 hdd2[1] hdc2[0]
79055744 blocks [2/2] [UU]md0 : active raid5 hdk1[4] hdi1[3] hdg1[5](F) hde1[0]
468864768 blocks level 5, 32k chunk, algorithm 2 [4/2] [U__U]
unused devices: <none>
utgard:~# cat /proc/mdstat
Personalities : [raid0] [raid1] [raid5]
md1 : active raid1 hdd2[1] hdc2[0]
79055744 blocks [2/2] [UU]md0 : active raid5 hdk1[4] hdi1[3] hdg1[5](F) hde1[0]
468864768 blocks level 5, 32k chunk, algorithm 2 [4/2] [U__U]
unused devices: <none>
I know that all 4 Dives should be ok, how can i recover the Raid without loosing data? Does a restart help?
Thanks buliwyf
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dominik Sennfelder wrote:
| Hello | | I have got a Raid 5 with 4 160 GB Disk, | On of the Disks Failed because. But I know its OK I had this for some | times. | A Restart solved The Problem. | But now Tried to raidhotremove the Drive and removed the wrong drive. | I just recongized the Problem after i raidhotadded itagain. | No the Raid tries to sync again.
well if you removed two drives from your Raid5 array, it might got competly out of sync and then there is no way to recover. I have never tried this with my raid, but if you add another disk it well be re-synced, ergo it tries to rebuild the array out of the CRCs on the other drives, if you remove two, you don't have enough redudant data to do this (raid 6 can recover from a 2 drive failure).
I hope you have a backup.
- --
Clemens Schwaighofer - IT Engineer & System Administration
==========================================================
TEQUILA\Japan, 6-17-2 Ginza Chuo-ku, Tokyo 104-8167, JAPAN
Tel: +81-(0)3-3545-7703 Fax: +81-(0)3-3545-7343
http://www.tequila.co.jp
==========================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFArcGmjBz/yQjBxz8RAkYKAJ9TAc03OnmIth/M03xBmopKerZLOQCcCiiG wk/lAjdcrd1jPWSoLyOGLAE=
=5uyj
-----END PGP SIGNATURE-----
If you re-make the array with the same parameters as it has now the data will not be lost (assuming it is still there now). If 1 disk is really bad then leave it out.
The procedures depend on which program you use to create the array. Do you use mkraid or mdadm?
Guy
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Clemens Schwaighofer
Sent: Friday, May 21, 2004 4:45 AM
To: Dominik Sennfelder
Cc: [email protected]
Subject: Re: Raid Failed What to to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dominik Sennfelder wrote:
| Hello | | I have got a Raid 5 with 4 160 GB Disk, | On of the Disks Failed because. But I know its OK I had this for some | times. | A Restart solved The Problem. | But now Tried to raidhotremove the Drive and removed the wrong drive. | I just recongized the Problem after i raidhotadded itagain. | No the Raid tries to sync again.
well if you removed two drives from your Raid5 array, it might got competly out of sync and then there is no way to recover. I have never tried this with my raid, but if you add another disk it well be re-synced, ergo it tries to rebuild the array out of the CRCs on the other drives, if you remove two, you don't have enough redudant data to do this (raid 6 can recover from a 2 drive failure).
I hope you have a backup.
- --
Clemens Schwaighofer - IT Engineer & System Administration
==========================================================
TEQUILA\Japan, 6-17-2 Ginza Chuo-ku, Tokyo 104-8167, JAPAN
Tel: +81-(0)3-3545-7703 Fax: +81-(0)3-3545-7343
http://www.tequila.co.jp
==========================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFArcGmjBz/yQjBxz8RAkYKAJ9TAc03OnmIth/M03xBmopKerZLOQCcCiiG wk/lAjdcrd1jPWSoLyOGLAE=
=5uyj
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html