Bug #2105
closedfilestore: mkfs does not create initial snap
Description
This bug almost the same as this bug:http://tracker.newdream.net/issues/1707
I followed the instruction:http://ceph.newdream.net/docs/latest/ops/install/mkcephfs/ to install ceph and configure the cluster on Debian Squeeze 6.0.3 on all nodes.
After I run the command:"mkcephfs - a - c mycluster.conf - k mycluster.keyring"
I did not get any errors, but when I run the command:"ceph - k mycluster.keyring -c mycluster.conf health".
The result is:
2012-02-27 03:20:58.064745 mon < - [health]
2012-02-27 03:20:58.065714 mon.0 -> 'HEALTH_ERR no osds' (0)
Then I check the log, found this error:
_2012-02-27 00:47:05.909476 7f0679f73780 filestore(/ceph/osd.0) error (17) File exists not handled on operation 20 (op num 1, counting from 1)
2012-02-27 00:47:05.909485 7f0679f73780 filestore(/ceph/osd.0) unexpected error code
2012-02-27 00:47:05.909503 7f0679f73780 filestore(/ceph/osd.0) transaction dump:
1: mkcoll meta
2: write meta 23c2fcde/osd_superblock/0 0~106 (106)
3: mkcoll temp
os/FileStore.cc: In function 'unsigned int FileStore::_do_transaction(ObjectStore::Transaction&, uint64_t)' thread 7f0679f73780 time 2012-02-27 00:47:05.909526
os/FileStore.cc: 2475: FAILED assert(0 == "unexpected error")
ceph version 0.42.2 (commit:732f3ec94e39d458230b7728b2a936d431e19322)_
the full log is here:
Files
Updated by Sage Weil about 12 years ago
- Category set to OSD
- Priority changed from Normal to Urgent
- Source changed from Development to Community (user)
Updated by Sage Weil about 12 years ago
- Subject changed from After ceph cluster installed, OSD initialization fails with: error error 17: error (17) File exists not handled on operation 20 (op num 1, counting from 1) to filestore: mkfs does not create initial snap
- Status changed from New to 7
- Assignee set to Sage Weil
- Target version set to v0.44
Thanks for the report!
The mkfs doesn't create an initial snap, so if we crash/stop before creating one, our first journal events will get replayed against a dirty current/. See wip-2105 for fix.
Updated by Sage Weil about 12 years ago
- Status changed from 7 to Fix Under Review
Updated by Sage Weil about 12 years ago
- Status changed from Fix Under Review to Resolved
Fix is merged.. this'll be in v0.44.
Thanks for the bug report (and detailed log!)