|
|
a56a5e |
From 32b970339f5439300fe6155352ec1f17c5e48d78 Mon Sep 17 00:00:00 2001
|
|
|
90b079 |
From: Peter Rajnoha <prajnoha@redhat.com>
|
|
|
90b079 |
Date: Fri, 4 Oct 2013 10:41:24 +0200
|
|
|
90b079 |
Subject: [PATCH] lvm/mdraid: Fix LVM on MD activation
|
|
|
90b079 |
|
|
|
90b079 |
The 69-dm-lvm-metad.rules set some udev env. variables that makes it
|
|
|
90b079 |
possible to detect the right time to activate LVM on MD. The MD is very
|
|
|
90b079 |
similar to DM during activation - it's usable only after proper device
|
|
|
90b079 |
activation - the CHANGE event. We need to make a difference between a
|
|
|
90b079 |
CHANGE event that comes from this activation and CHANGE event that is
|
|
|
90b079 |
the outcome of the WATCH udev rule (otherwise we'd end up with LVM
|
|
|
90b079 |
activation done on each CHANGE event - which is wrong).
|
|
|
90b079 |
|
|
|
90b079 |
So we need the udev databse to be persistent during pivot to root fs
|
|
|
90b079 |
even for MD devices.
|
|
|
90b079 |
---
|
|
|
90b079 |
modules.d/90lvm/module-setup.sh | 2 +-
|
|
|
90b079 |
modules.d/90mdraid/59-persistent-storage-md.rules | 1 +
|
|
|
90b079 |
2 files changed, 2 insertions(+), 1 deletion(-)
|
|
|
90b079 |
|
|
|
90b079 |
diff --git a/modules.d/90lvm/module-setup.sh b/modules.d/90lvm/module-setup.sh
|
|
|
1755ca |
index 2ef9a514..f98ffffd 100755
|
|
|
90b079 |
--- a/modules.d/90lvm/module-setup.sh
|
|
|
90b079 |
+++ b/modules.d/90lvm/module-setup.sh
|
|
|
90b079 |
@@ -82,7 +82,7 @@ install() {
|
|
|
90b079 |
} > "${initdir}/etc/lvm/lvm.conf"
|
|
|
90b079 |
fi
|
|
|
90b079 |
|
|
|
90b079 |
- inst_rules 11-dm-lvm.rules
|
|
|
90b079 |
+ inst_rules 11-dm-lvm.rules 69-dm-lvm-metad.rules
|
|
|
90b079 |
# Gentoo ebuild for LVM2 prior to 2.02.63-r1 doesn't install above rules
|
|
|
90b079 |
# files, but provides the one below:
|
|
|
90b079 |
inst_rules 64-device-mapper.rules
|
|
|
90b079 |
diff --git a/modules.d/90mdraid/59-persistent-storage-md.rules b/modules.d/90mdraid/59-persistent-storage-md.rules
|
|
|
1755ca |
index bea93257..6ef858aa 100644
|
|
|
90b079 |
--- a/modules.d/90mdraid/59-persistent-storage-md.rules
|
|
|
90b079 |
+++ b/modules.d/90mdraid/59-persistent-storage-md.rules
|
|
|
90b079 |
@@ -20,4 +20,5 @@ IMPORT{program}="/sbin/mdadm --detail --export $tempnode"
|
|
|
90b079 |
IMPORT BLKID
|
|
|
90b079 |
OPTIONS+="link_priority=100"
|
|
|
90b079 |
OPTIONS+="watch"
|
|
|
90b079 |
+OPTIONS+="db_persist"
|
|
|
90b079 |
LABEL="md_end"
|