Guys,
The other day while working on my old workstation it got frozen and after reboot I lost almost all data unexpectedly.
I have a RAID1 configuration with LVM. 2 IDE HDDs.
md0 .. store /boot (100MB) -------------------------- /dev/hda2 /dev/hdd1
md1 .. store / (26GB) -------------------------- /dev/hda3 /dev/hdd2
The only info that still rest in was that, that I restore after the fresh install. It seems that the disk were with problems and weren't syncing :(. I confessed, I didn't check that at first time but after I lost the data and check /var/log/messages I saw that.
From /var/log/messages
... Jan 17 12:22:15 zion kernel: md: raid1 personality registered for level 1 Jan 17 12:22:15 zion kernel: device-mapper: ioctl: 4.11.0-ioctl (2006-09-14) initialised: dm-devel@redhat.com Jan 17 12:22:15 zion kernel: md: Autodetecting RAID arrays. Jan 17 12:22:15 zion kernel: md: invalid raid superblock magic on hda3 Jan 17 12:22:15 zion kernel: md: hda3 has invalid sb, not importing! Jan 17 12:22:15 zion kernel: md: autorun ... Jan 17 12:22:15 zion kernel: md: considering hdd2 ... Jan 17 12:22:15 zion kernel: md: adding hdd2 ... Jan 17 12:22:15 zion kernel: md: hdd1 has different UUID to hdd2 Jan 17 12:22:15 zion kernel: md: hda2 has different UUID to hdd2 Jan 17 12:22:15 zion kernel: md: created md1 Jan 17 12:22:15 zion kernel: md: bind<hdd2> Jan 17 12:22:15 zion kernel: md: running: <hdd2> Jan 17 12:22:15 zion mcstransd: mcstransd starting Jan 17 12:22:15 zion kernel: raid1: raid set md1 active with 1 out of 2 mirrors Jan 17 12:22:15 zion kernel: md: considering hdd1 ... Jan 17 12:22:15 zion kernel: md: adding hdd1 ... Jan 17 12:22:15 zion kernel: md: adding hda2 ... Jan 17 12:22:15 zion kernel: md: created md0 Jan 17 12:22:15 zion kernel: md: bind<hda2> Jan 17 12:22:15 zion kernel: md: bind<hdd1> Jan 17 12:22:15 zion kernel: md: running: <hdd1><hda2> Jan 17 12:22:15 zion kernel: md: kicking non-fresh hdd1 from array! Jan 17 12:22:15 zion kernel: md: unbind<hdd1> Jan 17 12:22:15 zion kernel: md: export_rdev(hdd1) Jan 17 12:22:15 zion kernel: raid1: raid set md0 active with 1 out of 2 mirrors Jan 17 12:22:15 zion kernel: md: ... autorun DONE. ...
This computer is old, Celeron 800MHz, 256MB of RAM and IDE disk too.
I know that I have to suffer the consequences but if you know some way to recover some data, I'll appreciate it very much.
These days I have been reading about: mdamd, and some way to recover but no success.
I tried to boot from rescue mode with CentOS 5 first CD and do an fsck to /dev/hda3 and /dev/hdd2. After this something about superblock was told to me and that use the command e2fsck -b 8123 <device> (I don't remember the number exactly) but no success either.
Do you have some idea what we can do to recover the data on m1 ?
Thanks guys,
Cheers, al.
On Fri, 2008-01-18 at 15:47 -0500, Alain Reguera Delgado wrote:
Guys,
The other day while working on my old workstation it got frozen and after reboot I lost almost all data unexpectedly.
I have a RAID1 configuration with LVM. 2 IDE HDDs.
md0 .. store /boot (100MB)
/dev/hda2 /dev/hdd1
md1 .. store / (26GB)
/dev/hda3 /dev/hdd2
The only info that still rest in was that, that I restore after the fresh install. It seems that the disk were with problems and weren't syncing :(. I confessed, I didn't check that at first time but after I lost the data and check /var/log/messages I saw that.
From /var/log/messages
... Jan 17 12:22:15 zion kernel: md: raid1 personality registered for level 1 Jan 17 12:22:15 zion kernel: device-mapper: ioctl: 4.11.0-ioctl (2006-09-14) initialised: dm-devel@redhat.com Jan 17 12:22:15 zion kernel: md: Autodetecting RAID arrays. Jan 17 12:22:15 zion kernel: md: invalid raid superblock magic on hda3 Jan 17 12:22:15 zion kernel: md: hda3 has invalid sb, not importing! Jan 17 12:22:15 zion kernel: md: autorun ... Jan 17 12:22:15 zion kernel: md: considering hdd2 ... Jan 17 12:22:15 zion kernel: md: adding hdd2 ... Jan 17 12:22:15 zion kernel: md: hdd1 has different UUID to hdd2 Jan 17 12:22:15 zion kernel: md: hda2 has different UUID to hdd2 Jan 17 12:22:15 zion kernel: md: created md1 Jan 17 12:22:15 zion kernel: md: bind<hdd2> Jan 17 12:22:15 zion kernel: md: running: <hdd2> Jan 17 12:22:15 zion mcstransd: mcstransd starting Jan 17 12:22:15 zion kernel: raid1: raid set md1 active with 1 out of 2 mirrors Jan 17 12:22:15 zion kernel: md: considering hdd1 ... Jan 17 12:22:15 zion kernel: md: adding hdd1 ... Jan 17 12:22:15 zion kernel: md: adding hda2 ... Jan 17 12:22:15 zion kernel: md: created md0 Jan 17 12:22:15 zion kernel: md: bind<hda2> Jan 17 12:22:15 zion kernel: md: bind<hdd1> Jan 17 12:22:15 zion kernel: md: running: <hdd1><hda2> Jan 17 12:22:15 zion kernel: md: kicking non-fresh hdd1 from array! Jan 17 12:22:15 zion kernel: md: unbind<hdd1> Jan 17 12:22:15 zion kernel: md: export_rdev(hdd1) Jan 17 12:22:15 zion kernel: raid1: raid set md0 active with 1 out of 2 mirrors Jan 17 12:22:15 zion kernel: md: ... autorun DONE. ...
This computer is old, Celeron 800MHz, 256MB of RAM and IDE disk too.
I know that I have to suffer the consequences but if you know some way to recover some data, I'll appreciate it very much.
These days I have been reading about: mdamd, and some way to recover but no success.
I tried to boot from rescue mode with CentOS 5 first CD and do an fsck to /dev/hda3 and /dev/hdd2. After this something about superblock was told to me and that use the command e2fsck -b 8123 <device> (I don't remember the number exactly) but no success either.
Do you have some idea what we can do to recover the data on m1 ?
Thanks guys,
Cheers, al.
When you booted to rescue mode on the CD, did you let it find your existing CentOS install and mount it (I can't remember if it will continue in degraded mode ATM)? You should also be able to see the data with just one drive IIRC, you just need to be able to map the LVM volumes. Except for the MD meta-data, the bits should be 1-for-1 across the disks AFAIK.
Check out http://tldp.org/HOWTO/LVM-HOWTO/ for more info about LVM.
--Tim ________________________________________________________________________ < PEGGY FLEMMING is stealing BASKET BALLS to feed the babies in VERMONT. > ------------------------------------------------------------------------ \ \ \ \ /\ ( ) .( o ).
On 1/18/08, Timothy Selivanow timothy.selivanow@virtualxistenz.com wrote:
On Fri, 2008-01-18 at 15:47 -0500, Alain Reguera Delgado wrote:
...
When you booted to rescue mode on the CD, did you let it find your existing CentOS install and mount it (I can't remember if it will continue in degraded mode ATM)? You should also be able to see the data with just one drive IIRC, you just need to be able to map the LVM volumes. Except for the MD meta-data, the bits should be 1-for-1 across the disks AFAIK.
Yes. I let it until the anaconda screen asks me to: continue, Read-Only, Skip ... I pressed Continue ... no system was detected but I can mount md0 and md1, also read some old data on md1 ... What I can't access is the new one I put there recently (weeks ago). :(
Check out http://tldp.org/HOWTO/LVM-HOWTO/ for more info about LVM.
Thanks.
Cheers, al.
Alain Reguera Delgado wrote on Fri, 18 Jan 2008 20:04:23 -0500:
What I can't access is the new one I put there recently (weeks ago).
You need to explain that.
Kai
On 1/19/08, Kai Schaetzl maillists@conactive.com wrote:
Alain Reguera Delgado wrote on Fri, 18 Jan 2008 20:04:23 -0500:
What I can't access is the new one I put there recently (weeks ago).
You need to explain that.
Yep. Here is the full story.
Last December 26, I decided to make a fresh install of my old workstation. I wished a configuration that let me data redundancy to a major data protection. I opted RAID1 configuration with 2 ATA IDE disks of 40GB. Before format and create the new configuration, I made a backup of all my home directory unto another hard drive.
When data was safe, I followed the Deployment Guide steps in How to create RAID1 with LVM.
After the RAID1-LVM configuration was in place, I restored the backup from the external hard drive into the RAID1-LVM configuration.
It was working without troubles (apparently).
At January 17, while working something strange happened to my old workstation. The screen turned into black, the keyboard doesn't responded, and the hard drive led light was off. So I pressed the reset button.
After that, when the system started up, the only info that I had was that one immediately copied into the RAID1-LVM configuration after the fresh install on December 26. Changes after that seem not to be present.
I thought that with a RAID1 I'd have the data on both disk, so if one of them fail the other one still have an information safe copy.
Tell me if you need more information, please.
Cheers, al.