Actions
Bug #38832
closedmds: fail to resolve snapshot name contains '_'
% Done:
0%
Source:
Community (user)
Tags:
Backport:
nautilus,mimic
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client, MDS
Labels (FS):
snapshots, task(easy), task(intern)
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
We observed the following issue on latest centos 7.6 kernel && kernel v5.0.3.
We mount ceph in /cephk:
mount -t ceph lumupgtest.cern.ch:6789:/quotadir /cephk/ -o name=admin,secret=xxx
/cephk has a subdir asdf:
# ls -l /cephk total 102773 drwxr-xr-x 2 root root 0 Mar 20 17:07 asdf -rw-r--r-- 1 root root 105239036 Mar 19 13:16 linux-5.0.3.tar.xz
Previously created snapshots (in /cephk/.snap) are not listable from the subdir asdf:
# ls /cephk/asdf/.snap ls: cannot access /cephk/asdf/.snap/_hourly_2019-03-20_170936_1099511812927: No such file or directory ls: cannot access /cephk/asdf/.snap/_hourly_2019-03-20_171215_1099511812927: No such file or directory ls: cannot access /cephk/asdf/.snap/_hourly_2019-03-20_171230_1099511812927: No such file or directory ls: cannot access /cephk/asdf/.snap/_hourly_2019-03-20_172736_1099511812927: No such file or directory _hourly_2019-03-20_170936_1099511812927 _hourly_2019-03-20_171230_1099511812927 _hourly_2019-03-20_171215_1099511812927 _hourly_2019-03-20_172736_1099511812927
We can fix by listing the dir from where it was snapshotted; afterwards the snap can be listed from the subdir:
# ls /cephk/.snap/hourly_2019-03-20_170936 asdf linux-5.0.3.tar.xz # ls /cephk/asdf/.snap ls: cannot access /cephk/asdf/.snap/_hourly_2019-03-20_171215_1099511812927: No such file or directory ls: cannot access /cephk/asdf/.snap/_hourly_2019-03-20_171230_1099511812927: No such file or directory ls: cannot access /cephk/asdf/.snap/_hourly_2019-03-20_172736_1099511812927: No such file or directory _hourly_2019-03-20_170936_1099511812927 _hourly_2019-03-20_171230_1099511812927 _hourly_2019-03-20_171215_1099511812927 _hourly_2019-03-20_172736_1099511812927 # ls /cephk/asdf/.snap/_hourly_2019-03-20_170936_1099511812927 #
Actions