From: "Nick Wang" <nwang@suse.com>
To: <drbd-dev@lists.linbit.com>
Subject: Re: [Drbd-dev] [PATCH] drbd-utils: Fix the default node id initialization when upgrade v8 to v9
Date: Tue, 17 Jan 2017 20:14:10 -0700 [thread overview]
Message-ID: <587F4E0202000070000AC43C@prv-mh.provo.novell.com> (raw)
In-Reply-To: <20170116103502.GF9172@soda.linbit>
>>> On 1/16/2017 at 6:35 下午, in message <20170116103502.GF9172@soda.linbit>,
Lars Ellenberg <lars.ellenberg@linbit.com> wrote:
> > > Also, IMO, in virtually all 8 -> 9 upgrade scenarios, you are better off
> > > creating new DRBD 9 meta data instead of trying to "convert”.
> >
> > Is there a technical reason
>
> There are two basic scenarios, "rolling" upgrade,
> and "stop, replace, and restart the world".
>
> "stop the world" obviously means downtime.
> But for the "rolling" upgrade,
> you need more steps and at least a switchover,
> which typically also implies a downtime.
>
> My preferred upgrade procedure would be "replace the world"
> * make sure all data is "stable" and in sync
> * stop all services (yes, that means a short down time)
> * upgrade modules
> * recreate meta data, and prepare to skip the initial sync,
> because we know everything is in sync (see first step)
> potentially allocating more bitmap slots in preparation for N > 2.
> * bring it all online.
>
> If that is not acceptable, or you think the rolling upgrade incurs less
> service interruption, you go with the "upgrade meta data in place"
> procedure, and hope we got that right :-)
>
The rolling upgrade as long as the network protocol support can
shorten the downtime to the switch-over time. If all data is in sync,
i think the md(activity log and bitmaps) is safe to be replaced.
So far, for all the scenarios i tried, both "convert meta data" for still
2 nodes and "replace meta data with a new one" for adding more nodes
works for a rolling upgrade on secondary node when all data is in sync:)
Best regards,
Nick
prev parent reply other threads:[~2017-01-18 3:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-13 6:15 [Drbd-dev] [PATCH] drbd-utils: Fix the default node id initialization when upgrade v8 to v9 Nick Wang
2017-01-13 9:00 ` Roland Kammerer
2017-01-13 11:03 ` Lars Ellenberg
2017-01-16 2:30 ` Nick Wang
[not found] ` <F749D893-B652-4BA8-AA15-AD88344EE2F9@acsalaska.com>
2017-01-16 10:35 ` Lars Ellenberg
2017-01-18 3:14 ` Nick Wang [this message]
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=587F4E0202000070000AC43C@prv-mh.provo.novell.com \
--to=nwang@suse.com \
--cc=drbd-dev@lists.linbit.com \
/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: link
Be 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