Re: mons die with mon/OSDMonitor.cc: 125: FAILED assert(version >= osdmap.epoch)...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/12/2016 06:38 PM, Eric Hall wrote:
Ok, mon2 and mon3 are happy together, but mon1 dies with
mon/MonitorDBStore.h: 287: FAILED assert(0 == "failed to write to db")

I take this to mean mon1:store.db is corrupt as I see no permission issues.

So... remove mon1 and add a mon?

Nothing special to worry about re-adding a mon on mon1, other than rm/mv
the current store.db path, correct?

You'll actually need to recreate the mon with 'ceph-mon --mkfs' for that to work, and that will likely require you to rm/mv the mon data directory.

You *could* copy the mon dir from one of the other monitors and use that instead. But given you have a functioning quorum, I don't think there's any reason to resort to that.

Follow the docs on removing monitors[1] and recreate the monitor from scratch, adding it to the cluster. It will sync up from scratch from the other monitors. That'll make them happy.

  -Joao

[1] http://docs.ceph.com/docs/master/rados/operations/add-or-rm-mons/#removing-monitors


Thanks again,
--
Eric

On 4/12/16 11:18 AM, Joao Eduardo Luis wrote:
On 04/12/2016 05:06 PM, Joao Eduardo Luis wrote:
On 04/12/2016 04:27 PM, Eric Hall wrote:
On 4/12/16 9:53 AM, Joao Eduardo Luis wrote:

So this looks like the monitors didn't remove version 1, but this may
just be a red herring.

What matters, really, is the values in 'first_committed' and
'last_committed'. If either first or last_committed happens to be '1',
then there may be a bug somewhere in the code, but I doubt that. This
seems just an artefact.

So, it would be nice if you could provide the value of both
'osdmap:first_committed' and 'osdmap:last_committed'.

mon1:
(osdmap, last_committed)
0000 : 01 00 00 00 00 00 00 00                         : ........
(osdmap, fist_committed) does not exist

mon2:
(osdmap, last_committed)
0000 : 01 00 00 00 00 00 00 00                         : ........
(osdmap, fist_committed) does not exist

mon3:
(osdmap, last_committed)
0000 : 01 00 00 00 00 00 00 00                         : ........
(osdmap, first_committed)
0000 : b8 94 00 00 00 00 00 00

Wow! This is unexpected, but fits the assertion just fine.

The solution, I think, will be rewriting first_committed and
last_committed on all monitors - except on mon1.

Let me clarify this a bit: the easy way out for mon1 would be to fix the
other two monitors and recreate mon1.

If you prefer to also fix mon1, you can simply follow the same steps on
the previous email for all the monitors, but ensuring osdmap:full_latest
on mon1 reflects the last available full_XXXX version on its store.

   -Joao

_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux