From 190b2e738fb693953f301daab0cac7a6e99b0e82 Mon Sep 17 00:00:00 2001 From: Daniel Vincze Date: Fri, 5 Jul 2024 15:52:37 +0300 Subject: [PATCH] Remove LVM system device filters for RedHat OSMount Tools System Device filters is a feature enabled by default on RHEL9-based images, which limits the LVM detection on a particular set of system devices, provided in the `system.devices` file. This is bad for the OSMount process, since it will fail to detect LVM volumes on the migrated partitions. Removing the `system.devices` file from the minion machine disables this feature and fixes the issue. --- coriolis/osmorphing/osmount/redhat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/coriolis/osmorphing/osmount/redhat.py b/coriolis/osmorphing/osmount/redhat.py index a0f8f463f..211ec46a4 100644 --- a/coriolis/osmorphing/osmount/redhat.py +++ b/coriolis/osmorphing/osmount/redhat.py @@ -22,6 +22,7 @@ def setup(self): super(RedHatOSMountTools, self).setup() self._exec_cmd("sudo -E yum install -y lvm2 psmisc") self._exec_cmd("sudo modprobe dm-mod") + self._exec_cmd("sudo rm -f /etc/lvm/devices/system.devices") def _allow_ssh_env_vars(self): self._exec_cmd('sudo sed -i -e "\$aAcceptEnv *" /etc/ssh/sshd_config')