RAID 5 inaccessible - continued
All right, this weekend I was able to use dd to create an imagefile out of the disk.
I did the folowing:
dd conv=noerror if=dev/hdd1 of=/mnt/hdb1/Faulty-RAIDDisk.img losetup /dev/loop0 /mnt/hdb1/Faulty-RAIDDisk.img
I edited the mdadm.conf, by replacing /dev/hdd1 for /dev/loop0.
But it did not work out (yet).
madm -E /dev/loop0
mdadm: No super block found on /dev/loop0 (Expected magic a92b4efc, got 00000000)
How can I continue best?
- mdadm -A --force /dev/md0
or
- can I restore the superblock from the hdd1 disk (which is still alive)
or
- can I configure mdadm.conf other than this:
(/dev/hdc1 is spare, probably out of date)
DEVICE /dev/hdb1 /dev/hdc1 /dev/loop0
ARRAY /dev/md0 devices=/dev/hdb1,/dev/hdc1,/dev/loop0
or
- some other solution?
Krekna
2006/2/8, Krekna Mektek <[email protected]>:
Quoted 84 lines
Hi,
I found out that my storage drive was gone and I went to my server to check out what wrong.
I've got 3 400GB disks wich form the array.I found out I had one spare and one faulty drive, and the RAID 5 array was not able to recover.
After a reboot because of some stuff with Xen my main rootdisk (hda) was also failing, and the whole machine was not able to boot anymore. And there I was...
After I tried to commit suicide and did not succeed, I went back to my server to try something out.
I booted with Knoppix 4.02 and edited the mdadm.conf as follows:DEVICE /dev/hd[bcd]1
ARRAY/dev/md0devices=/dev/hdb1,/dev/hdc1,/dev/hdd1I executed mdrun and the following messages appeared:
Forcing event count in /dev/hdd1(2) from 81190986 upto 88231796 clearing FAULTY flag for device 2 in
/dev/md0for/dev/hdd1/dev/md0has been started with 2 drives (out of 3) and 1 spare.So I thought I was lucky enough, to get back my data, maybe a bit lost concerning the event count which is missing some. Am I right?
But, when I tried to mount it the next day, this was also not happening. I ended up with one faulty, one spare and one active. After stopping and starting the array sometimes the array was rebuilding again. I found out that the disk that it needs to rebuilt the array (hdd1 that is) is
getting errors and falls back to faulty again.Number Major Minor RaidDevice State
0 3 65 0 active sync
1 0 0 - removed
2 22 65 2 active sync3 22 1 1 spare rebuilding
and then this:
Rebuild Status : 1% complete
Number Major Minor RaidDevice State
0 3 65 0 active sync
1 0 0 - removed
2 0 0 - removed3 22 1 1 spare rebuilding
4 22 65 2 faultyAnd my dmesg is full of these errors coming from the faulty hdd:
end_request: I/O error, dev hdd, sector 13614775
hdd:dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdd:dma_intr: error=0x40 { UncorrectableError }, LBAsect=13615063, high=0, low=13615063, sector=13614783
ide: failed opcode was: unknownend_request: I/O error, dev hdd, sector 13614783I guess this will never succeed...
Is there away to get this data back from the individual disks perhaps?
FYI:
root@6[~]# cat /proc/mdstat Personalities : [raid5] md0 : active raid5 hdb1[0] hdc1[3] hdd1[4](F) 781417472 blocks level 5, 64k chunk, algorithm 2 [3/1] [U__] [>....................] recovery = 1.7% (6807460/390708736) finish=3626.9min speed=1764K/sec unused devices: <none>Krekna
Krekna is crying out loud in the empty wilderness.... No one there to help me?
Krekna
2006/2/13, Krekna Mektek <[email protected]>:
Quoted 123 lines
All right, this weekend I was able to use dd to create an imagefile out of the disk.
I did the folowing:dd conv=noerror if=dev/hdd1 of=/mnt/hdb1/Faulty-RAIDDisk.img losetup
/dev/loop0/mnt/hdb1/Faulty-RAIDDisk.imgI edited the mdadm.conf, by replacing
/dev/hdd1for/dev/loop0.But it did not work out (yet).
madm -E
/dev/loop0
mdadm: No super block found on/dev/loop0(Expected magica92b4efc, got 00000000)How can I continue best?
- mdadm -A --force
/dev/md0or
- can I restore the superblock from the hdd1 disk (which is still alive)
or
- can I configure mdadm.conf other than this:
(/dev/hdc1is spare, probably out of date)DEVICE
/dev/hdb1/dev/hdc1/dev/loop0
ARRAY/dev/md0devices=/dev/hdb1,/dev/hdc1,/dev/loop0or
- some other solution?Krekna
2006/2/8, Krekna Mektek <[email protected]>:
Quoted 84 lines
Hi,
I found out that my storage drive was gone and I went to my server to check out what wrong.
I've got 3 400GB disks wich form the array.I found out I had one spare and one faulty drive, and the RAID 5 array was not able to recover.
After a reboot because of some stuff with Xen my main rootdisk (hda) was also failing, and the whole machine was not able to boot anymore. And there I was...
After I tried to commit suicide and did not succeed, I went back to my server to try something out.
I booted with Knoppix 4.02 and edited the mdadm.conf as follows:DEVICE /dev/hd[bcd]1
ARRAY/dev/md0devices=/dev/hdb1,/dev/hdc1,/dev/hdd1I executed mdrun and the following messages appeared:
Forcing event count in /dev/hdd1(2) from 81190986 upto 88231796 clearing FAULTY flag for device 2 in
/dev/md0for/dev/hdd1/dev/md0has been started with 2 drives (out of 3) and 1 spare.So I thought I was lucky enough, to get back my data, maybe a bit lost concerning the event count which is missing some. Am I right?
But, when I tried to mount it the next day, this was also not happening. I ended up with one faulty, one spare and one active. After stopping and starting the array sometimes the array was rebuilding again. I found out that the disk that it needs to rebuilt the array (hdd1 that is) is
getting errors and falls back to faulty again.Number Major Minor RaidDevice State
0 3 65 0 active sync
1 0 0 - removed
2 22 65 2 active sync3 22 1 1 spare rebuilding
and then this:
Rebuild Status : 1% complete
Number Major Minor RaidDevice State
0 3 65 0 active sync
1 0 0 - removed
2 0 0 - removed3 22 1 1 spare rebuilding
4 22 65 2 faultyAnd my dmesg is full of these errors coming from the faulty hdd:
end_request: I/O error, dev hdd, sector 13614775
hdd:dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdd:dma_intr: error=0x40 { UncorrectableError }, LBAsect=13615063, high=0, low=13615063, sector=13614783
ide: failed opcode was: unknownend_request: I/O error, dev hdd, sector 13614783I guess this will never succeed...
Is there away to get this data back from the individual disks perhaps?
FYI:
root@6[~]# cat /proc/mdstat Personalities : [raid5] md0 : active raid5 hdb1[0] hdc1[3] hdd1[4](F) 781417472 blocks level 5, 64k chunk, algorithm 2 [3/1] [U__] [>....................] recovery = 1.7% (6807460/390708736) finish=3626.9min speed=1764K/sec unused devices: <none>Krekna
Quoted 2 lines · On Tuesday February 14, [email protected] wrote:
Krekna is crying out loud in the empty wilderness.... No one there to help me?
Nope :-)
Quoted 4 lines
Quoted 4 lines
I did the folowing:
dd conv=noerror if=dev/hdd1 of=/mnt/hdb1/Faulty-RAIDDisk.img losetup
/dev/loop0/mnt/hdb1/Faulty-RAIDDisk.img
..
Quoted 6 lines
Quoted 6 lines
But it did not work out (yet).
madm -E
/dev/loop0
mdadm: No super block found on/dev/loop0(Expected magica92b4efc, got 00000000)
...
Quoted 3 lines
Quoted 3 lines
- can I restore the superblock from the hdd1 disk (which is still alive)
If mdadm -E /dev/hdd1 shows a valid superblock, and mdadm -E /dev/loop0 doesn't, then your 'dd' wasn't very successful.
What is the size of /mnt/hdb1/Faulty-RAIDDisk.img ?? What is the size of /dev/hdd1?
BTW, you don't need to edit mdadm.conf to try things out. Just
mdadm -A /dev/md0 /dev/hdb1 /dev/hdc1 /dev/loop0
NeilBrown
2006/2/14, Neil Brown <[email protected]>:
Quoted 17 lines · On Tuesday February 14, [email protected] wrote:
Quoted 2 lines
Krekna is crying out loud in the empty wilderness.... No one there to help me?
Nope :-)
Quoted 4 lines
Quoted 4 lines
I did the folowing:
dd conv=noerror if=dev/hdd1 of=/mnt/hdb1/Faulty-RAIDDisk.img losetup
/dev/loop0/mnt/hdb1/Faulty-RAIDDisk.img..
Quoted 6 lines
Quoted 6 lines
But it did not work out (yet).
madm -E
/dev/loop0
mdadm: No super block found on/dev/loop0(Expected magica92b4efc, got 00000000)
Quoted 7 lines
...
Quoted 3 lines
Quoted 3 lines
- can I restore the superblock from the hdd1 disk (which is still alive)
If mdadm -E
/dev/hdd1shows a valid superblock, and mdadm -E/dev/loop0doesn't, then your 'dd' wasn't very successful.
Hi,
Actually, /dev/hdd1 partition is 390708801 blocks, the disk itself is a Hitachi 400GB disk.
So this is 390708801 blocks of 1024 bytes. This is according to my calculation 400085812224 bytes.
The Faulty-RAIDDisk.img is according to my ls -l 400085771264 bytes.
So it looks like they are quite the same, and the difference between the two is 40960 bytes. These are 40 blocks, so 36 are missing?
The dd actually succeeded, and did finish the job in about one day. The badblocks were found after about the first 7 Gigs.
Is there no way like the conv=noerror for mdadm, to just continue? Can I restore the superblock on the .img file somehow?
Is it probably save to --zero-superblock all the three disks and that the RAID array will create two new superblocks (Leaving the spare out, because its probably out of date).
I can do the dd again, but I think it will do the same thing, because it finished 'succesfully'.
The superblock is at the end of the disk I read, about the last 64-128K or something.
Krekna
Quoted 10 lines
What is the size of
/mnt/hdb1/Faulty-RAIDDisk.img?? What is the size of/dev/hdd1?BTW, you don't need to edit mdadm.conf to try things out. Just
mdadm -A
/dev/md0/dev/hdb1/dev/hdc1/dev/loop0NeilBrown
A message that is not in the archive (sent off-list or not yet received): [email protected]
2006/2/14, Mike Hardy <[email protected]>:
Quoted 8 lines
Quoted 2 lines · Krekna Mektek
The dd actually succeeded, and did finish the job in about one day. The badblocks were found after about the first 7 Gigs.
Is this a 3-disk raid5 array? With two healthy disks and one bad disk?
Hi Mike!
It is a 3 disk array, that is one spare (which was set as spare by Linux, previously marked as faulty I guess. This disk is probably out of date, because I don't know when this did happen, and I don't have the logs anymore).
One disk is okay, and the faulty is probably also okay, except for the 76 bad sectors.
I want to rebuilt from the good one and the faulty one. That's why I wanted to dd the disk to an image file, but it complains it has no boot sector.
In this case, I actually *can* try the 2.6.15+ kernel then? Because the rebuilt *IS* working, except for the fact that it stops at 1,7%, which happens to be at the bad block area indeed.
So, there actually IS a possibility now I was requesting for: mdadm to skip over the bad blocks area? That mean I can try again, but now with 2.6.15?
And if not. I still don't understand why this did not work:
<quote>
Quoted 11 lines
Quoted 4 lines
Quoted 4 lines
I did the folowing:
dd conv=noerror if=dev/hdd1 of=/mnt/hdb1/Faulty-RAIDDisk.img losetup
/dev/loop0/mnt/hdb1/Faulty-RAIDDisk.img..
Quoted 6 lines
Quoted 6 lines
But it did not work out (yet).
madm -E
/dev/loop0
mdadm: No super block found on/dev/loop0(Expected magica92b4efc, got 00000000)
</quote>
Thanks for your help!
Krekna
Quoted 11 lines
If so, then what you really want is a new kernel (2.6.15+? 2.6.14+?) that has raid5 read-error-handling code in it. Neil just coded that up.
If it's missing a disk and has a disk with bad sectors, then you've already lost data, but you could use a combination of smart tests and dd to zero out those specific sectors (and only those sectors...) then sync a new disk up with the array...
-Mike
Quoted 12 lines · Krekna Mektek
I want to rebuilt from the good one and the faulty one. That's why I wanted to dd the disk to an image file, but it complains it has no boot sector.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
I did the folowing:
dd conv=noerror if=dev/hdd1 of=/mnt/hdb1/Faulty-RAIDDisk.img losetup
/dev/loop0/mnt/hdb1/Faulty-RAIDDisk.img
You could try doing this again using ddrescue (google if you need to install it):
ddrescue dev/hdd1 /mnt/hdb1/Faulty-RAIDDisk.img /mnt/hdb1/Faulty-RAIDDisk.log
Then do it again using -r10 (to increase the retries on the faulty sectors)
ddrescue -r10 dev/hdd1 /mnt/hdb1/Faulty-RAIDDisk.img /mnt/hdb1/Faulty-RAIDDisk.log
This will be much quicker because the log file contains details of the faulty sectors.
With luck (mucho luck) you may not even lose data.
David
Hi David,
Thank you.
I will give ddrescue a shot then. But what is it different than a dd with the noerror conversion?
Krekna
2006/2/14, David Greaves <[email protected]>:
Quoted 32 lines
Quoted 12 lines · Krekna Mektek
I want to rebuilt from the good one and the faulty one. That's why I wanted to dd the disk to an image file, but it complains it has no boot sector.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
I did the folowing:
dd conv=noerror if=dev/hdd1 of=/mnt/hdb1/Faulty-RAIDDisk.img losetup
/dev/loop0/mnt/hdb1/Faulty-RAIDDisk.imgYou could try doing this again using ddrescue (google if you need to install it):
ddrescue dev/hdd1
/mnt/hdb1/Faulty-RAIDDisk.img/mnt/hdb1/Faulty-RAIDDisk.logThen do it again using -r10 (to increase the retries on the faulty sectors)
ddrescue -r10 dev/hdd1
/mnt/hdb1/Faulty-RAIDDisk.img/mnt/hdb1/Faulty-RAIDDisk.logThis will be much quicker because the log file contains details of the faulty sectors.
With luck (mucho luck) you may not even lose data.David
--
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
Well, the dd_rescue did it's work, the array is now rebuilding, but it's doing its thing very slowly.
But now the following, while the array is rebuilding and with the good image on my new disk (The FaultyRAIDDisk.img), I am trying to mount /dev/md0 already, but it now says :
root@1[~]# fdisk -l /dev/md0
Disk /dev/md0: 800.1 GB, 800171491328 bytes
2 heads, 4 sectors/track, 195354368 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md0 doesn't contain a valid partition table
How can some individual disks which crash destroy my partition table!? Help! Is there some way to get my data back from here??
2006/2/15, David Greaves <[email protected]>:
Quoted 74 lines
man ddrescue:
-r, --max-retries=<n>
exit after given retries (-1=infinity) [0]So the -r10 basically tries to re-read each dodgy sector 10 times.
Is it working?
David
Quoted 56 lines · Krekna Mektek
Hi,
I am busy with it now, but what does the 10 mean in -r10 ? I understand from the --help that one can use the -r option, but without something behind it?
Krekna
2006/2/14, David Greaves <[email protected]>:
Quoted 42 lines
Quoted 16 lines · Krekna Mektek
I want to rebuilt from the good one and the faulty one. That's why I wanted to dd the disk to an image file, but it complains it has no boot sector.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
I did the folowing:
dd conv=noerror if=dev/hdd1 of=/mnt/hdb1/Faulty-RAIDDisk.img losetup
/dev/loop0/mnt/hdb1/Faulty-RAIDDisk.imgYou could try doing this again using ddrescue (google if you need to install it):
ddrescue dev/hdd1
/mnt/hdb1/Faulty-RAIDDisk.img/mnt/hdb1/Faulty-RAIDDisk.logThen do it again using -r10 (to increase the retries on the faulty sectors)
ddrescue -r10 dev/hdd1
/mnt/hdb1/Faulty-RAIDDisk.img/mnt/hdb1/Faulty-RAIDDisk.logThis will be much quicker because the log file contains details of the faulty sectors.
With luck (mucho luck) you may not even lose data.David
--
--
Whoops, sorry, I remember something about LVM... I've setup the system with LVM, I'm sure of that. In that case I can't mount /dev/md0 of course..
I need to find out how this stuff works again..
Krekna
2006/2/16, Krekna Mektek <[email protected]>:
Quoted 98 lines
Hi,
Well, the
dd_rescuedid it's work, the array is now rebuilding, but it's doing its thing very slowly.But now the following, while the array is rebuilding and with the good image on my new disk (The FaultyRAIDDisk.img), I am trying to mount
/dev/md0already, but it now says :root@1[~]# fdisk -l /dev/md0Disk
/dev/md0: 800.1 GB, 800171491328 bytes
2 heads, 4 sectors/track, 195354368 cylinders
Units = cylinders of 8 * 512 = 4096 bytesDisk
/dev/md0doesn't contain a valid partition tableHow can some individual disks which crash destroy my partition table!? Help! Is there some way to get my data back from here??
2006/2/15, David Greaves <[email protected]>:
Quoted 74 lines
man ddrescue:
-r, --max-retries=<n>
exit after given retries (-1=infinity) [0]So the -r10 basically tries to re-read each dodgy sector 10 times.
Is it working?
David
Quoted 56 lines · Krekna Mektek
Hi,
I am busy with it now, but what does the 10 mean in -r10 ? I understand from the --help that one can use the -r option, but without something behind it?
Krekna
2006/2/14, David Greaves <[email protected]>:
Quoted 42 lines
Quoted 16 lines · Krekna Mektek
I want to rebuilt from the good one and the faulty one. That's why I wanted to dd the disk to an image file, but it complains it has no boot sector.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
I did the folowing:
dd conv=noerror if=dev/hdd1 of=/mnt/hdb1/Faulty-RAIDDisk.img losetup
/dev/loop0/mnt/hdb1/Faulty-RAIDDisk.imgYou could try doing this again using ddrescue (google if you need to install it):
ddrescue dev/hdd1
/mnt/hdb1/Faulty-RAIDDisk.img/mnt/hdb1/Faulty-RAIDDisk.logThen do it again using -r10 (to increase the retries on the faulty sectors)
ddrescue -r10 dev/hdd1
/mnt/hdb1/Faulty-RAIDDisk.img/mnt/hdb1/Faulty-RAIDDisk.logThis will be much quicker because the log file contains details of the faulty sectors.
With luck (mucho luck) you may not even lose data.David
--
--
Oh man!
I've never been so happy! Wow. My array is back, with the dd_rescue which indeed came to the rescue. Since I've configured my LVM again, the raid Array is accessible again.
Guys, many thanks for your help!
dd_rescue is indeed something different then a dd conv=noerror, though I tried that one only once.
I need to buy another 500GB disk now to _FIRST_ backup the whole thing.
Krekna
2006/2/16, Krekna Mektek <[email protected]>:
Quoted 108 lines
Whoops, sorry, I remember something about LVM... I've setup the system with LVM, I'm sure of that. In that case I can't mount
/dev/md0of course..I need to find out how this stuff works again..
Krekna
2006/2/16, Krekna Mektek <[email protected]>:
Quoted 98 lines
Hi,
Well, the
dd_rescuedid it's work, the array is now rebuilding, but it's doing its thing very slowly.But now the following, while the array is rebuilding and with the good image on my new disk (The FaultyRAIDDisk.img), I am trying to mount
/dev/md0already, but it now says :root@1[~]# fdisk -l /dev/md0Disk
/dev/md0: 800.1 GB, 800171491328 bytes
2 heads, 4 sectors/track, 195354368 cylinders
Units = cylinders of 8 * 512 = 4096 bytesDisk
/dev/md0doesn't contain a valid partition tableHow can some individual disks which crash destroy my partition table!? Help! Is there some way to get my data back from here??
2006/2/15, David Greaves <[email protected]>:
Quoted 74 lines
man ddrescue:
-r, --max-retries=<n>
exit after given retries (-1=infinity) [0]So the -r10 basically tries to re-read each dodgy sector 10 times.
Is it working?
David
Quoted 56 lines · Krekna Mektek
Hi,
I am busy with it now, but what does the 10 mean in -r10 ? I understand from the --help that one can use the -r option, but without something behind it?
Krekna
2006/2/14, David Greaves <[email protected]>:
Quoted 42 lines
Quoted 16 lines · Krekna Mektek
I want to rebuilt from the good one and the faulty one. That's why I wanted to dd the disk to an image file, but it complains it has no boot sector.
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
I did the folowing:
dd conv=noerror if=dev/hdd1 of=/mnt/hdb1/Faulty-RAIDDisk.img losetup
/dev/loop0/mnt/hdb1/Faulty-RAIDDisk.imgYou could try doing this again using ddrescue (google if you need to install it):
ddrescue dev/hdd1
/mnt/hdb1/Faulty-RAIDDisk.img/mnt/hdb1/Faulty-RAIDDisk.logThen do it again using -r10 (to increase the retries on the faulty sectors)
ddrescue -r10 dev/hdd1
/mnt/hdb1/Faulty-RAIDDisk.img/mnt/hdb1/Faulty-RAIDDisk.logThis will be much quicker because the log file contains details of the faulty sectors.
With luck (mucho luck) you may not even lose data.David
--
--
I tried this one yesterday, with 2.6.15 that is. The same thing happened, at the bad block sectors it tried and skipped some but after a minute or two it stopped again.
Hmmmz.
Krekna
2006/2/14, Mike Hardy <[email protected]>:
Quoted 19 lines
Quoted 2 lines · Krekna Mektek
The dd actually succeeded, and did finish the job in about one day. The badblocks were found after about the first 7 Gigs.
Is this a 3-disk raid5 array? With two healthy disks and one bad disk?
If so, then what you really want is a new kernel (2.6.15+? 2.6.14+?) that has raid5 read-error-handling code in it. Neil just coded that up.
If it's missing a disk and has a disk with bad sectors, then you've already lost data, but you could use a combination of smart tests and dd to zero out those specific sectors (and only those sectors...) then sync a new disk up with the array...
-Mike
Am Dienstag, 14. Februar 2006 11:35 schrieb Krekna Mektek:
[...]
Quoted 18 lines
Actually,
/dev/hdd1partition is 390708801 blocks, the disk itself is a Hitachi 400GB disk.
So this is 390708801 blocks of 1024 bytes. This is according to my calculation 400085812224 bytes.
The Faulty-RAIDDisk.img is according to my ls -l 400085771264 bytes.So it looks like they are quite the same, and the difference between the two is 40960 bytes. These are 40 blocks, so 36 are missing?
The dd actually succeeded, and did finish the job in about one day. The badblocks were found after about the first 7 Gigs.
Is there no way like the conv=noerror for mdadm, to just continue? Can I restore the superblock on the .img file somehow?
Is it probably save to --zero-superblock all the three disks and that the RAID array will create two new superblocks (Leaving the spare out, because its probably out of date).
Quoted 4 lines
I can do the dd again, but I think it will do the same thing, because it finished 'succesfully'.
The superblock is at the end of the disk I read, about the last 64-128K or something.
My experience is that dd conv=noerror doesn't do the job correctly!! It still won't write a block that it cannot read.
Please use "dd_rescue -A /dev/hdd1 /mnt/hdb1/Faulty-RAIDDisk.img" instead. See "dd_rescue --help".
Quoted 2 lines
ADEVICE
/dev/hdb1/dev/hdc1/dev/loop0
ARRAY/dev/md0devices=/dev/hdb1,/dev/hdc1,/dev/loop0
another thing: /mnt/hdb1/ is not the same hdb1, you are using in the raid5, is it?
It might be a bad idea to mount /dev/hdb1, write to it,
and afterwards assemble the array with hdb1 being part of it ... Extra bad, if loop0 points to a file on hdb1 ?? However, if you did dd to a file on the partition, that should be part of the degraded raid5 array, I guess your data is already gone ...
Good luck
Burkhard
Er,,, no :)
This was on another machine, luckily, I am not that stupid.
I was using /dev/hdb in that one, sorry to be a bit unclear about that. Also, I usually sit on my hands for a sec when I do such powerfull commands.
Good, so I make some chances then with dd_rescue, I'll let you know then, I have to try this tonight.
Krekna
2006/2/15, Burkhard Carstens <[email protected]>:
Quoted 50 lines
Am Dienstag, 14. Februar 2006 11:35 schrieb Krekna Mektek:
[...]Quoted 18 lines
Actually,
/dev/hdd1partition is 390708801 blocks, the disk itself is a Hitachi 400GB disk.
So this is 390708801 blocks of 1024 bytes. This is according to my calculation 400085812224 bytes.
The Faulty-RAIDDisk.img is according to my ls -l 400085771264 bytes.So it looks like they are quite the same, and the difference between the two is 40960 bytes. These are 40 blocks, so 36 are missing?
The dd actually succeeded, and did finish the job in about one day. The badblocks were found after about the first 7 Gigs.
Is there no way like the conv=noerror for mdadm, to just continue? Can I restore the superblock on the .img file somehow?
Is it probably save to --zero-superblock all the three disks and that the RAID array will create two new superblocks (Leaving the spare out, because its probably out of date).Quoted 4 lines
I can do the dd again, but I think it will do the same thing, because it finished 'succesfully'.
The superblock is at the end of the disk I read, about the last 64-128K or something.My experience is that dd conv=noerror doesn't do the job correctly!! It still won't write a block that it cannot read.
Please use "dd_rescue-A/dev/hdd1/mnt/hdb1/Faulty-RAIDDisk.img" instead. See "dd_rescue--help".Quoted 2 lines
ADEVICE
/dev/hdb1/dev/hdc1/dev/loop0
ARRAY/dev/md0devices=/dev/hdb1,/dev/hdc1,/dev/loop0another thing:
/mnt/hdb1/is not the same hdb1, you are using in the raid5, is it?It might be a bad idea to mount
/dev/hdb1, write to it,
and afterwards assemble the array with hdb1 being part of it ... Extra bad, if loop0 points to a file on hdb1 ?? However, if you did dd to a file on the partition, that should be part of the degraded raid5 array, I guess your data is already gone ...Good luck
Burkhard-
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