Project

General

Profile

Actions

Bug #24419

closed

ceph-objectstore-tool unable to open mon store

Added by dovefi Z almost 6 years ago. Updated over 4 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
-
Category:
Administration/Usability
Target version:
% Done:

0%

Source:
Support
Tags:
ceph-objectstore-tool --mon-store-path
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hi,everyone;
I use luminous v12.2.5,and i try to recovery monitor database from osds,
I perform step by step according to the official website's documentation
http://docs.ceph.com/docs/master/rados/troubleshooting/troubleshooting-mon/#recovery-using-osds,
i have 2 hosts A and B, 3 osds per host.
but after i collected map from osds of A and rsync mon store to B, and try to collect map from B,
it print a errer "unable to open mon store /tmp/mon-store",here were what i did.
step1: collect from host A

[root@gz-open-dw-c204 recover]# MS=/tmp/mon-store/; mkdir $MS; host=gz-open-dw-c204; ssh -t root@$host "for osd in /var/lib/ceph/osd/ceph-*; do  ceph-objectstore-tool --type bluestore --data-path \$osd --op update-mon-db --mon-store-path $MS; done" 
root@gz-open-dw-c204's password:
osd.0   : 0 osdmaps trimmed, 52 osdmaps added.
          267 pgs added.
osd.1   : 0 osdmaps trimmed, 0 osdmaps added.
          259 pgs added.
osd.2   : 0 osdmaps trimmed, 0 osdmaps added.
          242 pgs added.
Connection to gz-open-dw-c204 closed.

step2: rsync to host B
[root@gz-open-dw-c204 recover]# MS=/tmp/mon-store; host=gz-open-dw-c205; rsync -avz $MS/ root@$host:$MS/
root@gz-open-dw-c205's password:
sending incremental file list
created directory /tmp/mon-store
./
kv_backend
store.db.wal/
store.db.wal/000009.log
store.db/
store.db/CURRENT
store.db/IDENTITY
store.db/LOCK
store.db/MANIFEST-000008
store.db/OPTIONS-000008
store.db/OPTIONS-000011

sent 16457 bytes  received 175 bytes  3696.00 bytes/sec
total size is 148691  speedup is 8.94

step3: collect from B
[root@gz-open-dw-c204 recover]# MS=/tmp/mon-store/; host=gz-open-dw-c205; ssh -t root@$host "for osd in /var/lib/ceph/osd/ceph-*; do  ceph-objectstore-tool --type bluestore --data-path \$osd --op update-mon-db --mon-store-path $MS; done" 
root@gz-open-dw-c205's password:
unable to open mon store: /tmp/mon-store/
unable to open mon store: /tmp/mon-store/
unable to open mon store: /tmp/mon-store/
Connection to gz-open-dw-c205 closed.

why ??? i try to read the source code, but it is too hard for me,wish somebody cant help

Actions

Also available in: Atom PDF