Version 2.02.68 -
===============================
+ Fix clvmd initscript status to print only active clustered LVs.
Fix typo "INTERNAL ERROR" -> "INTERNAL_ERROR" in libdm-iface.c.
Add lv_path to reports to offer full /dev pathname.
Fix typo in warning message about missing device with allocated data areas.
lvm_vgchange=${sbindir}/vgchange
lvm_vgdisplay=${sbindir}/vgdisplay
lvm_vgscan=${sbindir}/vgscan
-lvm_lvs=${sbindir}/lvs
+lvm_lvdisplay=${sbindir}/lvdisplay
CLVMDOPTS="-T30"
awk 'BEGIN {RS="VG Name"} {if (/Clustered/) print $1;}'
}
-clustered_lvs() {
+clustered_active_lvs() {
for i in $(clustered_vgs); do
- ${lvm_lvs} -o lv_name --noheadings $i
+ ${lvm_lvdisplay} $i 2>/dev/null | \
+ awk 'BEGIN {RS="LV Name"} {if (/[^N^O^T] available/) print $1;}'
done
}
rtrn=$?
if [ $rtrn = 0 ]; then
cvgs="$(clustered_vgs)"
- echo Active clustered Volume Groups: ${cvgs:-"(none)"}
- clvs="$(clustered_lvs)"
+ echo Clustered Volume Groups: ${cvgs:-"(none)"}
+ clvs="$(clustered_active_lvs)"
echo Active clustered Logical Volumes: ${clvs:-"(none)"}
fi
;;