Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › HELPP need to restore raid5 using Knoppix
New Posts  All Forums:Forum Nav:

HELPP need to restore raid5 using Knoppix - Page 3

post #21 of 39
Thread Starter 
Disk /dev/md0 - 2995 GB / 2789 GiB - CHS 731359584 2 4 Partition Start End Size in sectors ext2 0 0 1 731359583 1 4 5850876672

superblock 0, blocksize=4096 []
superblock 32768, blocksize=4096 []
superblock 98304, blocksize=4096 []
superblock 163840, blocksize=4096 []
superblock 229376, blocksize=4096 []
superblock 294912, blocksize=4096 []
superblock 819200, blocksize=4096 []
superblock 884736, blocksize=4096 []
superblock 1605632, blocksize=4096 []
superblock 2654208, blocksize=4096 []

fsck.ext3 -b 2654208 -B 4096 /dev/md0

root@Microknoppix:/home/knoppix# testdisk /dev/md0 TestDisk 6.11, Data Recovery Utility, April 2009 Christophe GRENIER http://www.cgsecurity.org TestDisk exited normally.

root@Microknoppix:/home/knoppix# fsck.ext3 -b 2654208 -B 4096 /dev/md0

e2fsck 1.41.12 (17-May-2010) /dev/md0 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/md0: 11/182845440 files (0.0% non-contiguous), 11495036/731359584 blocks

and I still get the same error when I try to mount the drive
Edited by da tick 07 - 5/6/11 at 12:55pm
Mitx Love
(13 items)
 
  
CPUMotherboardRAMHard Drive
Pentium G6950 Zotac H55 ITX 2x2GB Kingston 500GB Hitachi 
OSPowerMouseMouse Pad
Windows Server 2008 R2 Lite-on 300w Logitech Wireless Laser ULTRA wrist rest 
  hide details  
Reply
Mitx Love
(13 items)
 
  
CPUMotherboardRAMHard Drive
Pentium G6950 Zotac H55 ITX 2x2GB Kingston 500GB Hitachi 
OSPowerMouseMouse Pad
Windows Server 2008 R2 Lite-on 300w Logitech Wireless Laser ULTRA wrist rest 
  hide details  
Reply
post #22 of 39
You shouldn't be seeing any errors from mount, now that the filesystem is clean. Try again to mount the filesystem, and then after it fails, do:
Code:
dmesg | tail -n 25

and see if anything is present there.
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
post #23 of 39
Thread Starter 
dmesg | tail -n 25
[ 258.452810] raid6: int32x8 623 MB/s
[ 258.509363] raid6: mmxx1 3447 MB/s
[ 258.565989] raid6: mmxx2 3939 MB/s
[ 258.622619] raid6: sse1x1 3085 MB/s
[ 258.679266] raid6: sse1x2 3437 MB/s
[ 258.735899] raid6: sse2x1 6103 MB/s
[ 258.792531] raid6: sse2x2 6802 MB/s
[ 258.792532] raid6: using algorithm sse2x2 (6802 MB/s)
[ 258.801145] md: raid6 personality registered for level 6
[ 258.801147] md: raid5 personality registered for level 5
[ 258.801149] md: raid4 personality registered for level 4
[ 258.801236] bio: create slab at 1
[ 258.801245] md/raid:md0: device sdb4 operational as raid disk 1
[ 258.801247] md/raid:md0: device sdd4 operational as raid disk 3
[ 258.801249] md/raid:md0: device sdc4 operational as raid disk 2
[ 258.801443] md/raid:md0: allocated 4222kB
[ 258.801539] md/raid:md0: raid level 5 active with 3 out of 4 devices, algorithm 2
[ 258.801541] RAID conf printout:
[ 258.801543] --- level:5 rd:4 wd:3
[ 258.801546] disk 1, o:1, dev:sdb4
[ 258.801548] disk 2, o:1, dev:sdc4
[ 258.801551] disk 3, o:1, dev:sdd4
[ 258.801584] md0: detected capacity change from 0 to 2995648856064
[ 258.805147] md0: unknown partition table
[ 272.053266] EXT3-fs (md0): error: no journal found. mounting ext3 over ext2?
Mitx Love
(13 items)
 
  
CPUMotherboardRAMHard Drive
Pentium G6950 Zotac H55 ITX 2x2GB Kingston 500GB Hitachi 
OSPowerMouseMouse Pad
Windows Server 2008 R2 Lite-on 300w Logitech Wireless Laser ULTRA wrist rest 
  hide details  
Reply
Mitx Love
(13 items)
 
  
CPUMotherboardRAMHard Drive
Pentium G6950 Zotac H55 ITX 2x2GB Kingston 500GB Hitachi 
OSPowerMouseMouse Pad
Windows Server 2008 R2 Lite-on 300w Logitech Wireless Laser ULTRA wrist rest 
  hide details  
Reply
post #24 of 39
Quote:
Originally Posted by da tick 07;13408399 
[ 272.053266] EXT3-fs (md0): error: no journal found. mounting ext3 over ext2?

Oh yeah, I bet this setup is using external journal. We'll have to turn it off.
Code:
tune2fs -O ^has_journal /dev/md0
mount -t ext2 -o ro /dev/md0 /mnt
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
post #25 of 39
Thread Starter 
I got it mounted but I can't see any files. I only see one folder labeled "LOST+FOUND"
Mitx Love
(13 items)
 
  
CPUMotherboardRAMHard Drive
Pentium G6950 Zotac H55 ITX 2x2GB Kingston 500GB Hitachi 
OSPowerMouseMouse Pad
Windows Server 2008 R2 Lite-on 300w Logitech Wireless Laser ULTRA wrist rest 
  hide details  
Reply
Mitx Love
(13 items)
 
  
CPUMotherboardRAMHard Drive
Pentium G6950 Zotac H55 ITX 2x2GB Kingston 500GB Hitachi 
OSPowerMouseMouse Pad
Windows Server 2008 R2 Lite-on 300w Logitech Wireless Laser ULTRA wrist rest 
  hide details  
Reply
post #26 of 39
Quote:
Originally Posted by da tick 07;13408554 
I got it mounted but I can't see any files. I only see one folder labeled "LOST+FOUND"

It was in caps?!?
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
post #27 of 39
Thread Starter 
No sorry it was all lowercase
Mitx Love
(13 items)
 
  
CPUMotherboardRAMHard Drive
Pentium G6950 Zotac H55 ITX 2x2GB Kingston 500GB Hitachi 
OSPowerMouseMouse Pad
Windows Server 2008 R2 Lite-on 300w Logitech Wireless Laser ULTRA wrist rest 
  hide details  
Reply
Mitx Love
(13 items)
 
  
CPUMotherboardRAMHard Drive
Pentium G6950 Zotac H55 ITX 2x2GB Kingston 500GB Hitachi 
OSPowerMouseMouse Pad
Windows Server 2008 R2 Lite-on 300w Logitech Wireless Laser ULTRA wrist rest 
  hide details  
Reply
post #28 of 39
Quote:
Originally Posted by da tick 07;13408609 
No sorry it was all lowercase

And I presume there was nothing in it?

At this point it's looking like all your files were deleted before the array crashed. I'm doing some more research to see if there's an easy way to recover everything.
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
post #29 of 39
OK, I am going to guess the external journal is in the other RAID array partitions, since WD really doesn't make it clear how they've set this up. If it is, and it's intact, then we can use it to undelete some (maybe all) of your files.

First thing, you'll need the extundelete utility. So on the Fedora Live CD, see if it's there:
Code:
extundelete

If it's not found, install it:
Code:
yum install extundelete

Now we'll stick the other RAID array back together:
Code:
mdadm --assemble --run --force /dev/md1 /dev/sdb2 /dev/sdc2 /dev/sdd2

If this succeeds (it should) then we'll move on to reattaching the journal:
Code:
umount /dev/md0
tune2fs -O has_journal -J device=/dev/md1 /dev/md0
mount -t ext3 -o ro /dev/md0

If mount fails at this point, post whatever your output is up to this point. If it worked, move on to:
Code:
umount /dev/md0

Change to a directory on another disk with enough free space to hold all recovered files, for example:
Code:
mkdir /restore
mount -t ext3 -o rw /dev/sde1 /restore
cd /restore

Finally, begin recovery:
Code:
extundelete /dev/md0 --restore-all

This may run for a few hours, and it may run without visible output for several minutes at a time while it's searching the drive. Note that you MUST have enough free drive space on another drive; there is no in-place recovery!

If extundelete isn't able to find anything (unlikely, if you got this far!) or if the partition that I think is a journal fails to be one, then I still have one more last resort. smile.gif
Edited by error10 - 5/6/11 at 4:20pm
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
post #30 of 39
That'll teach me to proofread. I had to fix some of the commands.
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
Underground
(14 items)
 
  
CPUMotherboardGraphicsRAM
Core i7 920 C0 ASUS P6T6 WS Revolution GTX 460 TR3X6G1600C8D 
Hard DriveOptical DriveCoolingOS
WD1001FALS SAMSUNG SH-S223F 22X DVD MULTI Corsair H50 Fedora 16 KDE x86_64 
MonitorKeyboardPowerCase
HP w19b Microsoft Comfort Curve Corsair CX600 Thermaltake Armor VA8003BWS 
MouseMouse Pad
Razer DeathAdder Black 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › HELPP need to restore raid5 using Knoppix