From: David Zafman Subject: Re: Failure to repair an omap digest Date: Mon, 9 Jan 2017 15:09:21 -0800 Message-ID: <1413698f-81d9-cf0f-fdc2-255c16a9404a@redhat.com> References: <85235bfc-34da-4e31-1eb3-259477445967@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com ([209.132.183.28]:36328 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750821AbdAIXJW (ORCPT ); Mon, 9 Jan 2017 18:09:22 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 64ECB4DD5F for ; Mon, 9 Jan 2017 23:09:23 +0000 (UTC) In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Samuel Just Cc: Dan Mick , ceph-devel Look at https://github.com/ceph/ceph/pull/9032 to see pending doc changes which were already in the works. David On 1/9/17 1:09 PM, Samuel Just wrote: > Sounds like this should be added to the docs! > -Sam > > On Mon, Jan 9, 2017 at 1:05 PM, David Zafman wrote: >> ceph version 11.1.0-6147-g12706d7 (12706d76225fa1491d00362d3bc04e0541dead73) >> >> A failure to repair occurred because without a digest in the object info the >> code doesn't attempt to decide which omap is wrong. Here we only have an >> omap_digest_mismatch error. Had the "selected_object_info" included "od" >> presuambly of 1fff04c0 then "omap_digest_mismatch_oi" would have been set on >> osd.47 and it would be repaired. >> >> The way to fix this particular case is to stop osd.47, remove the object >> with ceph-objectstore-tool, then restart osd.47 and the repair should then >> re-create a correct object and omap there. As you can see the object name >> is 100011cf577.00000000 in pool 1 (metadata). >> >> $ sudo rados list-inconsistent-pg metadata >> ["1.25"] >> >> $ sudo rados list-inconsistent-obj 1.25 --format=json-pretty >> { >> "epoch": 767566, >> "inconsistents": [ >> { >> "object": { >> "name": "100011cf577.00000000", >> "nspace": "", >> "locator": "", >> "snap": "head", >> "version": 9023143 >> }, >> "errors": [ >> "omap_digest_mismatch" >> ], >> "union_shard_errors": [], >> "selected_object_info": >> "1:a7f0f16e:::100011cf577.00000000:head(768083'9023143 mds.0.94887:9732381 >> dirty|omap|data_digest s 0 uv 9023143 dd ffffffff alloc_hint [0 0 0])", >> "shards": [ >> { >> "osd": 7, >> "errors": [], >> "size": 0, >> "omap_digest": "0x1fff04c0", >> "data_digest": "0xffffffff" >> }, >> { >> "osd": 47, >> "errors": [], >> "size": 0, >> "omap_digest": "0xc2c5ddcd", >> "data_digest": "0xffffffff" >> }, >> { >> "osd": 60, >> "errors": [], >> "size": 0, >> "omap_digest": "0x1fff04c0", >> "data_digest": "0xffffffff" >> }, >> { >> "osd": 72, >> "errors": [], >> "size": 0, >> "omap_digest": "0x1fff04c0", >> "data_digest": "0xffffffff" >> } >> ] >> } >> ] >> } >> >> >> David >> >> -- >> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html