Bug #1999
osd: bad current/ version on osd restart
Status:
Resolved
Priority:
High
Assignee:
-
Category:
OSD
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
this was triggered by thrashing on
ubuntu@teuthology:/a/nightly_coverage_2012-01-29-a/9641
*** Caught signal (Terminated) ** in thread 7fde3648c780. Shutting down. 2012-01-29 01:45:43.184607 7fcbe603b780 ceph version 0.41-14-g5e16974 (commit:5e16974c291e78f5a7cdc3c4f680e7817cff3cca), process ceph-osd, pid 10316 2012-01-29 01:45:43.185618 7fcbe603b780 filestore(/tmp/cephtest/data/osd.2.data) mount FIEMAP ioctl is NOT supported 2012-01-29 01:45:43.185650 7fcbe603b780 filestore(/tmp/cephtest/data/osd.2.data) mount detected btrfs 2012-01-29 01:45:43.185669 7fcbe603b780 filestore(/tmp/cephtest/data/osd.2.data) mount btrfs CLONE_RANGE ioctl is supported 2012-01-29 01:45:43.240029 7fcbe603b780 filestore(/tmp/cephtest/data/osd.2.data) mount btrfs SNAP_CREATE is supported 2012-01-29 01:45:43.288089 7fcbe603b780 filestore(/tmp/cephtest/data/osd.2.data) mount btrfs SNAP_DESTROY is supported 2012-01-29 01:45:43.288420 7fcbe603b780 filestore(/tmp/cephtest/data/osd.2.data) mount btrfs START_SYNC is supported (transid 63) 2012-01-29 01:45:43.364912 7fcbe603b780 filestore(/tmp/cephtest/data/osd.2.data) mount btrfs WAIT_SYNC is supported 2012-01-29 01:45:43.368579 7fcbe603b780 filestore(/tmp/cephtest/data/osd.2.data) mount btrfs SNAP_CREATE_V2 is supported 2012-01-29 01:45:43.419301 7fcbe603b780 filestore(/tmp/cephtest/data/osd.2.data) mount found snaps <2068,2083> 2012-01-29 01:45:43.419351 7fcbe603b780 filestore(/tmp/cephtest/data/osd.2.data) ERROR: current/ volume data version is not equal to snapshotted version. 2012-01-29 01:45:43.419373 7fcbe603b780 filestore(/tmp/cephtest/data/osd.2.data) Current version 0, last snap 2083 2012-01-29 01:45:43.419407 7fcbe603b780 filestore(/tmp/cephtest/data/osd.2.data) Force rollback to snapshotted version with 'osd use stale snap = true' 2012-01-29 01:45:43.419425 7fcbe603b780 filestore(/tmp/cephtest/data/osd.2.data) config option for --osd-use-stale-snap startup argument. 2012-01-29 01:45:43.419539 7fcbe603b780 ESC[0;31m ** ERROR: error converting store /tmp/cephtest/data/osd.2.data: (95) Operation not supportedESC[0m
Associated revisions
filestore: fix rollback when current/ missing entirely
This can happen when we are starting, rolling back, remove current/, and
then fail before we snapshot a snap_ into place.
Most of the logic was already in place for this; we tried to fix it in
cd2dedd7d190a43a6be50a7f18849fe0123c72bc but missed this piece.
Fixes: #1999
Signed-off-by: Sage Weil <sage@newdream.net>
History
#1 Updated by Sage Weil almost 12 years ago
- Status changed from New to Resolved