Koozali.org: home of the SME Server

Obsolete Releases => SME Server 8.x => Topic started by: rshiras on June 11, 2013, 03:04:54 AM

Title: RAID, backup drive fried, only one mirror member left. Only boots to grub
Post by: rshiras on June 11, 2013, 03:04:54 AM
A power surge knocked out my backup drive and one of my RAID drives.  My server also fried.  So I'm going from PATA to SATA.  I have made a clone from the PATA to a SATA drive, and tried all kinds of tricks from posts (thanks for these), but to no avail.  OK so no pre-backup.  Won't boot, goes to Grub.  Tried grub.  Tried renaming .img and mkinitrd.  Tried removing lines from grub.conf. Tried F5 rescue.
OK so I got a new PC and installed SME 8.0 on it and set up RAID. 
Question: can I recover users, ibays, virtual domains, MySQL and all other user data from the old drive?  Are there new methods in 8.0 that I might not have discovered yet?  I'm trying to RTFM, but some links or tips would be greatly appreciated right now.  No sleep for me until this gets done.
Title: Re: RAID, backup drive fried, only one mirror member left. Only boots to grub
Post by: rshiras on June 11, 2013, 03:05:56 AM
Uh-oh...My RAID was set up automatically as SDB and SDA.  I added my old drive to try to see what data is on there, and RAID automatiaclly switched to SDC and SDB!  Why did it do that?  Has it wiped out my old data?  What's the proper way to get my stuff off the old drive?
Title: Re: RAID, backup drive fried, only one mirror member left. Only boots to grub
Post by: janet on June 11, 2013, 03:58:41 PM
rshiras

Quote
What's the proper way to get my stuff off the old drive?

Do a backup using server manager, select backup to workstation to a local USB drive.
Then use that drive to restore to the new hardware with a clean install of sme8 on it.

Title: Re: RAID, backup drive fried, only one mirror member left. Only boots to grub
Post by: Brave Dave on June 11, 2013, 11:53:31 PM
Get a USB - SATA / PATA kit and connect it via USB after the server has booted, you can mount and manually retrieve ibays, yes you could retrieve everything else, but that requires more skills.

Certainly you can mount the drive (assume old system was raid 1) and recover data (I think you can mount a raid 1 drive ..., think I've done that)
Title: Re: RAID, backup drive fried, only one mirror member left. Only boots to grub
Post by: janet on June 12, 2013, 06:34:53 AM
rshiras

Quote
Uh-oh...My RAID was set up automatically as SDB and SDA.  I added my old drive to try to see what data is on there, and RAID automatiaclly switched to SDC and SDB!  Why did it do that?  Has it wiped out my old data?  What's the proper way to get my stuff off the old drive?

Is it booting now to the command prompt or are you still getting the grub error ?

If you have a command prompt show output of
cat /proc/mdstat

Otherwise try booting to the sme install CD & select Rescue mode, you may be able to mount the system, follow instructions on screen & see if you data is still there.