public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: agk@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 ./WHATS_NEW tools/pvmove.c Date: Tue, 27 Sep 2011 17:29:00 -0000 [thread overview] Message-ID: <20110927172934.27589.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: agk@sourceware.org 2011-09-27 17:29:34 Modified files: . : WHATS_NEW tools : pvmove.c Log message: Replace incomplete pvmove activation failure recovery code with a message. As it stands, the recovery code can make things worse sometimes so it's better to insist on a proper 'pvmove --abort' cleanup. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2141&r2=1.2142 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/pvmove.c.diff?cvsroot=lvm2&r1=1.88&r2=1.89 --- LVM2/WHATS_NEW 2011/09/27 17:09:42 1.2141 +++ LVM2/WHATS_NEW 2011/09/27 17:29:33 1.2142 @@ -1,5 +1,6 @@ Version 2.02.89 - ================================== + Replace incomplete pvmove activation failure recovery code with a message. Abort if _finish_pvmove suspend_lvs fails instead of cleaning up incompletely. Change suspend_lvs to call vg_revert internally. Change vg_revert to void and remove superfluous calls after failed vg_commit. --- LVM2/tools/pvmove.c 2011/09/27 17:09:43 1.88 +++ LVM2/tools/pvmove.c 2011/09/27 17:29:33 1.89 @@ -390,22 +390,9 @@ } /* - * Nothing changed yet, try to revert pvmove. - * FIXME This error path is incomplete and unsafe. + * FIXME Run --abort internally here. */ - log_error("Temporary pvmove mirror activation failed."); - - /* Ensure that temporary mrror is deactivate even on other nodes. */ - /* FIXME Unsafe to proceed if this fails without checking explicitly that no pvmove LVs are still active */ - (void)deactivate_lv(cmd, lv_mirr); - - /* Revert metadata */ - /* FIXME Use --abort code instead? */ - if (!_detach_pvmove_mirror(cmd, lv_mirr) || - !lv_remove(lv_mirr) || - !vg_write(vg) || !vg_commit(vg)) - log_error("ABORTING: Restoring original configuration " - "before pvmove failed. Run pvmove --abort."); + log_error("ABORTING: Temporary pvmove mirror activation failed. Run pvmove --abort."); goto_out; } }
next reply other threads:[~2011-09-27 17:29 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-09-27 17:29 agk [this message] -- strict thread matches above, loose matches on Subject: below -- 2012-03-26 20:32 mbroz 2012-03-13 20:21 agk 2010-01-27 13:29 mbroz 2010-01-26 8:01 mbroz 2009-12-03 19:22 mbroz 2004-09-14 15:23 agk
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=20110927172934.27589.qmail@sourceware.org \ --to=agk@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).