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

Return to the regular view of this page.

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