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:
|
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:
Host | Folder |
---|
Page under construction (migrated from wiki but not yet translated)
Dati
I dati del sistema di controllo sono salvati all'interno del Disk Array Sun Storagetek 2550 installato in sala LAT e connesso con doppio path in fibra ottica verso ognuno dei due nodi del cluster di produzione, virgil e beatrix. I folder condivisi dal cluster e da salvare su backup sono i seguenti:
Logical Volume (Disk Array) | Mount Folder (Nodo Attivo del Cluster) | Backup Folder (nascoda1/2) | Descrizione | Description | |
---|---|---|---|---|---|
Server | Folder | Backup Folder (nascoda1/2) | Descrizione | ||
dafnenfs | /etc | server_data/dafnenfs/etc | Configuration files | ||
dafnenfs | /data/ | VGShared-LVDiskless | /diskless | diskless | Filesystem per le for VMIC diskless clients | VGShared-LVForceUsr
dafnenfs | /data/export/exec/Solaris_9_sparc.all/usr | force_usr | User Filesystem per le for Force diskless clients | ||
dafnenfs | /data/export/root | force_root | Root Filesystem per le for Force diskless clients | VGShared-LVForceSwap||
dafnenfs | /data/export/swap | force_swap | SWAP per le for Force diskless clients | ||
dafnenfs | /data/u1 | u1VGShared-LVU2 | |||
dafnenfs | /data/u2 | u2 | Sistema di controlloControl system, home folders (per dafne, vmic e VMs) ed altri fileand other files | ||
dafnenfs | /data | VGShared-LVU3 | /u3 | u3 | LVTemp, backup di /u2 ed altri file sensibili |
VGShared-LVMySQL | /var/lib/mysql | mysql | Database files su cluster (non usato) | ||
VGShared-LVApache | /var/www/html | apache | Web files su cluster (non usato) | ||
VGShared-LVSiddharta | /siddharta/dataFromSiddharta | siddharta/dataFromSiddharta | Dati prodotti da Siddharta necessari a Dafne | ||
VGShared-LVDafne | /siddharta/dataFromDafne | siddharta/dataFromDafne | Dati prodotti da Dafne necessari a Siddharta |
Configurazioni
Le configurazioni da salvare sono le seguenti:
/data/u2 backup and other sensible files | |||||||
dafnenfs | /siddharta | siddharta | Data written from Siddharta experiment and from DAFNE | ||||
dafnenfs | /data/slmonitor | slmonitor | Folder for A. Stella | ||||
danteweb | /etc | server_data/danteweb/etc | File di configurazione di Apache, MySQL, Memcached e tutto ciò che può servire a fare un rollbackConfiguration files | ||||
danteweb | /opt | server_data/danteweb/opt | Script di servizio e dati utili, compresa una snapshoot del crontab installatoService scripts and data, including a crontab snapshot | ||||
danteweb | /var/lib/wwwmysql | server_data/danteweb/var/wwwmysql | Database filesFile dei servizi web offerti da danteweb (devilmanager, WCMDATA, devilinfo, etc) | ||||
danteweb | /var/ | lib/mysqlwww | server_data/danteweb/var/ | lib/mysqlFile dei databases utilizzati dal controllo e dai servizi web | www | Web files | |
vldafneafp | beatrix/etc | server_data/ | beatrixvldafneafp/etc | File di configurazione dei servizi e del cluster | beatrix | Configuration files | |
vldafneafp | /srv | /opt/scriptsserver_data/ | beatrixvldafneafp/ | opt/scriptsScripts di servizio e crontab del server | |||
virgil | /etc | server_data/virgil/etc | File di configurazione dei servizi e del cluster | ||||
virgil | /opt/scripts | server_data/virgil/opt/scripts | Scripts di servizio e crontab del server |
Date ed orari di backup
I crontab di backup sono i seguenti:
...
srv | APPLE DEVIL's FILESYSTEM data shared via AFP |
Table 1 - data folders
Backup planning
Backup crontab are planned as Table 2 reports:
Server | Backup frequency | Time | Description |
---|---|---|---|
dafnenfs | daily | 01:30 | Create a backup of u2 in u3/u2_backup and then launch rsync script |
danteweb | daily | 01:10 | Launch rsync script |
vldafneafp | daily | 02:01 | Launch rsync script |
Table 2 - Backup planning
Snapshot and replica
Backups are planned on
*eseguito solo dal nodo attivo del cluster
Snapshot e repliche
I backup sono effettuati sul NAS nascoda1.lnf.infn.it (Sala LAT ) e replicati sul NAS nascoda2room) and rsynced on NAS nasda.lnf.infn.it (Laboratorio Controlli, Ed. Control Lab, Building 2, Stanza Room 117) con il seguente schema (comprensivo di snapshot dei singoli volumi)with following planning:
Source NAS Sorgente | Nas DestinazioneDestination NAS | OperazioneOperation | FrequenzaFrequency | OrarioTime | DescrizioneDescription |
---|---|---|---|---|---|
nascoda1 | localelocal | Snapshot del volume dei dati | Giornaliera | 00:05 | Snapshot mantenute per 1 mese |
nascoda1 | nascoda2 | Snapshot e Replica del volume di sistema del NAS | Giornaliera | 00:55 | Snapshot del volume di sistema del NAS locale e replica su nascoda2 |
nascoda1 | locale | Snapshot del volume delle configurazioni | Settimanale (Domenica) | 01:05 | Snapshot mantenute per 1 mese |
nascoda1 | nascoda2 | Sync del volume dei Dati e delle Configurazioni | Giornaliera | 04:00 | rsync da nascoda1 a nascoda2 di tutti i volumi (dati e configurazioni) |
nascoda2 | locale | Snapshot del volume dei dati | Giornaliera | 00:05 | Snapshot mantenute per 1 mese |
nascoda2 | nascoda1 | Snapshot e Replica del volume di sistema del NAS | Giornaliera | 00:55 | Snapshot del volume di sistema del NAS locale e replica su nascoda1 |
nascoda2 | locale | Snapshot del volume delle configurazioni | Settimanale (Domenica) | 01:05 | Snapshot mantenute per 1 mese |
Backup manuale mensile
Data volume snapshot | Smart Versioning | - | Hourly snapshots: 24 Daily snapshots: 7 Weekly snapshots: 5 Monthly snapshots: 12 | ||
nascoda1 | nasda | Data volume sync | Daily | 04:00 | rsync 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
To backup DCS from nasda to the disaster recovery disk, this is the procedure to be executed:
- Connect the disk to the front usb port of nasda and wait for the blue usb led to become steady on;
- 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;
- 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;
- 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:
View file | ||||
---|---|---|---|---|
|
View file | ||||
---|---|---|---|---|
|
Excerpt Include | ||||
---|---|---|---|---|
|