All, we had patches installed on a subset of our landscapes the other day, that required a planned reboot.
What happened is that out of the 12 landscapes that were rebooted, 10 had corrupted databases at startup, and we had to restore the last db backup.
I believe that if we could somehow run the stopSS.pl script as part of the /etc/init.d/processd script to gracefully shut down the Spectro Server processes, we could prevent the database corruption.
In our environment we created a wrapper script to stop/start/status the Spectro Server processes as the root user, and I may be able to leverage that, at least the commands that run the stopSS.pl script as the spectrum user from the root account. But I wonder if anyone has already worked on this, and has a solution that works for them?
Our script (for the stop option), looks like this:
stop () {
case "$myhost" in
*ocm*)
/bin/su - spectrum -c "/opt/ca/spectrum/src/tomcat/bin/stopTomcat.sh"
;;
*)
/bin/su - spectrum -c "/opt/ca/spectrum/src/bin/stopSS.pl"
;;
esac
/sbin/service processd stop
}
Basically it determines if the server is the One Click server or not, and runs the appropriate stop commands. I'm wondering if in the /etc/init.d/processd script I could add the:
/bin/su - spectrum -c "/opt/ca/spectrum/src/bin/stopSS.pl"
line, and gracefully shutdown the Spectro Server processes during a reboot, to prevent the db corruption.
Appreciate idea's or suggestions
Regards,
SteveT