mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Fix clvmd init script status
- s/Active clustred VG/clustered VG/ (only LV can be active) - print only active LVs (not all) in status command (In the lvdisplay form /dev/vg/lv.) For now, still use awk (already used in clustered_vgs). https://bugzilla.redhat.com/show_bug.cgi?id=598495
This commit is contained in:
parent
3ba8ffe741
commit
be2d9395c7
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.68 -
|
Version 2.02.68 -
|
||||||
===============================
|
===============================
|
||||||
|
Fix clvmd initscript status to print only active clustered LVs.
|
||||||
Fix typo "INTERNAL ERROR" -> "INTERNAL_ERROR" in libdm-iface.c.
|
Fix typo "INTERNAL ERROR" -> "INTERNAL_ERROR" in libdm-iface.c.
|
||||||
Add lv_path to reports to offer full /dev pathname.
|
Add lv_path to reports to offer full /dev pathname.
|
||||||
Fix typo in warning message about missing device with allocated data areas.
|
Fix typo in warning message about missing device with allocated data areas.
|
||||||
|
@ -25,7 +25,7 @@ sbindir=@sbindir@
|
|||||||
lvm_vgchange=${sbindir}/vgchange
|
lvm_vgchange=${sbindir}/vgchange
|
||||||
lvm_vgdisplay=${sbindir}/vgdisplay
|
lvm_vgdisplay=${sbindir}/vgdisplay
|
||||||
lvm_vgscan=${sbindir}/vgscan
|
lvm_vgscan=${sbindir}/vgscan
|
||||||
lvm_lvs=${sbindir}/lvs
|
lvm_lvdisplay=${sbindir}/lvdisplay
|
||||||
|
|
||||||
CLVMDOPTS="-T30"
|
CLVMDOPTS="-T30"
|
||||||
|
|
||||||
@ -47,9 +47,10 @@ clustered_vgs() {
|
|||||||
awk 'BEGIN {RS="VG Name"} {if (/Clustered/) print $1;}'
|
awk 'BEGIN {RS="VG Name"} {if (/Clustered/) print $1;}'
|
||||||
}
|
}
|
||||||
|
|
||||||
clustered_lvs() {
|
clustered_active_lvs() {
|
||||||
for i in $(clustered_vgs); do
|
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
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -197,8 +198,8 @@ case "$1" in
|
|||||||
rtrn=$?
|
rtrn=$?
|
||||||
if [ $rtrn = 0 ]; then
|
if [ $rtrn = 0 ]; then
|
||||||
cvgs="$(clustered_vgs)"
|
cvgs="$(clustered_vgs)"
|
||||||
echo Active clustered Volume Groups: ${cvgs:-"(none)"}
|
echo Clustered Volume Groups: ${cvgs:-"(none)"}
|
||||||
clvs="$(clustered_lvs)"
|
clvs="$(clustered_active_lvs)"
|
||||||
echo Active clustered Logical Volumes: ${clvs:-"(none)"}
|
echo Active clustered Logical Volumes: ${clvs:-"(none)"}
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user