Koozali.org: home of the SME Server

BAD CRASH! need to recover users

AidansDad

BAD CRASH! need to recover users
« on: June 16, 2007, 01:09:03 PM »
one sme server I work with had a near complete hard drive failure.  sme wouldn't boot - kernel panic. I spent the day with it yesterday, did a sector by sector copy onto a new drive then managed to get knoppix to unlock the folders and chmod them so I could save them on the network.

initially I tried to just upgrade the install with 7.1, but that didn't work as setup was detected hardware errors.  so I decided to just backup the data, install 7.1 fresh and restore the data.  so I managed to get knoppix to unlock the folders and chmod them to 777 so I could copy them out to a network drive.

I backed up the user folders, and ibays from the /home/e-smith directory.

what I want to know is how I backup and restore the existing users on the system.  what files do I need to pull off the old drive then restore to the new install.

as always help is always appreciated.

Offline raem

  • *
  • 3,972
  • +4/-0
Re: BAD CRASH! need to recover users
« Reply #1 on: June 16, 2007, 09:13:01 PM »
AidansDad

>.. one sme server I work with had a near complete hard drive failure.
>... I spent the day with it yesterday...

I'm interested to know why you don't insist on RAID1 drives at least.
Isn't your days time or whoever is paying you for it, worth more than the cost of a second drive ?
It will give you data security (with a redundant disk), when compared to the loss of data consequences of a drive failure in a single disk server !


>...  how I backup and restore the existing users on the system.  
>.... what files do I need to pull off the old drive then restore to the new install.

Answered many many many times, so search the forums eg on backup.
You can use the LAT (Lazy Admin Tools) contrib also (on a working system though).
Note that pulling certain files off an old server is not necessarily the answer as there is no one or two files alone that ONLY contain users info. The information you need is distributed across many different files (which are part of the standard backup).

It has also been answered before that it would be possible to create a contrib/code to selectively extract just users info for selective restore, but no one has developed that contrib yet, or been willing to pay a developer to create it.


What about backups, do you not have any for that system, if not then I would strongly suggest you put in place a good daily backup strategy for that organisation.
...

Offline mmccarn

  • *
  • 2,651
  • +10/-0
BAD CRASH! need to recover users
« Reply #2 on: June 17, 2007, 08:24:57 PM »
There is some sort of method to restore sme 7.x from the hard disk taken out of another system.

Here's one post about it: http://forums.contribs.org/index.php?topic=33628.0

The keyword to search for seems to be 'copyfromdisk':
http://forums.contribs.org/index.php?action=search2&search=copyfromdisk