This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Backup and Recovery

Backup and Recovery

This section provides details on important files to back up and recover.

1 - Back Up Eucalyptus Cloud Data

Back Up Cloud Data

This section explains what you need to back up and protect your cloud data.We recommend that you back up the following data:

  • The cloud database: see
  • Object storage. For objects in Walrus, the frequency depends on current load. Use your own discretion to determine the backup plan and strategy. You must have Walrus running.
  • EBS volumes in each cluster (DAS and Overlay)
  • The configuration file for the cloud is stored on the CLC: .
  • Any configuration file for the cloud stored on any other host (UFS, CC, etc.): .
  • The cloud security credentials on all hosts (you already backed up the CLC keys as part of the database backup). Use the tar command: .
  • The CC and NC configuration files, stored on every CC and NC: .
  • Any Euca2ools (.ini) configuration files, which reside on any Euca2ools host machine. Files can be found in:
  • Management Console config files in should be backed up. Typical files:
  • Ensure you have your instances’ so you can access the instances later.
  • and LVM snapshots Users are responsible for volume backups using EBS snapshots on their defined schedules.

1.1 - Back Up the Database

To back up the cloud database follow the steps listed in this topic.Bucket and object metadata are stored in the Eucalyptus cloud database. To back up the database

Log in to the CLC. The cloud database is on the CLC. Extract the Eucalyptus PostgreSQL database cluster into a script file.

pg_dumpall --oids -c -h/var/lib/eucalyptus/db/data -p8777 -U root -f/root/eucalyptus_pg_dumpall-backup.sql

Back up the cloud security credentials in the keys directory.

tar -czvf ~/eucalyptus-keydir.tgz /var/lib/eucalyptus/keys

2 - Recover Eucalyptus Cloud Data

Recover Cloud Data

This topic explains what to include when you recover your cloud.Recovering Your Cloud Data

We recommend that you recover the following data:

  • The cloud database: see
  • Object storage. For objects in Walrus, the frequency depends on current load. Use your own discretion to determine the restore plan and strategy.
  • EBS volumes in each cluster (DAS and Overlay)
  • The configuration file for the cloud is stored on the CLC: .
  • Any configuration file for the cloud stored on any other host (UFS, CC, etc.): .
  • The cloud security credentials on all hosts (you already restored the CLC keys as part of the database restore). Use the tar command: .
  • The CC and NC configuration files, stored on every CC and NC: .
  • Any Euca2ools (.ini) configuration files, which reside on any Euca2ools host machine. Files in these directories:
  • Management Console config files you backed up from should be restored. Typical files:
  • Ensure you have your instances’ so you can access the instances.
  • and LVM snapshots Users are responsible for volume restore using EBS snapshots.

2.1 - Restore the Database

To restore the cloud database follow the steps listed in this topic.

To restore the database

Stop the CLC service.

systemctl stop eucalyptus-cloud.service

Remove traces of the old database.

rm -rf /var/lib/eucalyptus/db

Restore the cloud security credentials in the keys directory.

tar -xvf ~/eucalyptus-keydir.tgz -C /

Re-initialize the database structure.

clcadmin-initialize-cloud

Start the database manually.

su eucalyptus -s /bin/bash -c "/usr/bin/pg_ctl start -w \
-s -D/var/lib/eucalyptus/db/data -o '-h0.0.0.0/0 -p8777 -i'"

Restore the backup.

psql -U root -d postgres -p 8777 -h /var/lib/eucalyptus/db/data -f/root/eucalyptus_pg_dumpall-backup.sql

Stop the database manually.

su eucalyptus -s /bin/bash -c "/usr/bin/pg_ctl stop -D/var/lib/eucalyptus/db/data"

Start CLC service

systemctl start eucalyptus-cloud.service