Closed sbesson closed 2 years ago
On ome-learning
, given I had less than 50% space on the /var/lib/pgsql
partition, I had to go for a modified version of https://github.com/ome/prod-playbooks/pull/360#issuecomment-1179182594
sudo service omero-web stop && sudo service omero-server stop && sudo service postgresql-10 stop
ome.postgresql
role to install the new packages/initialize the clusterpostgres
user, first delete the existing cluster rm -rf /var/lib/pgsql/10
then unzip and restore the dump cd /OMERO/pgbackup && gunzip nightly-omero-Mon.pgdump.gz && psql -f nightly-omero-Mon.pgdump && gzip nightly-omero-Mon.pgdump
sudo yum remove postgresql10*
It sounds a little bit like the openstack creation routines which can choose what their source "volume" is. Here it's source "database" which could be local if there's enough space but otherwise is remote and needs to be copied/unzipped into place.
It sounds a little bit like the openstack creation routines which can choose what their source "volume" is. Here it's source "database" which could be local if there's enough space but otherwise is remote and needs to be copied/unzipped into place.
In the back of my mind, I was considering how to perform such an upgrade in the case of IDR where we are at also over 50% usage
[sbesson@prod107-database ~]$ df -h | grep pgsql
/dev/vdb 800G 553G 248G 70% /var/lib/pgsql
A source volume containing a dump of the database might effectively mirror what happens here.
Includes some of the commits from #360 to bump the roles to versions supporting PSQL 13+.
Also migrates the
postgresql_version
undervars
as it is transitively used in theom.postgresql_client
dependency