Project

General

Profile

Actions

Bug #1389

closed

re-created snapshot gets removed by mds journal replay

Added by Alexandre Oliva over 12 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Say you enter a snapshot pseudo-dir then run:

mkdir test
rmdir test
mkdir test

then restart the mds, and run:

ls

you'll find see test isn't there any more. Oops.

now, doing something like:

mkdir test
touch ..
touch -r test ..
rmdir test
mkdir test

works (i.e., after restarting the mds the directory is still there), presumably because we're now binding the snapshot name to a different version of the directory.

Changes to files within the snapshotted directory appear to suffice to get the snapshot to survive an mds restart as well.

Actions #1

Updated by Sage Weil over 12 years ago

  • Target version set to v0.34

Is this with the kernel or fuse client?

Actions #2

Updated by Alexandre Oliva over 12 years ago

I'm pretty sure I got it with both, before I understood why my snapshots were disappearing. Once I did, I only tested the procedure on an otherwise quiescent 0.32 cluster using the kernel (2.6.38) client.

Actions #3

Updated by Sage Weil over 12 years ago

  • Category set to 1
  • Status changed from New to Resolved

fixed by commit:d60d5319ad5d6674488cab96b4a452ff553e779b

Actions #4

Updated by John Spray over 7 years ago

  • Project changed from Ceph to CephFS
  • Category deleted (1)
  • Target version deleted (v0.34)

Bulk updating project=ceph category=mds bugs so that I can remove the MDS category from the Ceph project to avoid confusion.

Actions

Also available in: Atom PDF