Databases
cancel
Showing results for 
Search instead for 
Did you mean: 

Lotus Notes server shutdown (MC/SG)

SOLVED
Go to solution
Jean Mesquida_1
Frequent Advisor

Lotus Notes server shutdown (MC/SG)

Hi all,

I have some trouble trying to shutdown the server process of Lotus Notes 5.0.2c on my HP-UX 11.00 (L1000) platform : the command sent (su - notes -c "server -q") remains looping waiting for the "server" initial process to stop.

My config is MC/SG with two nodes and one package for Notes. When I use the IP address of my LAN card (the Notes server is known in /etc/hosts with the IP address of one of the nodes), everything works fine on either node, even shuting down the server process with cmhaltpkg. When I modify /etc/hosts and give to the Notes server the IP address of the package, the server process starts OK but cannot stop, remaining in one "infinite" loop.

I don't think it is a MC/SG problem but a conflict somewhere in the Notes Name Resolution...

Any idea would be of great help !

Cheers.
3 REPLIES
Kalwies, Artur
Occasional Contributor

Re: Lotus Notes server shutdown (MC/SG)

We have basically the same configuration.
We use

nohup $BDIR/server -q>${LOG} 2>&1 &

for shutdown.

By the way, do you have tuning experience with Lotus Notes R5 (5.0.4) and HP-UX 11.00 (32 or 64 Bit).
We have to migrate our 4.6.3 server.

Please mail to matthias.mann@basf-ag.de

Stefan Farrelly
Honored Contributor
Solution

Re: Lotus Notes server shutdown (MC/SG)


We ocassionally experienced problems with notes shutting down so we now do;

server -q

and then run another script several minutes later;

kill -9 $(ps -fu notes|egrep -v "nsstop|ksh"|awk '$1 != "UID" {print $2}')
_ret=$?
if [ $_ret -eq 0 ]; then
echo "Notes not shutdown..."
fi
for key in $(ipcs -s |grep " notes " |awk '{print $2}')
do
ipcrm -s $key
[[ $? -ne 0 ]] && echo "Semaphore key $key not removed"
done

for key in $(ipcs -m |grep " notes " |awk '{print $2}')
do
ipcrm -m $key
[[ $? -ne 0 ]] && echo "Semaphore key $key not removed"
done

This works every time and cleanups nicely as well !


Im from Palmerston North, New Zealand, but somehow ended up in London...
Jean Mesquida_1
Frequent Advisor

Re: Lotus Notes server shutdown (MC/SG)

Thanks for your help !
After modifying some hostname matching (it seems that name resolution is made by /etc/hosts, DNS, WINS and also Lotus Notes) as I failed doing it on some Domino servers, everything works fine...
Thanks also for the script you post : it may be useful !
By the way, when I had the problems shutting down Notes, I was unable to "kill -9" the "server" process and also unable to "ipcrm" the Notes shared memory...