Vid omstart av databasen kan i sällsynta fall databasvolymernas räknare komma i otakt. Syns i loggfil som finns i /var/log
Script som används finns under /opt/SystemQ/tools/copy_volume_generation.sh
The generation numbers in the volumes must be identical to start the server. The exception is that the log volume generation number may be different (one less) if the server was in on-line backup mode before it was terminated.
If the volume generation number differs in some volume files and the files were not copied from a backup then it is likely the system killed the server process while it was changing the volume generation numbers.
You may use dbvoldump to verify this information:
/opt/eloquence/8.2/bin/dbvoldump -vp | fgrep generation
How to use it:
1. Save this on your server and unpack the zip archive. On Linux you use the unzip command for this.
unzip -x copy-volume-generation.zip
2. Now run the script to copy the volume generation number from the first volume file to each volume file that has a different volume id. You need to run this script as root or the database owner to access the volume files.
# ./copy_volume_generation.sh db.vol db02.vol ...
Afterwards please use dbvoldump to verify the generation numbers are now consistent and then start the server.
PS: This script may only be used in the situation described above.
Improper use may cause volume corruption. Please send us a notice anyway each time you use this script so are aware of any possible problems.
Hope this helps
Michael
|