Backing up
Use the powervc-opsmgr backup command to back up your essential PowerVC data. You can then restore to a working state in the event of data corruption or a disaster.
About this task
The powervc-opsmgr backup command is the subcommand of
powervc-opsmgr
. For syntax and options, run powervc-opsmgr backup
--help
.
The following data is backed up:
- PowerVC databases, such as the nova database where information about your registered hosts is stored
- PowerVC configuration data, such as /etc/nova
- SSH private keys that are provided by the administrator
- Glance image repositories
Notes:
- Before performing any operation, make sure that the VM hostname is the same as the hostname that you used to create the inventory.
- If you are performing backup and restore of PowerVC version 2.1.1
and later, any scheduled tasks which are not
yet processed in the backup environment might get impacted. Also, the
root
user ID changes after backup and restore operation. Perform these steps to makes sure that the scheduled tasks resume after successful restore of PowerVC.- Login to
ibm-default
or one of the projects. - Navigate to Update trusts. , and then click
- Login to
- After a successful restore, if another restore is triggered on the same system make sure /var/opt/ibm/powervc/backups/<powervc_release>/ is removed or moved to a different location to avoid conflicts.
- If you are performing backup and restore from PowerVC 2.1.1 or later, copy the LDAP cert file from backup PVC to restore PVC in the /etc/pki/tls/certs directory if PVC is configured with LDAP in secure mode.
Complete the following steps to back up PowerVC data.
Procedure
Results
Notes:
- If an error occurs while running powervc-opsmgr backup, check for errors in the powervc-opsmgr backup logs in /opt/ibm/powervc/log.
- If you are using -p BACKUP_PATH, a separate timestamp is not created to store the backup as it happens without -p option . Old backup tar is overwritten if you retry backup using the same path with -p option in powervc-opsmgr backup command.
- Make sure to manually copy the archive to the /var/opt/ibm/powervc/backups directory for other nodes after you run the powervc-opsmgr backup command in PowerVC 2.2.1.