diff --git a/man/dmeventd.8_main b/man/dmeventd.8_main index 98b1b98d3..06f8f58c5 100644 --- a/man/dmeventd.8_main +++ b/man/dmeventd.8_main @@ -123,7 +123,7 @@ Command is executed with environmental variable in this environment will not try to interact with dmeventd. To see the fullness of a thin pool command may check these two environmental variables -\fBDMEVENTD_THIN_POOL_DATA\fP and \fBDMEVENTD_THIN_POOL_DATA\fP. +\fBDMEVENTD_THIN_POOL_DATA\fP and \fBDMEVENTD_THIN_POOL_METADATA\fP. Command can also read status with tools like \fBlvs\fP(8). . .SH ENVIRONMENT VARIABLES diff --git a/test/shell/pvcreate-md-fake-hdr.sh b/test/shell/pvcreate-md-fake-hdr.sh index acd6785cb..50a5b1495 100644 --- a/test/shell/pvcreate-md-fake-hdr.sh +++ b/test/shell/pvcreate-md-fake-hdr.sh @@ -33,7 +33,7 @@ aux prepare_md_dev 1 64 2 "$dev1" "$dev2" mddev=$(< MD_DEV) pvdev=$(< MD_DEV_PV) - +sleep 3 mdadm --stop "$mddev" # copy fake PV/VG header PV3 -> PV2 (which is however md raid1 leg) @@ -52,7 +52,7 @@ sleep 3 # print what blkid thinks about each PV for i in "$dev1" "$dev2" "$dev3" "$dev4" do - blkid "$i" + blkid -c /dev/null -w /dev/null "$i" || echo "Unknown signature" done # expect open count for each PV to be 0 @@ -74,20 +74,21 @@ sleep 3 dmsetup info -c # if for any reason array went up - stop it again -mdadm --detail "$mddev" && { +if mdadm --detail "$mddev" ; then mdadm --stop "$mddev" aux udev_wait should not mdadm --detail "$mddev" -} +fi -# now reassemble array from PV1 & PV2 +# now reassemble array from PV1 & PV2 mdadm --assemble --verbose "$mddev" "$dev1" "$dev2" aux udev_wait sleep 1 # and let 'fake hdr' to be fixed from master/primary leg -mdadm --action=repair "$mddev" -sleep 1 - -# should be showing correctly PV3 & PV4 -pvs +# (when mdadm supports repair) +if mdadm --action=repair "$mddev" ; then + sleep 1 + # should be showing correctly PV3 & PV4 + pvs +fi