Page MenuHomePhabricator

Migrate database hosts from BIOS to UEFI
Open, MediumPublic

Description

We have to migrate our existing hosts to UEFI.
Also, new hosts should be installed with UEFI.

During the migration, we have to maintain two lines on preseed with the appropiated recipes.
For UEFI:
To keep /srv: reuse-db-efi.cfg: https://github.com/wikimedia/operations-puppet/blob/production/modules/profile/data/profile/installserver/preseed.yaml#L228
To fully erase a host: db-efi.cfg https://github.com/wikimedia/operations-puppet/blob/production/modules/profile/data/profile/installserver/preseed.yaml#L215
Note: After migrating a host to UEFI the host will not be able to get reimaged preserving /srv/ so formatting everything will be needed see: T412807#11480523

In order to migrate an existing host to UEFI we have to re-run the sre.hosts.provision cookbook for it. UEFI mode is now the default it will set, we also add the following flags for an existing host to skip some of the "day one" setup:

sudo cookbook sre.hosts.provision --no-switch --no-users --no-dhcp <hostname>

Query to see which hosts have been migrated:

sudo cumin 'A:uefi-boot and A:db-all'

To check which hosts are pending to be migrated:

sudo cumin 'A:bios-boot and A:db-all'

The idea is to install new hosts with UEFI and old ones will be slowly being retired as they get refreshed. We shouldn't actively migrate to UEFI unless a host needs to be fully formatted/recloned.

Event Timeline

Marostegui triaged this task as Medium priority.Dec 3 2025, 5:14 AM
Marostegui updated the task description. (Show Details)
Marostegui moved this task from Triage to Meta/Epic on the DBA board.

Change #1214235 had a related patch set uploaded (by Marostegui; author: Marostegui):

[operations/puppet@production] installserver: Move new hosts to UEFI

https://gerrit.wikimedia.org/r/1214235

Change #1214235 merged by Marostegui:

[operations/puppet@production] installserver: Move new hosts to UEFI

https://gerrit.wikimedia.org/r/1214235

cmooney updated the task description. (Show Details)

Change #1224855 had a related patch set uploaded (by Marostegui; author: Marostegui):

[operations/puppet@production] installserver: Do not format db2249

https://gerrit.wikimedia.org/r/1224855

Change #1224855 merged by Marostegui:

[operations/puppet@production] installserver: Do not format db2249

https://gerrit.wikimedia.org/r/1224855

Change #1224856 had a related patch set uploaded (by Marostegui; author: Marostegui):

[operations/puppet@production] installserver: Fix duplicate reuse-db-efi.cfg

https://gerrit.wikimedia.org/r/1224856

Change #1224856 merged by Marostegui:

[operations/puppet@production] installserver: Fix duplicate reuse-db-efi.cfg

https://gerrit.wikimedia.org/r/1224856

Change #1306160 had a related patch set uploaded (by Marostegui; author: Marostegui):

[operations/puppet@production] installserver: Move clouddb102[6-7] to UEFI entry

https://gerrit.wikimedia.org/r/1306160

Change #1306160 merged by Marostegui:

[operations/puppet@production] installserver: Move clouddb102[6-7] to UEFI entry

https://gerrit.wikimedia.org/r/1306160