CentOS 7 Physical Machine Restart Won't Start FOG
-
I installed FOG a couple days ago and it was working fine. But I had slowness when deploying an image so I restarted my FOG machine to start troubleshooting and now my FOG Management console times out. It says “Database connection unavailable” any ideas? It makes me think the reboot didn’t start the services back up. Anyone know how to start those?
-
Fixed. I needed to run the command “service mysql restart”
-
@ConJon It sounds like you don’t have mysql configured to auto start when the system is started. Issue the following command from the FOG server’s linux console.
systemctl enable mysql
to enable it to start on each reboot. And then you probably should get use to the systemd service commands instead of the older sys-v commands (i.e. systemctl) moving forward. -
@george1421 Tried that command and it throws an error saying invalid argument
-
@ConJon Yeah I think I had too much eggnog already. The database installed under centos is mariadb
So you will want to use these commands:
Start the database server
systemctl start mariadb
Restart the database server
systemctl restart mariadb
Enable at startup:
systemctl enable mariadb
Status:
systemctl status mariadb
-
@george1421 Hahaha, it’s all good. Thank you! Merry Christmas!