Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
RAID 0 + Bad BLOCKS !!!! - How to save my data ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dark_priest
Apprentice
Apprentice


Joined: 18 Aug 2003
Posts: 227
Location: NL

PostPosted: Mon Mar 01, 2004 6:42 pm    Post subject: RAID 0 + Bad BLOCKS !!!! - How to save my data ? Reply with quote

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
View user's profile Send private message
aquadog
n00b
n00b


Joined: 28 Dec 2002
Posts: 28
Location: Johannesburg, South Africa

PostPosted: Tue Mar 02, 2004 8:25 am    Post subject: Reply with quote

you can try using badblocks. here's a link to the manpage --> http://www.die.net/doc/linux/man/man8/badblocks.8.html
Back to top
View user's profile Send private message
dark_priest
Apprentice
Apprentice


Joined: 18 Aug 2003
Posts: 227
Location: NL

PostPosted: Tue Mar 02, 2004 9:01 am    Post subject: Reply with quote

well, its in raid, so it doesnt see itself as a single block device
_________________
[ Censored by unpopular demand]
Back to top
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Tue Mar 02, 2004 12:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
dark_priest
Apprentice
Apprentice


Joined: 18 Aug 2003
Posts: 227
Location: NL

PostPosted: Tue Mar 02, 2004 12:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Tue Mar 02, 2004 1:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
dark_priest
Apprentice
Apprentice


Joined: 18 Aug 2003
Posts: 227
Location: NL

PostPosted: Tue Mar 02, 2004 7:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
Rad
Guru
Guru


Joined: 11 Feb 2004
Posts: 401
Location: Bern, Switzerland

PostPosted: Wed Mar 03, 2004 1:50 am    Post subject: Reply with quote

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! :wink::

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
View user's profile Send private message
dark_priest
Apprentice
Apprentice


Joined: 18 Aug 2003
Posts: 227
Location: NL

PostPosted: Wed Mar 03, 2004 8:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Rad
Guru
Guru


Joined: 11 Feb 2004
Posts: 401
Location: Bern, Switzerland

PostPosted: Wed Mar 03, 2004 11:59 am    Post subject: Reply with quote

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! :)
Back to top
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Wed Mar 03, 2004 12:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Wed Mar 03, 2004 12:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
dark_priest
Apprentice
Apprentice


Joined: 18 Aug 2003
Posts: 227
Location: NL

PostPosted: Wed Mar 03, 2004 12:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Rad
Guru
Guru


Joined: 11 Feb 2004
Posts: 401
Location: Bern, Switzerland

PostPosted: Wed Mar 03, 2004 12:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Crg
Guru
Guru


Joined: 29 May 2002
Posts: 345
Location: London

PostPosted: Wed Mar 03, 2004 1:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum