Hi Daniel,
On Wed, 27 Jan 2021, Daniel Howard wrote:
> Out of the box, Ubuntu 20.04 wants to give you drbd 8 in the kernel, and
> drbd 9 utils.
>
> I tried that out, and it "works" but after moving an instance's disks
> around a bit I get errors that the old LVM can't be removed because someone
> is using it. Huh?
There is really no need to change drbd-utils version. drbd-utils-9.x should
be fine for 8.4-in-kernel-module. As far as I remember, it was written
with full 8.4 compatibility in mind (both sides: the kernel module and
consumers like Ganeti).
It's more likely that DRBD upstream has not yet pushed DRBD-9/10 into
mainline kernel, which could be a difficult process. DRBD-8 has long
history outside mainline kernel and the main reason for including DRBD-8
was, that everyone is using it, so it can be included.
The reason for some LVs can not be closed must be somewhere else. Maybe
stacked LVM (LVM inside Ganeti instances), without supplying a lvm filter,
or active partition mappings (i.e. from instance-debootstrap). Please try:
# on effected LV
$ lsof /dev/mapper/vgX_lvX
$ lsof /dev/dm-X # with X where symlink in /dev/mapper points to
or more likely
$ dmsetup ls
to find out who/what is holding things open.
HTH, Sascha.