In general the queue file processing on secondary servers happen automatically as soon as queue files are created and delivered from the primary server. But in cases where the secondary server is brought up later, like after a system crash, the earlier queue files are not available for processing. In such cases the most important queue files are the ones which are used to create users. They should be generated separately on primary server and then brought to secondary server for processing. Vaibhav has created a couple of scritps to get this task done.
- gen_qfile.pl
- slave_qfiles.plÂ
Â
The following steps should be followed to get the user accounts created on secondary servers:
- Execute qfilegen.pl on primary server as user "merce".
perl qfilegen.pl <name of the dest directory>
The queue files will be created in the dest directory.
- Make a tar of the dest directory.
- Copy this tar to the secondary server.\
- Untar these queue files into /opt/merce/update/pending as user "merce".
- Monitor /var/adm/log/mail/local3.log for any error message while queue files are getting processed.
- Check whether processed queue files are getting stored into the directory /opt/merce/update/done.
- Make sure that no queue files have gone to the directory /opt/merce/update/bad.