2 About General Administrative Tasks
The following sections provide information about basic administrative tasks.
Starting, Stopping, and Restarting Oracle Linux Automation Manager
-
Open a terminal.
-
Start the Oracle Linux Automation Manager service:
sudo systemctl start ol-automation-manager
-
Open a terminal.
-
Stop the Oracle Linux Automation Manager service:
sudo systemctl stop ol-automation-manager
-
Open a terminal.
-
Restart the Oracle Linux Automation Manager service:
sudo systemctl restart ol-automation-manager
Accessing Log Files
Oracle Linux Automation Manager and other applications generates log files that can be useful for troubleshooting various issues.
-
Open a terminal on the system that's running Oracle Linux Automation Manager.
-
Go to the following locations to review application log files: .
-
For Oracle Linux Automation Manager log files, see
/var/log/tower
. -
For NGINX log files, see
/var/log/nginx
. -
For Redis log files, see
/var/log/redis
. -
For Postgresql, see
/var/lib/pgsql/data/log
and/var/lib/pgsql/initdb_postgresql.log
.Note:
If the database is on a remote host, log into the host running the database to find the Postgresql log files.
-
-
Review the logs.
Tip:
To find all error messages in all log files in the folder, use the following command: cat * | grep -i error.
Accessing Application Status
You can view Oracle Linux Automation Manager and other application statuses using the
systemctl
command that can be useful for
troubleshooting various issues.
-
Open a terminal on the system that's running Oracle Linux Automation Manager.
-
Run the following commands:
-
For Oracle Linux Automation Manager, type sudo systemctl status ol-automation-manager.
-
For NGINX, type sudo systemctl status nginx.
-
For Postgresql, type sudo systemctl status postgresql.
Note:
If the database is on a remote host, log into the host running the database to find the Postgresql log files. -
For Redis, type sudo systemctl status redis.
-
-
Review the application status messages and ensure that all are in the
Active (running)
state. Investigate any error messages. -
If you find error messages from the status commands, you can investigate further by running the following commands:
-
For Oracle Linux Automation Manager, type sudo journalctl -u ol-automation-manager.
-
For NGINX, type sudo journalctl -u nginx.
-
For Postgresql, type sudo journalctl -u postgresql.
Note:
If the database is on a remote host, log into the host running the database to find the Postgresql log files. -
For Redis, type sudo journalctl -u redis.
-
Backing Up and Restoring the Database
To back up the database, do the following:
- Log in to the database.
sudo su - postgres
- Create a database dump
file.
pg_dumpall > olamv2upg.dump
- Exit the database session.
exit
To restore the database, do the following:
- Log in to the database.
sudo su - postgres
- Create a database dump
file.
psql -d postgres -f /dirwithbackup/olamv2upg.dump
- Exit the database session.
exit