Bug #23262
kclient: nofail option not supported
0%
Description
I get an invalid argument when trying to mount ceph with nofail option
mon01,mon02,mon03:/ /mnt/ceph ceph name=cephfs,secretfile=/etc/ceph/secret,noatime,nofail 0 0
or
[root@osd003 ~]# mount -t ceph mon01,mon02,mon03:/ /mnt/ceph -o name=admin,secretfile=/etc/ceph/secret,noatime,nofail
mount error 22 = Invalid argument
Without nofail the mount succeeds.
I am running centos7.4 3.10.0-693.17.1.el7. ceph cluster running 12.2.4
Related issues
History
#1 Updated by Chengguang Xu almost 6 years ago
It seems mount command cannot recognize nofail option, not ceph or ceph kernel client.
What version of util-linux do you use? Can you upgrade util-linux to 2.32 and a test again?
#2 Updated by Kenneth Waegeman over 5 years ago
We are running the latest util-linux of centos 7.5, util-linux-2.23.2-52.el7.x86_64.
If we mount another fs type with mount, nofail works (eg tested with NFS), but not with mount.ceph
#3 Updated by Ilya Dryomov over 5 years ago
The issue is that mount.ceph helper doesn't handle nofail, but passes it through to the kernel. nofail is a userspace level option, it shouldn't be making it to the kernel.
mount.ceph.c should be taught to handle nofail: not just skip it, but return success if things like address resolution fail, etc.
#4 Updated by Ilya Dryomov over 5 years ago
- Project changed from Linux kernel client to CephFS
- Component(FS) kceph added
#5 Updated by Patrick Donnelly over 5 years ago
- Subject changed from nofail option not supported to kclient: nofail option not supported
- Assignee set to Zheng Yan
- Priority changed from Normal to High
- Target version set to v14.0.0
- Backport set to mimic,luminous
#6 Updated by Kenneth Waegeman over 5 years ago
any update on this?
thanks!
#7 Updated by Patrick Donnelly about 5 years ago
- Target version changed from v14.0.0 to v15.0.0
#8 Updated by Kenneth Waegeman about 5 years ago
I've an attempt to a fix here https://github.com/ceph/ceph/pull/26992
#9 Updated by Patrick Donnelly almost 5 years ago
- Status changed from New to Pending Backport
- Assignee changed from Zheng Yan to Kenneth Waegeman
- Start date deleted (
03/07/2018) - Backport changed from mimic,luminous to nautilus,mimic,luminous
- Pull request ID set to 26992
#10 Updated by Kenneth Waegeman almost 5 years ago
Hi,
Should I do something to backport it?
#11 Updated by Patrick Donnelly almost 5 years ago
Kenneth Waegeman wrote:
Hi,
Should I do something to backport it?
No that's not necessary.
#12 Updated by Nathan Cutler almost 5 years ago
- Copied to Backport #39231: luminous: kclient: nofail option not supported added
#13 Updated by Nathan Cutler almost 5 years ago
- Copied to Backport #39232: nautilus: kclient: nofail option not supported added
#14 Updated by Nathan Cutler almost 5 years ago
- Copied to Backport #39233: mimic: kclient: nofail option not supported added
#15 Updated by Nathan Cutler over 4 years ago
- Status changed from Pending Backport to Resolved