https://tracker.ceph.com/https://tracker.ceph.com/favicon.ico2011-06-16T16:51:32ZCeph Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=43722011-06-16T16:51:32ZBrian Chrismanbrchrisman@gmail.com
<ul></ul><p>I reproduced the problem several times before submitting this bug but can't reproduce it now.<br />I'm going to leave this open until tomorrow when I can try again with a fuller filesystem (only possible difference, though I'm pretty sure I ran a mkcephfs in there during my previous recreation).</p> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=44432011-06-20T15:08:12ZBrian Chrismanbrchrisman@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/download/255/STALE_on_remount.messages.log">STALE_on_remount.messages.log</a> <a class="icon-only icon-magnifier" title="View" href="/attachments/255/STALE_on_remount.messages.log">View</a> added</li><li><strong>File</strong> <a href="/attachments/download/256/STALE_on_remount.mds.log">STALE_on_remount.mds.log</a> <a class="icon-only icon-magnifier" title="View" href="/attachments/256/STALE_on_remount.mds.log">View</a> added</li></ul><p>I was able to reproduce this.<br />ESTALE shows up in the messages log.<br />I don't see much in the mds log.</p>
<p>At this point, the fs is pretty much borked until I go into the ceph direct mount and perform lookup operations.<br />I turned mds and kernel logging on just before running the operation I new would produce the ESTALE.<br />I'm not sure how much I'd have to do to go from scratch as this is after copying a source tree to the filesystem with scp, then startup up the nfs export, then mounting, then attempting to build. That encounters an ESTALE and I continue to get the ESTALE after I've restarted everything from ceph on up (without umount/mount of the NFS client).</p>
<p>In this case, the NFS client is holding filehandles while the ceph/NFS server restart.</p> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=46932011-07-05T09:22:51ZSage Weilsage@newdream.net
<ul><li><strong>Target version</strong> set to <i>v0.32</i></li></ul> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=47352011-07-05T11:08:00ZSage Weilsage@newdream.net
<ul><li><strong>translation missing: en.field_position</strong> set to <i>723</i></li></ul> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=49302011-07-15T20:58:54ZSage Weilsage@newdream.net
<ul><li><strong>Assignee</strong> set to <i>Sage Weil</i></li></ul><p>I don't have things set up to reproduce/test this easily, but it looks like this is the problem. Can you give it a go?</p>
<pre>
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index 79743d1..5e0e8d1 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -1571,11 +1571,11 @@ static int set_request_path_attr(struct inode *rinode, struct dentry *rdentry,
r = build_dentry_path(rdentry, ppath, pathlen, ino, freepath);
dout(" dentry %p %llx/%.*s\n", rdentry, *ino, *pathlen,
*ppath);
- } else if (rpath) {
+ } else if (rpath || rino) {
*ino = rino;
*ppath = rpath;
*pathlen = strlen(rpath);
- dout(" path %.*s\n", *pathlen, rpath);
+ dout(" path #%llx/%.*s\n", rino, *pathlen, rpath);
}
return r;
</pre> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=49862011-07-23T20:35:04ZSage Weilsage@newdream.net
<ul><li><strong>Target version</strong> changed from <i>v0.32</i> to <i>v0.33</i></li><li><strong>translation missing: en.field_position</strong> deleted (<del><i>755</i></del>)</li><li><strong>translation missing: en.field_position</strong> set to <i>4</i></li></ul> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=50032011-07-25T09:23:31ZSage Weilsage@newdream.net
<ul><li><strong>Subject</strong> changed from <i>NFS reexport does not survive ceph fs remount</i> to <i>kclient: NFS reexport does not survive ceph fs remount</i></li><li><strong>translation missing: en.field_position</strong> deleted (<del><i>7</i></del>)</li><li><strong>translation missing: en.field_position</strong> set to <i>7</i></li></ul> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=52092011-08-08T09:18:44ZSage Weilsage@newdream.net
<ul><li><strong>Target version</strong> changed from <i>v0.33</i> to <i>v0.34</i></li></ul> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=52492011-08-08T09:21:53ZSage Weilsage@newdream.net
<ul><li><strong>translation missing: en.field_position</strong> deleted (<del><i>28</i></del>)</li><li><strong>translation missing: en.field_position</strong> set to <i>23</i></li></ul> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=54222011-08-15T13:31:41ZSage Weilsage@newdream.net
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>7</i></li></ul><p>pushed this to for-linus branch.</p> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=55282011-08-20T11:08:38ZSage Weilsage@newdream.net
<ul><li><strong>Target version</strong> changed from <i>v0.34</i> to <i>v0.35</i></li></ul> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=60062011-09-01T13:06:43ZSage Weilsage@newdream.net
<ul><li><strong>Assignee</strong> changed from <i>Sage Weil</i> to <i>Brian Chrisman</i></li></ul> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=61012011-09-06T21:49:16ZSage Weilsage@newdream.net
<ul><li><strong>Target version</strong> changed from <i>v0.35</i> to <i>v0.36</i></li></ul> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=62632011-09-07T12:03:44ZSage Weilsage@newdream.net
<ul><li><strong>translation missing: en.field_position</strong> deleted (<del><i>106</i></del>)</li><li><strong>translation missing: en.field_position</strong> set to <i>1</i></li><li><strong>translation missing: en.field_position</strong> changed from <i>1</i> to <i>905</i></li></ul> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=64172011-09-25T14:14:57ZSage Weilsage@newdream.net
<ul><li><strong>Target version</strong> changed from <i>v0.36</i> to <i>v0.37</i></li></ul> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=65812011-10-09T20:39:53ZSage Weilsage@newdream.net
<ul><li><strong>Target version</strong> changed from <i>v0.37</i> to <i>v0.38</i></li></ul> Ceph - Bug #1194: kclient: NFS reexport does not survive ceph fs remounthttps://tracker.ceph.com/issues/1194?journal_id=67762011-10-25T16:46:24ZSage Weilsage@newdream.net
<ul><li><strong>Status</strong> changed from <i>7</i> to <i>Resolved</i></li></ul><p>going to assume the above fixed it until we hear otherwise :)</p>