View previous topic :: View next topic |
Author |
Message |
dark_priest Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/61689259640db5a9eef518.jpg)
Joined: 18 Aug 2003 Posts: 227 Location: NL
|
Posted: Mon Mar 01, 2004 6:42 pm Post subject: RAID 0 + Bad BLOCKS !!!! - How to save my data ? |
|
|
simple setup
raid 0
Disk A + Disk B
Disk A has .... *BAD* Blocks.
what to do, to fix this AND save all (or at least most) of the data
below, a cut & paste of the relevant dmesg
Code: |
hde: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hde: dma_intr: error=0x40 { UncorrectableError }, LBAsect=63, high=0, low=63, sector=63
end_request: I/O error, dev hde, sector 63
EXT3-fs: can't read group descriptor 0
|
Note: cant mount cause its raid, and there's a broken block in one. _________________ [ Censored by unpopular demand] |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
aquadog n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 28 Dec 2002 Posts: 28 Location: Johannesburg, South Africa
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dark_priest Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/61689259640db5a9eef518.jpg)
Joined: 18 Aug 2003 Posts: 227 Location: NL
|
Posted: Tue Mar 02, 2004 9:01 am Post subject: |
|
|
well, its in raid, so it doesnt see itself as a single block device _________________ [ Censored by unpopular demand] |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Crg Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/6065622693e713182272fc.jpg)
Joined: 29 May 2002 Posts: 345 Location: London
|
Posted: Tue Mar 02, 2004 12:02 pm Post subject: |
|
|
dark_priest wrote: | well, its in raid, so it doesnt see itself as a single block device |
From what you posted it doesn't look like badblocks it looks more like a faulty drive. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dark_priest Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/61689259640db5a9eef518.jpg)
Joined: 18 Aug 2003 Posts: 227 Location: NL
|
Posted: Tue Mar 02, 2004 12:14 pm Post subject: |
|
|
be that as it may, we want to recover the data
dont care if we make it read only and then dump it all on tape before we chuck the drive out...
but we need to make the drive readable with minimal data loss. preferably NONE, since its the backup drive! _________________ [ Censored by unpopular demand] |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Crg Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/6065622693e713182272fc.jpg)
Joined: 29 May 2002 Posts: 345 Location: London
|
Posted: Tue Mar 02, 2004 1:30 pm Post subject: |
|
|
dark_priest wrote: | but we need to make the drive readable with minimal data loss. preferably NONE, since its the backup drive! |
Hang on... back up drive on raid 0?!?! Surely thats a typo and you are using raid1? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dark_priest Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/61689259640db5a9eef518.jpg)
Joined: 18 Aug 2003 Posts: 227 Location: NL
|
Posted: Tue Mar 02, 2004 7:16 pm Post subject: |
|
|
Its Striping
give it whatever raid # you want, i thought it was 0
but... HOW do i retrieve data ? _________________ [ Censored by unpopular demand] |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Rad Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Feb 2004 Posts: 401 Location: Bern, Switzerland
|
Posted: Wed Mar 03, 2004 1:50 am Post subject: |
|
|
Striping is Raid 0, allright.
I really suggest you take all disks in the array offline right now and get a replacement drive for the damaged one (well, if the data is important to you - sudden appearance of bad blocks is sometimes a sign your HDD will fail completely soon).
Ok- now for the part I'm not totally sure about -but that I think will work anyways! :
Now just dump the entire damaged harddisk onto the new one -with either partimage, mondo-rescue, dd or whatever works (this doesn't refer only to dumping, but also to mounting it afterwards)... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dark_priest Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/61689259640db5a9eef518.jpg)
Joined: 18 Aug 2003 Posts: 227 Location: NL
|
Posted: Wed Mar 03, 2004 8:26 am Post subject: |
|
|
nonononono
it wont MOUNT cause it has bad blocks
and its RAID so you cant just mount ghe other one and hope for the best.
BOTH need to be mountable!
*panic*
HOW ? _________________ [ Censored by unpopular demand] |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Rad Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Feb 2004 Posts: 401 Location: Bern, Switzerland
|
Posted: Wed Mar 03, 2004 11:59 am Post subject: |
|
|
Yes, I understood that. However I suggest you replace your damaged drive before doing anything else because if the damaged drive fails now, all the data on that array will be lost. And bad blocks suddently appearing on a disk ARE not a good sign... Well, probably I'm over-rating the importance of that data?
With linux, you can just dump the raw image of the drive (your /dev/hde, for example) onto another harddisk so you can replace the old one without loosing any kind of data (in theory), I just don't know which of the programs I mentioned will work (or work best)... Try partimage first, though! ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Crg Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/6065622693e713182272fc.jpg)
Joined: 29 May 2002 Posts: 345 Location: London
|
Posted: Wed Mar 03, 2004 12:07 pm Post subject: |
|
|
dark_priest wrote: | Its Striping
give it whatever raid # you want, i thought it was 0
but... HOW do i retrieve data ? |
Striping is raid 0 yes
If you wanted to retrieve data you shouldn't have put it on raid 0, especially for backups.
Think about it, your files are splatted across 2 disks, so if ones fails you lose all data, and not only that but at the same time you have increased your chances of failure by having 2 disks that can fail.
I find it quite amazing you had this setup and are then desperate to get the data back.
Last edited by Crg on Wed Mar 03, 2004 12:17 pm; edited 2 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Crg Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/6065622693e713182272fc.jpg)
Joined: 29 May 2002 Posts: 345 Location: London
|
Posted: Wed Mar 03, 2004 12:12 pm Post subject: |
|
|
dark_priest wrote: | it wont MOUNT cause it has bad blocks |
You haven't shown me any log outputs that say it has bad blocks.
The snippet you posted looks to me like a failed drive, not bad blocks, which is why the raid set fails.
And if that's the case you have lost all your data.
If on the other hand you had used them as single disks you would have only lost half the amount of data, or if you had used raid 1 (mirroring), you would have lost no data, as the raid set would still function with one disk, and worst case senario you could just mount the single disk. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dark_priest Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/61689259640db5a9eef518.jpg)
Joined: 18 Aug 2003 Posts: 227 Location: NL
|
Posted: Wed Mar 03, 2004 12:27 pm Post subject: |
|
|
that may be, but we didnt
now, HOW can i save the data ?
THAT is what this is all about _________________ [ Censored by unpopular demand] |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Rad Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 11 Feb 2004 Posts: 401 Location: Bern, Switzerland
|
Posted: Wed Mar 03, 2004 12:38 pm Post subject: |
|
|
It certainely doesn't look good, but try dumping the disk onto another one with one of the programs I mentioned... if the content can be dumped, recovery is maybe possible. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Crg Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/6065622693e713182272fc.jpg)
Joined: 29 May 2002 Posts: 345 Location: London
|
Posted: Wed Mar 03, 2004 1:43 pm Post subject: |
|
|
dark_priest wrote: | now, HOW can i save the data ?
THAT is what this is all about |
It's a bit late really, you can try Rad's suggestion or take it to a data recovery place. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|