Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 611808 Details for
Bug 840478
As a Sysadmin of SAM I would like to have documentation for Backing up and Recovering a SAM installation.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Restore Procedure for System Engine
Restore.xml (text/xml), 4.67 KB, created by
Dan Macpherson
on 2012-09-11 15:00:05 UTC
(
hide
)
Description:
Restore Procedure for System Engine
Filename:
MIME Type:
Creator:
Dan Macpherson
Created:
2012-09-11 15:00:05 UTC
Size:
4.67 KB
patch
obsolete
><section> > <title>System Engine Restore Procedure</title> > <procedure> > <title>System Engine Restore Procedure</title> > <important> > <para> > The following process describes a full System Engine restore. This process deletes all data from a current System Engine instance. Ensure you are restoring to the correct instance. All commands are executed as <literal>root</literal> in the directory with archives created during the backup process. > </para> > </important> > <step> > <para> > Prepare the System Engine host for restore. This process restores the backup on the same server that generated the backup. If the original system is unavailable, provision the same configuration with the same settings (hostname, IP address, etc) and run <command>katello–configure</command> with the same options using the file from the configuration backup: > </para> > <screen># katello–configure ––answer–file=/etc/katello/katello–configure.conf</screen> > </step> > <step> > <para> > Change to the backup directory. > </para> > <screen># cd /backup</screen> > </step> > <step> > <para> > Check the names for System Engine PostgreSQL databases. Default database names are <literal>katelloschema</literal> and <literal>candlepin</literal>. Find all default values in the katello–configure manual page, or in the <filename>/usr/share/katello/install/default–answer–file</filename>. If the System Engine instance is not using the default names, check the <filename>katello–configure.conf</filename>, which stores all options provided to katello–configure command, and look for <literal>db_name</literal>. > <screen># grep db_name /etc/katello/katello–configure.conf</screen> > </para> > </step> > <step> > <para> > Stop all services prior to restoring the databases: > </para> > <screen># service katello stop ># service katello–jobs stop ># service pulp–server stop ># service tomcat6 stop ># service postgresql stop ># service elasticsearch stop</screen> > </step> > <step> > <para> > Restore the system files. Double-check that the files extract on the correct host. Restore all system files with following commands executed from the backup directory: > </para> > <screen># tar ––selinux –xzvf config_files.tar.gz –C / ># tar ––selinux –xzvf elastic_data.tar.gz –C / ># tar ––selinux –xvf pulp_data.tar –C /</screen> > </step> > <step> > <para> > Drop the existing System Engine PostgreSQL databases if any exist: > </para> > <screen># service postgresql start ># su postgres –c "dropdb katelloschema" ># su postgres –c "dropdb candlepin"</screen> > <note> > <para> > There is a possibility of the following error appearing during database drop: > </para> > <screen>database xxx is being accessed by other users</screen> > <para> > Ensure all processes are stopped. > </para> > </note> > </step> > <step> > <para> > Restore System Engine PostgreSQL databases with the following commands: > </para> > <screen># su postgres –c "pg_restore –C –d postgres /backup/katello.dump" ># su postgres –c "pg_restore –C –d postgres /backup/candlepin.dump"</screen> > <note> > <para> > For more info about PostgreSQL backups consult <command>pg_dump</command> manual page or visit <ulink url="http://www.postgresql.org/docs/8.4/static/backup.html">http://www.postgresql.org/docs/8.4/static/backup.html</ulink>. > </para> > </note> > </step> > <step> > <para> > Ensure MongoDB is running and delete the old data: > </para> > <screen># service mongod start ># echo 'db.dropDatabase();' | mongo pulp_database</screen> > </step> > <step> > <para> > Execute the following command while provide the <literal>––username</literal> and <literal>––password</literal> when in the directory with backup archives: > </para> > <screen># mongorestore ––host localhost mongo_dump/pulp_database/</screen> > <note> > <para> > For more information consult mongorestore man page or visit <ulink url="http://www.mongodb.org/display/DOCS/Backups"/>. > </para> > </note> > </step> > <step> > <para> > Restart all System Engine processes: > </para> > <screen># service postgresql start ># service tomcat6 start ># service pulp–server start ># service elasticsearch start ># service katello–jobs start ># service katello start</screen> > </step> > <step> > <para> > Check log files for errors, check <filename>audit.log</filename> for denials and attemp to ping the System Engine instance: > </para> > <screen># katello –u admin -p admin ping</screen> > </step> > </procedure> ></section>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 840478
:
611806
| 611808