kclient: nofail option not supported
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
[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
#3 Updated by Ilya Dryomov 5 months 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.