The ctquiet utility allows an administrator to quiet the server from a script. An interactive option is available in the ctadmn utility.
Operational Model:
Usage:
ctquiet [-c] [-f] [-i] [-m] {-p password|-a authfile} [-r] [-s server] [-t timeout] [-u] [-x] [-w]
Parameters:
Note: The -c option requires ALL client utilities, replication readers, and servers to be installed from FairCom DB V11.3 or later. It is not compatible as a drop-in to current running environments.
Support for Incremental Backup Restore Points
Several changes have been made to ctquiet to support restore points necessary to carry out an incremental backup strategy:
Authentication File
This utility supports the use of an encrypted password file. Encrypted password files keep user IDs and passwords from plain view when the utility is used within a script file. They are created with the ctcmdset utility. The plain text form of the file should be:
; User Id
USERID ADMIN
; User Password
PASSWD <pass>
Use the -1 option to specify the name of the encrypted file. Use the -a option to specify the name of the encrypted file.
Full Consistency
Note: This utility provides a -f option, which enables full consistency (also known as a "clean quiesce") in which files are flushed to disk from cache. When this option is used, the system does not require any files to be rebuilt or recovery from transaction logs to occur.
The default is the -f option is off, which results in "crash consistency" (also known as a "dirty quiesce"). The default means that transaction logs are required and, if present, the transaction logs are used to get back into a clean state once recovery completes.
If files are NOT under transaction control, the -f option is strongly recommended, otherwise you will have to do a rebuild to get the files back to a clean state.
Physical Copy of Files
A quiesced state allows a physical copy of files to be taken that can then be restored at a later time. For systems that provide hardware-based snapshot features, this allows extremely fast system backups to take place while maintaining full data integrity.
The -r option creates an incremental backup restore point. After the ctquiet call succeeds, this new restore point and all server transaction logs can be copied to a backup area and used for an incremental recovery.
Timeout
The -f and -r options require that no transactions are active for the quiet to complete. The quiet operation defaults to waiting 60 seconds for the outstanding transaction to complete before aborting these transactions. Operations by other users and connections wait during this time.
The -t and -x options modify the timeout behavior:
Example 1:
You want to create a server backup for your application that is not using transaction logging on all the files you want to backup. Only allow 10 seconds before aborting outstanding transactions.
ctquiet -f -t 10 -s FAIRCOMS -p <admin password>
Make your backup and then end the quiet:
ctquiet -u -s FAIRCOMS -p <admin password>
Example 2:
You want to create a fast server backup, and all your files are using transaction logging. Your backup will need to go through recovery before being used.
ctquiet -s FAIRCOMS -p <admin password>
Make your backup and then end the quiet:
ctquiet -u -s FAIRCOMS -p <admin password>
Example 3:
You want to create a restore point for an incremental backup and only allow a brief (1 second) delay. You don't want ctquiet to abort any long running transactions.
ctquiet -r -t 1 -x -s FAIRCOMS -p <admin password>
Notes