Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1170331
| Path | csiph.com!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | NeilBrown <neilb@suse.com> |
| Newsgroups | linux.kernel |
| Subject | Re: clustered MD |
| Date | Tue, 23 Jun 2015 03:40:02 +0200 |
| Message-ID | <pEllT-4DP-1@gated-at.bofh.it> (permalink) |
| References | <pzwrE-6kQ-37@gated-at.bofh.it> <pzxnH-7MA-9@gated-at.bofh.it> <pzxH3-89G-3@gated-at.bofh.it> <pzy0q-kC-1@gated-at.bofh.it> <pzytr-T8-13@gated-at.bofh.it> <pzF1T-2eP-7@gated-at.bofh.it> <pzPNE-1rR-19@gated-at.bofh.it> <pzUX1-uh-23@gated-at.bofh.it> <pzVq1-1iX-1@gated-at.bofh.it> <pzX8u-3Cx-13@gated-at.bofh.it> <pACbE-5zH-13@gated-at.bofh.it> <pBopY-127-7@gated-at.bofh.it> |
| X-Original-To | Goldwyn Rodrigues <rgoldwyn@suse.com> |
| X-Mailer | Claws Mail 3.11.1 (GTK+ 2.24.28; x86_64-suse-linux-gnu) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=US-ASCII |
| Content-Transfer-Encoding | 7bit |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 47 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | David Teigland <teigland@redhat.com>, linux-kernel@vger.kernel.org |
| X-Original-Date | Tue, 23 Jun 2015 11:34:43 +1000 |
| X-Original-Message-ID | <20150623113443.42b65439@noble> |
| X-Original-References | <20150609182102.GA4305@redhat.com> <55773DE1.7080107@suse.com> <20150609194505.GA17536@redhat.com> <557747AB.7080706@suse.com> <20150609203056.GB17536@redhat.com> <5577AFF4.6020505@suse.com> <20150610150151.GA333@redhat.com> <20150611063131.51fa2ddb@home.neil.brown.name> <20150610210744.GG333@redhat.com> <20150611085034.6b34955c@home.neil.brown.name> <20150612184623.GA5130@redhat.com> <557DFDF3.2060106@suse.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | aioe.org linux.kernel:1170331 |
Show key headers only | View raw
On Sun, 14 Jun 2015 17:19:31 -0500 Goldwyn Rodrigues <rgoldwyn@suse.com> wrote: > > > On 06/12/2015 01:46 PM, David Teigland wrote: > > When a node fails, its dirty areas get special treatment from other nodes > > using the area_resyncing() function. Should the suspend_list be created > > before any reads or writes from the file system are processed by md? It > > seems to me that gfs journal recovery could read/write to dirty regions > > (from the failed node) before md was finished setting up the suspend_list. > > md could probably prevent that by using the recover_prep() dlm callback to > > set a flag that would block any i/o that arrived before the suspend_list > > was ready. > > > > . > > Yes, we should call mddev_suspend() in recover_prep() and mddev_resume() > after suspend_list is created. Thanks for pointing it out. > The only thing that nodes need to be careful of between the time when some other node disappears and when that disappearance has been completely handled is reads. md/raid1 must ensure that if/when the filesystem reads from a region that the missing node was writing to, that the filesystem sees consistent data - on all nodes. So it needs to suspend read-balancing while it is uncertain. Once the bitmap from the node has been loaded, the normal protection against read-balancing in a "dirty" region is sufficient. While waiting for the bitmap to be loaded, the safe thing to do would be to disable read-balancing completely. So I think that recover_prep() should set a flag which disables all read balancing, and recover_done() (or similar) should clear that flag. Probably there should be one flag for each other node. Calling mddev_suspend to suspect all IO is over-kill. Suspending all read balancing is all that is needed. Thanks, NeilBrown -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: clustered MD Neil Brown <neilb@suse.de> - 2015-06-11 01:00 +0200
Re: clustered MD Goldwyn Rodrigues <rgoldwyn@suse.com> - 2015-06-15 00:20 +0200
Re: clustered MD NeilBrown <neilb@suse.com> - 2015-06-23 03:40 +0200
csiph-web