From: Alexandre Oliva Subject: Re: enable old OSD snapshot to re-join a cluster Date: Fri, 20 Dec 2013 03:45:49 -0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from linux-libre.fsfla.org ([208.118.235.54]:54107 "EHLO linux-libre.fsfla.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752668Ab3LTFqK (ORCPT ); Fri, 20 Dec 2013 00:46:10 -0500 In-Reply-To: (Gregory Farnum's message of "Thu, 19 Dec 2013 11:28:54 -0800") Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Gregory Farnum Cc: Samuel Just , "ceph-devel@vger.kernel.org" On Dec 19, 2013, Gregory Farnum wrote: > On Wed, Dec 18, 2013 at 11:32 PM, Alexandre Oliva wrote: >> On Dec 18, 2013, Gregory Farnum wrote: >> >>> On Tue, Dec 17, 2013 at 3:36 AM, Alexandre Oliva wrote: >>>> Here's an updated version of the patch, that makes it much faster than >>>> the earlier version, particularly when the gap between the latest osdmap >>>> known by the osd and the earliest osdmap known by the cluster is large. >> >>> Is this actually still necessary in the latest dumpling and emperor >>> branches? >> >> I can't tell for sure, I don't recall when I last rolled back to an old >> snapshot without this kind of patch. >> >>> I thought sufficiently-old OSDs would go through backfill with the new >>> PG members in order to get up-to-date without copying all the data. >> >> That much is true, for sure. The problem was getting to that point. >> >> If the latest osdmap known by the osd snapshot turns out to be older >> than the earliest map known by the monitors, the osd would give up >> because it couldn't make the ends meet: no incremental osdmaps were >> available in the cluster, and the osd refused to jump over gaps in the >> osdmap sequence. >> I can give a try without the patch if you tell me there's any chance the >> osd might now be able to jump over gaps in the osdmap sequence. > I don't remember exactly when it got changed, but I think so. Excellent, I've just confirmed that recovery from an old snapshot works, even without the proposed patch. Yay! Thanks! -- Alexandre Oliva, freedom fighter http://FSFLA.org/~lxoliva/ You must be the change you wish to see in the world. -- Gandhi Be Free! -- http://FSFLA.org/ FSF Latin America board member Free Software Evangelist Red Hat Brazil Compiler Engineer