From: Willem Jan Withagen Subject: Re: Mismatching nonce for 'ceph osd.0 tell' Date: Wed, 28 Sep 2016 14:01:56 +0200 Message-ID: <89a9ee77-21db-e955-7bb3-c4adc3bb94bf@digiware.nl> References: <14688c37-068c-0bc6-615d-de2f8f5bfdc6@digiware.nl> <3df7e2ed-eb34-8ba8-8a8d-9d7b66e45315@digiware.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from smtp.digiware.nl ([176.74.240.9]:56724 "EHLO smtp.digiware.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753896AbcI1MCB (ORCPT ); Wed, 28 Sep 2016 08:02:01 -0400 In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Gregory Farnum Cc: Haomai Wang , Ceph Development On 13-9-2016 22:35, Gregory Farnum wrote: > On Tue, Sep 13, 2016 at 1:29 PM, Willem Jan Withagen wrote: >> On 13-9-2016 21:52, Gregory Farnum wrote: >>> Is osd.0 actually running? If so it *should* have a socket, unless >>> you've disabled them somehow. Check the logs and see if there are >>> failures when it gets set up, I guess? >>> >>> Anyway, something has indeed gone terribly wrong here. I know at one >>> point you had some messenger patches you were using to try and get >>> stuff going on BSD; if you still have some there I think you need to >>> consider them suspect. Otherwise, uh...the network stack is behaving >>> very differently than Linux's? >> >> So what is the expected result of an osd down/up? >> >> Before it is connected to ports like: >> 127.0.0.1:{6800,,6801,6802}/{nonce=pid-like} >> after the osd has gone down/up the sockets work be: >> 127.0.0.1:{6800,,6801,6802}/{(nonce=pid-like)+1000000} >> >> or are the ports also incremented? > > IIRC, it should usually be the same ports and different nonce. But the > port is *allowed* to change; that happens sometimes if there was an > unclean shutdown and the port is still considered in-use by the OS for > instance. > ATM, I have the feeling that I'm even more off track. In FreeBSD I have: 119: starting osd.0 at :/0 osd_data testdir/osd-bench/0 testdir/osd-bench/0/journal 119: create-or-move updating item name 'osd.0' weight 1 at location {host=localhost,root=default} to crush map 119: 0 119: epoch 5 119: fsid 6e5ab220-d761-4636-b4b0-27eacadb41e3 119: created 2016-09-28 02:32:44.704630 119: modified 2016-09-28 02:32:49.971511 119: flags sortbitwise,require_jewel_osds,require_kraken_osds 119: pool 1 'rbd' replicated size 3 min_size 2 crush_ruleset 0 object_hash rjenkins pg_num 4 pgp_num 4 last_change 3 flags hashpspool stripe_width 0 119: max_osd 1 119: osd.0 down out weight 0 up_from 0 up_thru 0 down_at 0 last_clean_interval [0,0) :/0 :/0 :/0 :/0 exists,new 1dddf568-c6dd-47d1-b4b4-584867a8b48d Where as in Linux I have, at the same point in the script: 130: starting osd.0 at :/0 osd_data testdir/osd-bench/0 testdir/osd-bench/0/journal 130: create-or-move updating item name 'osd.0' weight 1 at location {host=localhost,root=default} to crush map 130: 0 130: osd.0 up in weight 1 up_from 6 up_thru 6 down_at 0 last_clean_interval [0,0) 127.0.0.1:6800/19815 127.0.0.1:6801/19815 127.0.0.1:6802/19815 127.0.0.1:6803/19815 exists,up 084e3410-9eb9-4fc3-b395-e46e9587d351 Question here is: If I ask 'ceph osd dump', I'm actually asking ceph-mon. And cehp-mon has learned this from (crush?)maps being sent to it by ceph-osd. Is there an easy way to debug/monitor the content of what ceph-osd sends and ceph-mon receives in the maps? Just to make sure that it is clear where the problem occurs. thanx, --WjW