06.11.2014 Views

HP Archive Backup System for OpenVMS Guide to Operations

HP Archive Backup System for OpenVMS Guide to Operations

HP Archive Backup System for OpenVMS Guide to Operations

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

11.4 Coordina<strong>to</strong>r<br />

Architecture<br />

11.4 Coordina<strong>to</strong>r<br />

The coordina<strong>to</strong>r process is created when a SAVE or RESTORE request is scheduled <strong>to</strong> run. It<br />

starts out as a single process in a batch or scheduler job executing ABS$SYSTEM:ABS$COOR-<br />

DINATOR.COM. This process prepares the drive and media <strong>for</strong> the individual backup agent <strong>to</strong><br />

move the data. Once the media is ready <strong>to</strong> be used the coordina<strong>to</strong>r spawns a subprocess using a<br />

Pseudo Terminal device <strong>to</strong> communicate with the subprocess.<br />

The coordina<strong>to</strong>r then “feeds” DCL commands <strong>to</strong> the subprocess which finally contains the command<br />

<strong>to</strong> execute the backup agent (e.g. <strong>OpenVMS</strong> BACKUP).<br />

All output by the subprocess is received by the coordina<strong>to</strong>r and checked against entries in the<br />

template files in ABS$TEMPLATES. Each backup agent has its own set of template files <strong>for</strong> the<br />

different type of save or res<strong>to</strong>re operations. Even though these files can be changed it is not recommended.<br />

The original files have been checksummed <strong>for</strong> each release and any modification<br />

will be noted in the ABS save or res<strong>to</strong>re logfile.<br />

11.4.1 Coordina<strong>to</strong>r Cleanup<br />

The coordina<strong>to</strong>r starts a separate subprocess <strong>for</strong> each selection. If the SEQUENCE OPTION of<br />

the save or res<strong>to</strong>re is set <strong>to</strong> SEQUENTIAL the coordina<strong>to</strong>r will not start the next subprocess<br />

be<strong>for</strong>e the current one has completed. With SEQUENCE _OPTION OVERLAPPED the next<br />

subprocess will be started as soon as the backup agent in the current subprocess has reached a<br />

point where the archive (i.e. drive) is no longer needed. This is defined internally <strong>for</strong> each<br />

backup agent. For example <strong>OpenVMS</strong> BACKUP releases the tape drive being used while it executes<br />

the recording pass when /RECORD was specified.<br />

The coordina<strong>to</strong>r cleanup process (“ABS$COORD_CLEAN”) is responsible <strong>to</strong> cleanup after a<br />

failed save or res<strong>to</strong>re request. It needs <strong>to</strong> run all the time <strong>to</strong> per<strong>for</strong>m this task.<br />

Each save or res<strong>to</strong>re request enters a cleanup record in<strong>to</strong> file ABS$SYS-<br />

TEM:COORD_CLEANUP.DAT. The record contains:<br />

– the PID of the process executing the save or res<strong>to</strong>re<br />

– the archive being used<br />

The cleanup process reads this file every minute. If it finds an entry <strong>for</strong> which the PID field<br />

refers <strong>to</strong> a non-existent process it releases the volume set used in the archive so it can be used<br />

again.<br />

Architecture 11–7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!