From 1073f70bce4d60dc2a40ebde2ec1f65de4ee2c3a Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Thu, 28 Nov 2024 07:33:35 +0100 Subject: [PATCH] copr-be: activate the volume group --- roles/copr/backend/tasks/mount_fs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/copr/backend/tasks/mount_fs.yml b/roles/copr/backend/tasks/mount_fs.yml index e8560425df..60bba3b6e9 100644 --- a/roles/copr/backend/tasks/mount_fs.yml +++ b/roles/copr/backend/tasks/mount_fs.yml @@ -34,9 +34,9 @@ stat: path=/dev/disk/by-label/copr-repo register: stat_repo_fs - - name: scan the raid volumes + - name: scan and assemble raid volumes and activate volume groups when: not stat_repo_fs.stat.exists - shell: mdadm --assemble --scan && sleep 5 + shell: mdadm --assemble --scan && sleep 5 && vgchange -a y && sleep 5 - name: stat the ext4 filesystem stat: path=/dev/disk/by-label/copr-repo