Page 1 of 1

Scalix services won't restart after restore using rsync

Posted: Thu Sep 27, 2007 4:24 pm
by katlas
Why doesn't it restart?

Posted: Thu Sep 27, 2007 11:03 pm
by jaime.pinto
How did you use the rsync command (the exact syntax)?
Did you stop all the scalix services first, including the database?
Did you rename the "compromised" /var/opt/scalix first?

Posted: Tue Nov 06, 2007 3:48 pm
by katlas
jaime.pinto wrote:How did you use the rsync command (the exact syntax)?
Did you stop all the scalix services first, including the database?
Did you rename the "compromised" /var/opt/scalix first?


Sorry to take so long to get back. Had to wait on the technician.

Here is what I
did....
This is the
backup....
service scalix
stop
service
scalix-postgres
stop
service
scalix-tomcat stop

rm
-Rf /home/scalixbackup
mkdir /home/scalixbackup
rsync -av
--delete /var/opt/scalix /home/scalixbackup

# restart scalix
services
service
scalix-tomcat
start
service
scalix-postgress
start
service scalix
start

exit 0

and this is the
restore...
#!/bin/sh
## Backup Scalix
for Netstream


service scalix
stop
service
scalix-postgres
stop
service
scalix-tomcat stop

rm
-Rf /var/opt/scalix.old
mv /var/opt/scalix /var/opt/scalix.old
rsync -av
--delete /home/scalixbackup /var/opt/scalix

# restart scalix
services
service
scalix-tomcat
start
service
scalix-postgress
start
service scalix
start





Scalix will not restart...

Any ideas?

Posted: Tue Nov 06, 2007 9:29 pm
by jaime.pinto
In theory it should work. I couldn't see anything wrong on your sequence of events. But in practice something is bothering one of more of the startup daemons.

Give the command "omstat -s and omstat -a" and verify what is running and what is not, if any. You may need to stop everything again and reinstall scalix over the restored /var/opt/scalix, in order to fix what is missing.

Posted: Wed Nov 07, 2007 3:53 pm
by kanderson
Does it spin an error when you try to start it with omrc?

Or is there anything in /var/opt/scalix/??/s/logs/fatal?

My first guess here will be permissions.

Kev.