Preliminary information

  • The backup scripts are stored in /u3/scripts;

  • The log files for these scripts are stored in /u3/scripts/logs; These logs are rotated on dafnenfs from logrotate (check last point);

  • The script u2_backup.sh is responsible to create a backup of /u2 in /u3/u2_backup and launch nfs_rsync.sh script to rsync data to nascoda1. The u2_backup.sh script is launched by crontab on host dafnenfs every day (see Table 2 for details). The script sends an e-mail to andrea.michelotti@lnf.infn.it francesco.galletti@lnf.infn.it to notify the exit status.
  • The script nfs_rsync.sh is responsible to rsync the data from the host where it is launched to nascoda1. It sends an e-mail to andrea.michelotti@lnf.infn.it francesco.galletti@lnf.infn.it to notify the backup exit status. It is launched by crontab on host danteweb and vldafneafp every day (see Table 2 for details);
  • The host dafnenfs share /u3/scripts; danteweb and vldafneafp mount that folder via NFS on boot (folder present in /etc/fstab);
  • The host dafnenfs has a custom configuration for logrotate present in /etc/logrotate.d/nfs_rsync to rotate log files generated by these scripts. It will rotate all log files every day, keeping them compressed in /u3/scripts/logs/old folder for 5 days.

Git repository for backup scripts

Link / Path

Note

link: https://baltig.infn.it/lnf-da-control/dcs-backup-scripts

branch : main

Script in repository:

  • nfs_rsync.sh
  • u2_backup.sh

Data

Control system data was saved in a Sun Storagetek 2550 Disk Array (LAT room) connected with two fiber optic paths to beatrix and virgil, the old production cluster. Now it's all stored and exported to us from the IT department of LNF; These are the folders in which data is organized: 

HostFolderBackup Folder (nascoda1/2)Description
dafnenfs/etcserver_data/dafnenfs/etcConfiguration files
dafnenfs/data/disklessdisklessFilesystem for VMIC diskless clients
dafnenfs/data/export/exec/Solaris_9_sparc.all/usrforce_usrUser Filesystem for Force diskless clients
dafnenfs/data/export/rootforce_rootRoot Filesystem for Force diskless clients
dafnenfs/data/export/swapforce_swapSWAP for Force diskless clients
dafnenfs/data/u1u1
dafnenfs/data/u2u2Control system, home folders (dafne, vmic e VMs) and other files
dafnenfs/data/u3u3LVTemp, /data/u2 backup and other sensible files
dafnenfs/siddhartasiddhartaData written from Siddharta experiment and from DAFNE
dafnenfs/data/slmonitorslmonitorFolder for A. Stella

danteweb/etcserver_data/danteweb/etcConfiguration files
danteweb/optserver_data/danteweb/optService scripts and data, including a crontab snapshot
danteweb/var/lib/mysqlserver_data/danteweb/mysqlDatabase files
danteweb/var/wwwserver_data/danteweb/var/wwwWeb files

vldafneafp/etcserver_data/vldafneafp/etcConfiguration files
vldafneafp/srvserver_data/vldafneafp/srvAPPLE DEVIL's FILESYSTEM data shared via AFP

Table 1 - data folders

Backup planning

Backup crontab are planned as Table 2 reports:

ServerBackup frequencyTimeDescription
dafnenfsdaily01:30Create a backup of u2 in u3/u2_backup and then launch rsync script
dantewebdaily01:10Launch rsync script
vldafneafpdaily02:01Launch rsync script

Table 2 - Backup planning

Snapshot and replica

Backups are planned on NAS nascoda1.lnf.infn.it (LAT room) and rsynced on NAS nasda.lnf.infn.it (Control Lab, Building 2, Room 117) with following planning:

Source NASDestination NASOperationFrequencyTimeDescription
nascoda1localData volume snapshotSmart Versioning-Hourly snapshots: 24
Daily snapshots: 7
Weekly snapshots: 5
Monthly snapshots: 12
nascoda1nasdaData volume syncDaily04:00rsync data from nascoda1 to nasda/nascoda folder

Table 3 - Snapshot and replica planning

Recover data from backup

Read this documentation page.

Backup on disaster recovery USB disk

Disaster recovery diskBackup notes

To backup DCS from nasda to the disaster recovery disk, this is the procedure to be executed:

  1. Connect the disk to the front usb port of nasda and wait for the blue usb led to become steady on;
  2. Keep pressed the "Copy" button in front of nasda for about 3 seconds, then release the button and check that the blue usb led begins to blink and a single beep coming from nasda. When the backup is finished, the blue usb led will be steady on;
  3. To safely disconnect the disk, keep pressed the "Copy" button for about 6 seconds, until the blue usb led begins to blink and two beeps come from nasda; then release the button and wait for the blue usb led to turn off. Then, disconnect the disk;
  4. Write the date and the name of who made the backup on the "backup notes" present inside the disk box and keep the disk in a safe place;

There are two videos showing how to start the backup and how to disconnect the disk:

01-inserimento-disco-e-creazione-backup.mp402-rimozione-disco.mp4

Error rendering macro 'excerpt-include'

User 'null' does not have permission to view the page.

  • No labels