From 19ee01836be38b2aa8593042b64e44bcee70decf Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 29 Nov 2024 21:39:28 +0100 Subject: [PATCH] copr-be: autoactivate volume group I think this is caused by (run against the previous backend instance): https://github.com/fedora-copr/ansible-fedora-copr/blob/fb1acfb6fd03953c87caa113673f1417c6b8f9b0/play-vm-migration-02-migrate-backend-box.yml#L68-L71 --- roles/copr/backend/tasks/mount_fs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/copr/backend/tasks/mount_fs.yml b/roles/copr/backend/tasks/mount_fs.yml index 2f4420a8cd..019a7dc329 100644 --- a/roles/copr/backend/tasks/mount_fs.yml +++ b/roles/copr/backend/tasks/mount_fs.yml @@ -36,7 +36,7 @@ - name: scan and assemble raid volumes and activate volume groups when: not stat_repo_fs.stat.exists - shell: mdadm --assemble --scan && sleep 5 && vgchange -a y && sleep 5 + shell: mdadm --assemble --scan && sleep 5 && vgchange -a y && vgchange copr-backend-data --setautoactivation y && sleep 5 - name: stat the ext4 filesystem stat: path=/dev/disk/by-label/copr-repo