Backup Infrastruktur

Aus Zovis Wikili
Wechseln zu: Navigation, Suche
Backup

Backup Einführung

Inhalt: beschreibt die Backup Infrastruktur Umgebung im Aufbau und in der Konfiguration, gibt einen Gesamtüberblick und beschreibt die verschiedenen Komponenten mit deren Rollen und Schnittstellen.

Publikum: ITS Mitarbeiter.

Ziel: der Leser kennt die Komponenten der Backup Infrastruktur und weiss, welche Rolle sie in der Datensicherung übernehmen.



Grundlagen

Unter Datensicherung (auch Backup) versteht man das Kopieren der in einem Computersystem vorhandenen Daten auf ein alternatives Speichermedium. Dort werden diese dauerhaft (nicht unbegrenzt) mit dem Ziel aufbewahrt, den Datenverlust bei Systemausfällen zu begrenzen. Die auf dem Speichermedium gesicherten Daten werden als Sicherungskopie, teils ebenfalls als Backup bezeichnet.

Die Wiederherstellung einer Sicherungskopie bezeichnet man als Wiederherstellung, Datenrücksicherung oder Restore.



Backup Infrastruktur in der xy AG

In der xy AG wird ein Backupsystem eingesetzt, das Hardware seitig von Data Domain und seitens Software von (noch) NetBackup, EMC NetWorker und DataDomain implementiert ist. Die zu sichernden Daten auf den Hardware-Servern werden durch die NetBackup Backup and Recovery Clients (die auf jedem zu sichernden Server installiert sind) erfasst und auf die Backup Hardware geschrieben.

Damit die vielen Backupaufträge einfach und zentral administriert werden können, ist die NetBackup Administration Console (Administrationstool von NetBackup) auf unabhängigen Servern (z.B. h054hh für Dezentrale RZ) installiert.
Für die Zentrale Datensicherung kann das Tool auf den lokalen PC installiert werden. Geschrieben werden die Daten die DataDomain Server. Mit einem speziellen Komprimierungsverfahren (Deduplication) werden die Daten darauf abgelegt und stehen solange zur Verfügung bis die definierte Retention Time (Ablaufzeit) abgelaufen ist.
Mit der Option DD Boost können die Daten direkt auf die DD's geschrieben werden ohne den Weg über einen Mediaserver (konventionell) gehen zu müssen.

Es gibt auch die Möglichkeit, Daten direkt auf die DataDomain zu schreiben, in einem speziell dafür eingerichteten CIFS oder NFS Share. Die Möglichkeit kann benutz werden für z.B. kleinere SQL Dumps, NDMP, Backups von der Linux Umgebung und kleine scriptbasierte Datensicherungen jeglicher Art.




Software

Hardware



FAQ

ESX Config Backup

on ESXi Command Line

Note: first you have to enable ssh on esx webgui



Backing up ESXi host configuration data

1. To synchronize the configuration changed with persistent storage, run this command:

vim-cmd hostsvc/firmware/sync_config

2. To back-up the configuration data for the ESXi host, run this command:

vim-cmd hostsvc/firmware/backup_config

Note: The command will output a URL (http://<host_fqdn_orIP>/downloads/123456/configBundle-xx.xx.xx.xx.tgz) from where you can download the backup file, either by opening it in a web brower or using other means like wget.

3. From a web browser navigate to

http://<host_fqdn_orIP>/downloads/123456/configBundle-xx.xx.xx.xx.tgz

In this example the IP address of the host is 192.168.0.81


Note: To restore the configuration the destination ESXi host must be the same build as the ESXi host configuration data. The host build can be obtained using the command vmware -vl.



Restoring ESXi host configuration data

1. The configBundle-HostFQDN.tgz should be renamed as configBundle.tgz before initiating the restore command.

2. Put the host into maintenance mode by running the below command:

vim-cmd hostsvc/maintenance_mode_enter

3. Copy the backup configuration file to the ESXi host or an available datastore.

4. Reboot the host. This step is required, otherwise the restore workflow might not finish completely

5. Once ESXi has rebooted, move the config bundle file to /tmp/configBundle.tgz.

Then run this command to restore the ESXi host configuration:
vim-cmd hostsvc/firmware/restore_config 0
Note: Add a 1 to force an override of the UUID mismatch.
For example:
vim-cmd hostsvc/firmware/restore_config 1
  • Executing this command will initiate an automatic reboot of the host after command completion.
  • However, starting from vSphere 7.0 U2, the configuration could be encrypted using TPMs and in which case, the -force option will not work if the host got changed. We need the same TPM that was used on the host during backup, to restore. In other words,from vSphere 7.0U2, the override will not work if the host has TPM enabled.

Prozesse

Support und Wartung

Links

Diverse:


Verzeichnis