Pages

Monday, February 2, 2015

Red Hat Satellite 5 - Ran out of disk after 5.7 update

I'm still using Satellite 5 in production because Satellite 6 is just not ready yet for prime time use. At least, not in my opinion.  The recent Satellite 5.7 update change the entire interface to look a lot more modern as well as a bunch of bug fixes.

The 5.6 to 5.7 update went perfectly for me. Nothing broke and I did not lose any functionality.  However, today my Satellite 5 server stopped working. I could not get to the web interface and client servers could not install packages.  Sign into the server and see that the / partition was full.

Some searching turned up, that one of the 5.7 changes was that they moved the location of where postgres was keeping its data. The upgrade process moved all of the data out of the old location (where I had a separate mount point) and moved it to a new location in /opt, where I don't have enough disk.

  • Old location in 5.6
    • /var/lib/pgsql
  • New location in 5.7
    • /opt/rh/postgresql92/root/var/lib/pgsql
I made sure Satellite was fully stopped
  • rhn-satellite stop
Then, I copied the data directory from the new location to the old location. After that, I umounted /var/lib/pgsql, changed the mount point in fstab and remounted it in the new location.  Started satellite up
  • rhn-satellite start
Once I verified that Satellite was back and happy. I stopped the Satellite, umounted the partition and deleted everything that was in that data directory so my / partition would get some space back. Remounted pgsql and started satellite. Everything is happy.