Page MenuHomePhabricator

Swap partition not used when reimaging to trixie with reuse-parts.cfg and mdadm + lvm
Closed, ResolvedPublic

Description

We're using reuse-parts.cfg with reuse-raid10-6dev.cfg for kafka-main brokers (T427088) but the debian installer stopped during reimage because it does not reuse the existing swap partition T408777: Swap partition issue when installing a DB with Debian Trixie.

The workaround from T408777 falls short here. While it let's the installer pass (by suppressing the question) is leaves the system without swap. Also, I think, it only installs grub to /dev/sda which might make the system unbootable depending on boot order or when sda fails.

Event Timeline

JMeybohm renamed this task from Swap partition not used when reimaging to trixie with reuse-parts.cfg and mdadm, lvm to Swap partition not used when reimaging to trixie with reuse-parts.cfg and mdadm + lvm.Wed, Jun 3, 4:06 PM
JMeybohm added a project: ServiceOps new.

Change #1297186 had a related patch set uploaded (by JMeybohm; author: JMeybohm):

[operations/puppet@production] reuse-parts.sh: Allow to reuse swap with trixie

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

Change #1297201 had a related patch set uploaded (by JMeybohm; author: JMeybohm):

[operations/puppet@production] reuse-raid10-6dev.cfg: Fix swap reuse and grub-install on all disks

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

Change #1297186 merged by JMeybohm:

[operations/puppet@production] reuse-parts.sh: Allow to reuse swap with trixie

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

Change #1297201 merged by JMeybohm:

[operations/puppet@production] reuse-raid10-6dev.cfg: Fix swap reuse and grub-install on all disks

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

Reimaging kafka-main2007.codfw.wmnet with this change worked just fine