weekly_sync_shared_replica.sh #13

  • //
  • guest/
  • perforce_software/
  • sdp/
  • main/
  • Server/
  • Unix/
  • p4/
  • common/
  • bin/
  • weekly_sync_shared_replica.sh
  • Commits
# Change User Description Committed
#13 15691 Russell C. Jackson (Rusty) Changed to always create a checkpoints.rep directory on the logs volume so that moving
the pre-rotated journal back to be the live journal will be a move operation when doing
a failover.

Added a SHAREDDATA setting to p4_vars so that I could check for that in sync_replica and
weekly_sync replica. That allowed me to delete weekly_sync_shared_replica and sync_shared_replica.

Added cleanup of checkpoints.rep to sync_replica and weekly_sync_replica since that is
where the replica journals should always be located now.

Removed cleanup of checkpoints.rep from daily and weekly backup scripts since those
should not be handling replica file clean up.

The SDP is now designed to be used with the journalcopy and p4 pull -L commands rather
than the old style replication using just pull. Failover requires that you move the
pre-rotated journal that is in the checkpoints.rep directory back to
/p4/${SDP_INSTANCE}/logs/journal now along with updating the server.id file.
#12 15609 C. Thomas Tyler Pushing SDP 2015.1.15607 (2015/09/02).
#11 13908 C. Thomas Tyler Pushing SDP 2015.1.13906.
#10 13651 Russell C. Jackson (Rusty) Added line to remove save db.*
#9 12171 Russell C. Jackson (Rusty) Merge in changes to remove the need for p4master_run.
#8 12070 Russell C. Jackson (Rusty) Corrected test on JOURNALNUM.
#7 12069 Russell C. Jackson (Rusty) Redirect logings to dev/null.
#6 11897 Russell C. Jackson (Rusty) Moved log rotation to after we get the journal number.
#5 11856 Russell C. Jackson (Rusty) Changed sync_replica and weekly_sync_replica to match the shared versions with the
 the addition of the rsync command.

 Cleaned up text and used die where appropriate in the shared files.
#4 11707 Robert Cowham Refactored sending of mail to a common function.
Make the setting of "MAILFROM" work for Ubuntu (GNU Mailutils) as well as CentOS
#3 11690 Russell C. Jackson (Rusty) Change file format to Unix.
#2 11570 Russell C. Jackson (Rusty) Brought in changes from Mark Foundry to add -S $MAILFROM to mail commands.

 Changed sync_replica.sh and weekly_sync_replica.sh to use $LOGFILE for consistency.

 Added mail command to both files as well.
#1 11524 Russell C. Jackson (Rusty) Released updated version of the SDP from Dev.
//guest/perforce_software/sdp/dev/Server/Unix/p4/common/bin/weekly_sync_shared_replica.sh
#3 11523 Russell C. Jackson (Rusty) Modified P4BROKERPORTNUM to just be the port number and added P4BROKERPORT to instance_vars
 to be consistent with P4PORT. Also makes it easier to modify p4review.py to use P4BROKERPORT
 rather than P4PORT for the subject line when needed.
#2 11511 Russell C. Jackson (Rusty) Correct log name.
#1 11509 Russell C. Jackson (Rusty) Added sync_replica.log to backup function log rotations, and added rm on existing
 gzipped logs with the same name in order to keep the script from hanging waiting
 for a response to overwrite.

 Added sync_shared_replica.sh and weekly_sync_shared_replica.sh to support replicas
with shared depotdata storage. No rsync is necessary. The logs volume must not be
a shared volume with these scripts though.