Koozali.org: home of the SME Server

Help restoring a SME, old discs are OK!

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Help restoring a SME, old discs are OK!
« on: January 13, 2008, 07:21:09 PM »
After a power outage my SME no longer boots, kernel panic right at the beginning of the start up process:

Code: [Select]
Kernel Panic - Not syncing: Attempeted to kill init!
I searched up and down the forums and the bugtracker without luck  :-(
This serves a small school with 10 teachers and the rest are students.
I couldn't stay off without the network running, so I removed the disks and installed the latest 7.3 version on a new disc.
I had raid1 set up and I placed the discs on another system and I can access all the files from the old system.
So here are my questions/problems:
1- Can I restore from what I have? What would be the easiest way of doing so?
2- One problem I noticed is the machines not logging on the domain, the thrust relationship seems broken. Is there a way for me not to have to rejoin the clients to the domain? This would cause me to recreate and move profiles on the windows machines, not easy on 200 stations, some of the errors I get:
Code: [Select]
Jan  9 15:46:18 sme7 smbd[20226]:   _net_auth2: failed to get machine password for account EEDUCACAO01$: NT_STATUS_ACCESS_DENIED
Jan  9 15:46:30 sme7 smbd[20409]: [2008/01/09 15:46:30, 0] rpc_server/srv_netlog_nt.c:_net_auth_2(478)
Code: [Select]
Jan  9 15:46:30 sme7 smbd[20409]:   _net_auth2: creds_server_check failed. Rejecting auth request from client A77123 machine account A77123$
3- Could something like this help? http://wiki.contribs.org/Recovering_SME_Server_with_lvm_drives

Edit: Added some of the problems I encoutered.

Thanks a lot,
« Last Edit: January 14, 2008, 02:46:20 AM by stuntshell »

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Re: Help restoring a SME, old discs are OK!
« Reply #1 on: January 14, 2008, 11:22:31 AM »
Hi - this could be difficult. In the past I replaced a new installation's Samba SID with the one from the old crashed system.
If you run
#net getlocalsid
on the new 7.3 installation, you can save the current SID. It will be in this form:
S-1-5-21-<string_of_10_numbers>-<string_of_10_numbers>-<string_of_10_numbers>
Perhaps someone can help on how to get the server SID from your crashed system?

You need to replace the new SID with the old  one.
Also this file:
# /etc/samba/secrets.tdb
needs to be replaced with the old one - **Always backup any files that you are going to replace**

As far as I recall, after doing this I could add the XP workstations into the new network and then log in.
On another occasion I was unable to retrieve the old SID - stupidly I re-installed the old drive without 1st checking if I still had a backup of the SID. To my disgust I only had the secrets file... I then had to join all workstations to the new network, trash all profiles (which have a RID derived from the server SID, i think) and start over.
Hope this helps.


« Last Edit: January 14, 2008, 11:26:17 AM by ardugh »
SME Server is a fantastic product - thank you!

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: Help restoring a SME, old discs are OK!
« Reply #2 on: January 14, 2008, 02:28:41 PM »
You might be able to fix your old disks by "upgrading" using the new 7.3 iso - or even using an older iso, depending on what version you were running before.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Help restoring a SME, old discs are OK!
« Reply #3 on: January 14, 2008, 02:30:14 PM »
Thanks for the reply ardugh!
Any input is much appreciated!

It's good to know about the SID, I'll google to see if I can retrieve from the old disks.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Re: Help restoring a SME, old discs are OK!
« Reply #4 on: January 14, 2008, 02:32:10 PM »
You might be able to fix your old disks by "upgrading" using the new 7.3 iso - or even using an older iso, depending on what version you were running before.

I had 7.1 installed and I did try that, but at the moment that it searches for previous SME installations it tells me that it did not find any, and asks me if I'm sure that I want to wipe all the disks :(