The update operation works as follows when you execute it on a client that uses a replica server:
If a particular replica server is executing a mkreplica command, a request to perform a
replica sync on that server might fail. Be careful to run
mkreplica at a time when it is unlikely that any user or script is invoking
replica sync.
If a replica sync command does fail for this reason, first make sure that no
mkreplica command is executing, then invoke
replica sync again.
Similarly, if a replica sync command is already in progress, in rare situations a client command sent to the same replica server might not complete correctly, causing an error message to be displayed. The change is made correctly on the master server in such situations. The user who issued the command can perform an
update command to have the change reflected in the workspace.
Use the replica archive command to remove unused container files from the depot’s
storage directory on a replica server.
The replica archive command activates the
server_preop_trig trigger with a
replica_archive command. The command lists each element for which the storage container was removed. For example:
To avoid this situation, create a “dummy” workspace at Site B for each heavily used stream, and create a script that updates all these workspaces. Then, set up a cron job (UNIX/Linux) or a Scheduled Task (Windows) to run the script on a regular basis. Ideally, the script would run at least once a day — before the start of Site B’s work day, but after the end of the work day of Site A (and any other sites). For example, this
crontab line runs script
update_replica_workspaces at 4:30AM every day:
Note: If your installation makes use of hardware compression, enabling data compression on the AccuRev replica server might decrease performance.