This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jun 9, 2014, 4:15 PM
5 Posts

compact -replica -restart scheduled program executes twice

  • Category: Domino Server
  • Platform: AIX
  • Release: 9.0.1
  • Role: Administrator
  • Tags: compact
  • Replies: 4

I have a scheduled program document to run compact once a week at 7:15AM Sunday on the databases listed in weekly_compact.ind

COMPACT weekly_compact.ind -REPLICA -RESTART
06/08/2014 07:15:02   Running Program document for 'COMPACT weekly_compact.ind -REPLICA -RESTART'

This runs correctly and the server restarts as expected, but the program document is executed again on restart

06/08/2014 07:52:30   Running Program document for 'COMPACT weekly_compact.ind -REPLICA -RESTART'

This second invocation also restarts the server and on that restart we get a few errors like this

06/08/2014 08:12:52   Compact -REPLICA, resync reading .ORIG file /home/notes/data/events4.ORIG failed, DB: /home/notes/data/events4.nsf
: File does not exist

Thankfully the server seems to settle down at this point.  The scheduled program is not executed a third time and the server seems fine.

Jun 9, 2014, 6:53 PM
122 Posts
Re: compact -replica -restart scheduled program executes twice
Hello Robert!

In theory, the option -RESTART is applied just for a specific database, not for a list of them.

On Domino Administrator Help the description of "-RESTART" option is:

Creates a new replica while compacting. If automatic renaming of replica does not succeed, restarts the server and completes the renaming of the replica after server startup.


Probably, the first database on the file weekly_compact.ind is events.nsf
Try to remove the option "-RESTART" and create a new one program document to restart the server a few hours later.

Best Regards!

Rodrigo

Jun 9, 2014, 7:42 PM
5 Posts
-restart working correctly

A Lotus Open Mic presentation on compact -replica makes clear the -restart option can be used with multiple databases in an *.ind file

http://www-01.ibm.com/support/docview.wss?uid=swg27039379

Entries in log.nsf indicate the ind file and -restart are working. e.g.

06/08/2014 07:15:33   Compacting /home/notes/data/ddm.nsf (Domino Domain Monitor (8)),  weekly_compact.ind -REPLICA -RESTART
> drop ddm.nsf
06/08/2014 07:15:40   Compact -REPLICA failure, rename of dirty NSF file, DB: /home/notes/data/ddm.nsf
06/08/2014 07:15:40   Error compacting /home/notes/data/ddm.nsf,  weekly_compact.ind -REPLICA -RESTART: Database is currently in use by you or another user
06/08/2014 07:15:40   Database compactor deferring  'restart server' for  /home/notes/data/ddm.nsf,   weekly_compact.ind -REPLICA -RESTART

Jun 9, 2014, 8:02 PM
46 Posts
is the server shutting down cleanly ?
It sounds like the restart option is causing the scheduler to think it did not complete.  When the server starts back up it sees that the program document that had to be kicked off never was processed and it runs it again.
This can happen if the server does not shut down cleanly.  For example if you were to set a program doc to kick off at 8 and let the program doc kick off and then run a -nsd -kill when the server is restarted it will end up kicking off the program document again.  
I would check  to see if the server is coming down cleanly or not during the restart.  Do you see a nsd being generated during that time?  


Jun 10, 2014, 3:31 PM
5 Posts
Shutdown looks good

The first shutdown looks clean.  console.log messages indicate clean shutdown and there is no nsd generated.

[4194496:00002-00001] 06/08/2014 07:51:43   Database compactor issued a 'restart server',   weekly_compact.ind -REPLICA -RESTART
[4194496:00002-00001] 06/08/2014 07:51:43   Database compactor process shutdown
[4915542:00002-00001] 06/08/2014 07:51:47   Router: Shutdown is in progress
[5112126:00002-00001] 06/08/2014 07:51:47   Cluster Replicator shutdown
[5832984:00002-00001] 06/08/2014 07:51:47   WEB(1): Shutdown
[6095010:00002-00001] 06/08/2014 07:51:48   Database compactor process shutdown
[5767450:00002-00001] 06/08/2014 07:51:48   Cluster Database Directory Terminating
[5767450:00002-00001] 06/08/2014 07:51:48   Cluster Database Directory shutdown
[5636528:00002-00001] 06/08/2014 07:51:48   AMgr: Executive '3' shutting down. Process id '5636528'
[3735992:00002-00001] 06/08/2014 07:51:48   AMgr: Executive '4' shutting down. Process id '3735992'
[6160608:00002-00001] 06/08/2014 07:51:48   AMgr: Executive '1' shutting down. Process id '6160608'
[6488228:00002-00001] 06/08/2014 07:51:48   AMgr: Executive '2' shutting down. Process id '6488228'
[5832984:00006-00515] 06/08/2014 07:51:48   WEB(2): Stopping
[5308922:00002-00001] 06/08/2014 07:51:48   Database Replicator shutdown
[4587744:00002-00001] 06/08/2014 07:51:48   Agent Manager shutdown complete
[5177390:00002-00001] 06/08/2014 07:51:49   Administration Process shutdown
[4980906:00002-00001] 06/08/2014 07:51:49   XSP Command Manager terminated
[1114416:00002-00001] 06/08/2014 07:51:51   Database Replicator shutdown
[4980906:00002-00001] 06/08/2014 07:51:51   HTTP Server: Shutdown
[6422556:00002-00001] 06/08/2014 07:51:51   Index update process shutdown
[4325782:00002-00001] 06/08/2014 07:51:52   Event Monitor shutdown
[4915542:00002-00001] 06/08/2014 07:51:52   Router: Mail Router shutdown
[4850154:00002-00001] 06/08/2014 07:51:52   Index update process shutdown
[3932664:00002-00001] 06/08/2014 07:51:53   Index update process shutdown
[4391170:00002-00001] 06/08/2014 07:51:53   Database Replicator shutdown
[3145788:00002-00001] 06/08/2014 07:52:03   Server shutdown complete. Server will restart in 10 seconds...
 


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal