]> git.pld-linux.org Git - packages/systemd.git/blobdiff - pld-storage-init.sh
Release: 12. Using vgscan --cache on startup.
[packages/systemd.git] / pld-storage-init.sh
index c15372732d1a321c4c0fa3939d26bcdc53db934d..7673c5933fe9b4a6f3b850ae99186ae7f6df2f12 100644 (file)
@@ -31,7 +31,9 @@ fi
 
 if ! is_no "$LVM2" && [ -x /sbin/lvm ]; then
        modprobe -s dm-mod >/dev/null 2>&1
-       run_cmd "Scanning for LVM volume groups" /sbin/lvm vgscan --ignorelockingfailure
+       # --cache to initiate direct device scan and update lvmetad appropriately (if running).
+       # See http://lists.pld-linux.org/mailman/pipermail/pld-devel-pl/2016-January/157230.html
+       run_cmd "Scanning for LVM volume groups" /sbin/lvm vgscan --ignorelockingfailure --cache
        run_cmd "Activating LVM volume groups" /sbin/lvm vgchange -a y --sysinit
        /sbin/lvm vgmknodes --ignorelockingfailure
 fi
This page took 0.081647 seconds and 4 git commands to generate.