due to a failing hard disk, I would like to deactivate the volume groups living on it, to make sure that the disk is messed with as little as possible until it gets replaced.
I know that I can deactivate the logical volumes and the volume group with lvchange/vgchange --activate n, however as soon as the system is rebooted, these LVs and VGs get auto-reactivate.
I cannot understand how the auto-reactivation can be suppressed in ubuntu 20.04. The parameters that should be relevant in the lvm configuration appear to do nothing.
I suspect that in ubuntu the VG/LV auto activation logic sits in udev rules and completely ignore the lvm configuration. Is this the case? How can the desired behavior be obtained, then?
Any hint?