Backup and Recovery

Backup

Backups of PerfSonar data is performed by the gracc archive service hosted on the GRACC head node and the gracc backup scripts. Every message sent to the message bus by the PerfSonar tools is duplicated, one copy going to the archiver and the other to the PerfSonar collectors.

Every day, the backup tar.gz file is copied to FNAL where it is eventually put on tape.

The archiver runs as a systemd service. The backups run as systemd timers.

Recovery

This procedure has been tested from the GRACC frontend node (gracc.opensciencegrid.org). Though, this procedure could be performed anywhere with the correct software and configuration installed. There is nothing special about the gracc.opensciencegrid.org IP or hostname for this procedure.

Software

  • GRACC replayer from the gracc archive package.
  • globus-url-copy and/or uberftp. It may be useful to use uberftp to ls the directory to pick correct file. Though, the naming convention of the backup files may make the ls unnecessary.

Configuration

  • Certificate that FNAL tape trusts with access to the gracc backup directory gsiftp://fndca1.fnal.gov/pnfs/fs/usr/fermigrid/gratia/gracc-ps-raw/
  • User credentials to the OSG message bus

Steps

  1. ls the backup directory:

     $ sudo -u gracc X509_USER_CERT=/etc/grid-security/backup-cert/gracc.opensciencegrid.org-cert.pem X509_USER_KEY=/etc/grid-security/backup-cert/gracc.opensciencegrid.org-key.pem uberftp -ls gsiftp://fndca1.fnal.gov/pnfs/fs/usr/fermigrid/gratia/gracc-ps-raw/
    

    Notice that the naming convention of the file is <hostname>-<year>-<month>-<day>.tar.gz.

  2. Copy the file(s) somewhere using globus-url-copy:

     $ sudo -u gracc X509_USER_CERT=/etc/grid-security/backup-cert/gracc.opensciencegrid.org-cert.pem X509_USER_KEY=/etc/grid-security/backup-cert/gracc.opensciencegrid.org-key.pem globus-url-copy gsiftp://fndca1.fnal.gov/pnfs/fs/usr/fermigrid/gratia/gracc-ps-raw/gracc-hcc-gracc-fe1.unl.edu-2019-02-08.tar.gz file:///tmp/
    
  3. Install gracc-archive in order to use the unarchiver:

     $ pip install git+https://github.com/opensciencegrid/gracc-archive
    
  4. Run the unarchiver. You will need the connection username, password parameters.

     $ graccunarchiver -p "amqps://username:[email protected]/osg-nma” amq.topic /tmp/gracc-hcc-gracc-fe1.unl.edu-2019-02-08.tar.gz 
    

    The unarchiver will produce status updates every 1000 records sent to the message bus.

Updated: