Bug #23262
closed
kclient: nofail option not supported
Added by Kenneth Waegeman about 6 years ago.
Updated almost 5 years ago.
Backport:
nautilus,mimic,luminous
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
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?
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
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.
- Project changed from Linux kernel client to CephFS
- Component(FS) kceph added
- 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
any update on this?
thanks!
- Target version changed from v14.0.0 to v15.0.0
- 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
Hi,
Should I do something to backport it?
Kenneth Waegeman wrote:
Hi,
Should I do something to backport it?
No that's not necessary.
- Copied to Backport #39231: luminous: kclient: nofail option not supported added
- Copied to Backport #39232: nautilus: kclient: nofail option not supported added
- Copied to Backport #39233: mimic: kclient: nofail option not supported added
- Status changed from Pending Backport to Resolved
Also available in: Atom
PDF