Page 1 of 1

Data Recovery

Posted: Sun Sep 10, 2006 8:38 pm
by MGonz
Hello.

The other day one of the drives of the server running linux became corrupt. Luckly it was not the one containing the /var/ directory. My question is, what all needs to be done to get the scalix server back up and running with the mail store of the previous system?

Thanks ahead

Posted: Mon Sep 11, 2006 8:21 am
by ScalixSupport
Hi,

You need to move /var/opt/scalix over to the new machine. Number one tip is to make the new machine have the same fully qualified domain name. Then run the installer and chose to use the existing message store when prompted by the installer. For more details please take a look at the documentation provided with the tar file.

Cheers,
Yuri

Posted: Tue Sep 12, 2006 4:37 am
by joaster
Hi,

I just went to this forum to ask a similar question about restoring after harddisk failure.

Currently I am backing up the /var/opt/scalix directory once a week (scalix down). In case of a harddisk failure I will want to take the image of the server (made during installation but using sac thereafter) and restore /var/opt/scalix. Is this possible using the image instead of reinstalling the OS (and how)?

Other queations are:
1. Is it possible to backup /var/opt/scalix without shutting down scalix?
2. Is it neccessary to backup /etc/opt/scalix/ and /opt/scali*

Regards,
Joost.

Posted: Tue Sep 12, 2006 6:37 pm
by ScalixSupport
MGonz,

I think you should run:

omcheck -i -s > /tmp/omcheck ; sh /tmp/omcheck
omcheck -d -s > /tmp/omcheck ; sh /tmp/omcheck

This will set permissions to their proper values.

joaster,

I don't understand this question:

In case of a harddisk failure I will want to take the image of the server (made during installation but using sac thereafter) and restore /var/opt/scalix. Is this possible using the image instead of reinstalling the OS (and how)?


There as been much disucssed on this forum about backup and restore strategies. You will find much useful information here:

http://www.scalix.com/community/viewtopic.php?t=1922

The installation guide discusses installing /var/opt/scalix on an LVM partition. If you've done that then you can backup scalix while it is live. See the sxbackup script in the admin_resource_kit of your install medium.

If you've made modifications to any of the files in the following directories then you will want backups of those:

/etc/opt/scalix/webmail/swa.properties

/etc/opt/scalix/res/config/res.properties

/etc/opt/scalix/res/config/krblogin.conf

/etc/opt/scalix/caa/scalix.res/config/*

/etc/opt/scalix/caa/config/*

The rest of the files are binaries etc that likely won't change much so how much you back them up is up to you. They are also easily replaced by a re-installation.

Regards,
Don

Posted: Wed Sep 13, 2006 7:56 pm
by MGonz
Ok, I've been able to access the mailbox now and send out email. The only problem is now we can't access the Scalix Administrative Console anymore with our old admin accounts and passwords. I've even tryed creating an administrative user, but with no luck.

The problem is that when we type in the user name and password, it says that we are either typing the incorrect username and/or password. Any ideas on how to fix this?

Thanks ahead.

Posted: Wed Sep 13, 2006 9:27 pm
by ScalixSupport
ScalixSupport wrote:Hi,

You need to move /var/opt/scalix over to the new machine. Number one tip is to make the new machine have the same fully qualified domain name. Then run the installer and chose to use the existing message store when prompted by the installer. For more details please take a look at the documentation provided with the tar file.



Did you follow Yuri's number one tip? If you did not you will need to use sxmodfqdn. Please see its man page and the admin guide.

Once you've run sxmodfqdn there are still a number of files that need to be edited. The easiest way is to uninstall/reinstall SAC and RES.

Regards,
Don

Posted: Thu Sep 14, 2006 1:07 am
by MGonz
Great. Its all up and working now. Reinstalling SAC fixed it all up. Thanks again guys. You are the greatest. :D