public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: mbroz@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 ./WHATS_NEW scripts/clvmd_init_red_hat.in Date: Wed, 23 Jun 2010 16:24:00 -0000 [thread overview] Message-ID: <20100623162416.4879.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: mbroz@sourceware.org 2010-06-23 16:24:14 Modified files: . : WHATS_NEW scripts : clvmd_init_red_hat.in Log message: 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 Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1629&r2=1.1630 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/scripts/clvmd_init_red_hat.in.diff?cvsroot=lvm2&r1=1.8&r2=1.9 --- LVM2/WHATS_NEW 2010/06/23 12:54:46 1.1629 +++ LVM2/WHATS_NEW 2010/06/23 16:24:13 1.1630 @@ -1,5 +1,6 @@ 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. --- LVM2/scripts/clvmd_init_red_hat.in 2010/06/03 21:03:54 1.8 +++ LVM2/scripts/clvmd_init_red_hat.in 2010/06/23 16:24:14 1.9 @@ -25,7 +25,7 @@ lvm_vgchange=${sbindir}/vgchange lvm_vgdisplay=${sbindir}/vgdisplay lvm_vgscan=${sbindir}/vgscan -lvm_lvs=${sbindir}/lvs +lvm_lvdisplay=${sbindir}/lvdisplay CLVMDOPTS="-T30" @@ -47,9 +47,10 @@ 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 } @@ -197,8 +198,8 @@ 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 ;;
next reply other threads:[~2010-06-23 16:24 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-06-23 16:24 mbroz [this message] -- strict thread matches above, loose matches on Subject: below -- 2010-08-12 9:15 fabbione 2010-06-03 21:03 mbroz 2010-05-17 3:18 fabbione 2010-02-26 13:07 fabbione 2009-05-29 18:34 snitzer 2009-02-10 11:53 ccaulfield
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100623162416.4879.qmail@sourceware.org \ --to=mbroz@sourceware.org \ --cc=lvm-devel@redhat.com \ --cc=lvm2-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).