Page MenuHomePhabricator

Migrate maps-osmdb from bullseye to trixie
Open, In Progress, MediumPublic

Description

Issue to help track tasks to migrate the maps DB to Debian Trixie

https://openstack-browser.toolforge.org/project/maps

  • Get larger quota for maps project, to facilitate migrations
  • Create new maps osm instance
  • Connect new volume
  • Setup new postgresql
  • Sync data
  • Update to newer postgres version

Current DB volume: https://horizon.wikimedia.org/project/volumes/e903bcbb-6c0e-4c74-81f9-31c1c9d5eb95/
Current DB instance: https://horizon.wikimedia.org/project/instances/d58af0ac-ff2e-4bf2-a7a1-911c6a88bc5a/

Documentation from last time Daniel went through this: https://github.com/Commonists/maps-osmdb
Ticket from last time that disk quote was raised for a migration: T300160: Request increased quota for maps Cloud VPS project


https://etherpad.wikimedia.org/p/2026-bullseye-deprecation

Parent issue: https://phabricator.wikimedia.org/T428196 Reach out to Cloud VPS project maintainers about Debian Bullseye deprecation

https://os-deprecation.toolforge.org/

Event Timeline

@saper has offered to help out with this

saper changed the task status from Open to In Progress.Aug 20 2026, 12:42 AM
saper claimed this task.
saper triaged this task as Medium priority.

Rebuilding the DB takes a very long time (weeks). So if we could avoid that and do an in-place upgrade that'd be fantastic.

Rebuilding the DB takes a very long time (weeks). So if we could avoid that and do an in-place upgrade that'd be fantastic.

Is using a volume to migrate the existing database data while replacing the operating system feasible?

Is using a volume to migrate the existing database data while replacing the operating system feasible?

Yeah, I think that'd be an excellent idea.

Yes, at first we shall stop using the PostgreSQL version as given by Debian.

Using PGDG packages it should be possible to move the database volume to PostgreSQL 13 running on Debian 13.
Second step will be to update PostgreSQL 13 to the newest reasonable, by installing two versions if parallel. If the downtime used to migrate 13->17+ will be too long, we can use logical replication while the wma remains running.

I could even update the puppet classes to install Postgres this way, but installing the puppetserver is an overkill to me.

Will you be able to meet a deadline of October 31st?

PostgreSQL 13 and PostgreSQL 18 installed in parallel on caaa4a23-7e32-40e4-b737-03a3402c9b74 (maps-osmdb-2026-g1-template) for migration

I was able to do the following:

  1. (debian 11) shutdown postgres 13 and the replication
  2. (debian 11) umount && detach https://horizon.wikimedia.org/project/volumes/e903bcbb-6c0e-4c74-81f9-31c1c9d5eb95/
  3. (debian 13) attach && mount https://horizon.wikimedia.org/project/volumes/e903bcbb-6c0e-4c74-81f9-31c1c9d5eb95/ to the maps-osmdb-2026-g1-template debian 13 server
  4. (debian 13) chown the data to postgres:postgres
  5. (debian 13) configure && start postgresql 13
  6. (maps-wma2) connect remotely to the "gis" database and execute a PostGIS query
  7. (debian 13) shutdown postgresql 13
  8. (debian 13) umount && detach https://horizon.wikimedia.org/project/volumes/e903bcbb-6c0e-4c74-81f9-31c1c9d5eb95/
  9. (debian 11) reattach the volume
  10. (debian 11) chown the data to postgres:postgres
  11. (debian 11) start postgresql 13; restart replication
• Aklapper renamed this task from Migrate maps-osmdb from bullseye to .. to Migrate maps-osmdb from bullseye to trixie.Thu, Oct 29, 12:05 PM