-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ineffective configuration option in StorageClass "mountOptions:[noatime]" when using cephfs as backend storageclass #1506
Comments
The mount commands that are executed do list the options correctly:
It is possible that the options passed to fuse are not available on the output of |
Well, I used to check the
From which, We can find that in this |
you need to set fuseMountOptions
|
Thanks for your advice. @Madhu-1
Then deploy the demo.yaml file, I can find the error described as following:
This may be a little weird right? For multiple mount options, there should be several '-o' option like ceph-fuse /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-03fc9f5b-d545-4d06-96ba-52624ceb0b1a/globalmount -m 10.142.139.100:6789,10.142.139.101:6789,10.142.139.102:6789 -c /etc/ceph/ceph.conf -n client.admin --keyfile=/tmp/csi/keys/keyfile-025574877 -r /volumes/csi/csi-vol-409620d4-f0df-11ea-83c6-ee13fb4b456d -o nonempty -o noatime --client_mds_namespace=cephfs instead of ceph-fuse /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-03fc9f5b-d545-4d06-96ba-52624ceb0b1a/globalmount -m 10.142.139.100:6789,10.142.139.101:6789,10.142.139.102:6789 -c /etc/ceph/ceph.conf -n client.admin --keyfile=/tmp/csi/keys/keyfile-025574877 -r /volumes/csi/csi-vol-409620d4-f0df-11ea-83c6-ee13fb4b456d -o nonempty,noatime --client_mds_namespace=cephfs Is that right? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. Please re-open if this still requires investigation. |
Environment:
Ceph cluster: 14.2.7 nautilus (stable)
Kubernetes: v1.16.3
Ceph CSI version: v2.1.1
We use helm chart to deploy ceph-csi-cephfs-plugin in namespace: kube-system
$ helm list -n kube-system
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
ceph-csi-cephfs kube-system 4 2020-07-14 10:20:07.048355676 +0800 CST deployed ceph-csi-cephfs-2.1.1-canary v2.1.1
Which including one DaemonSet named 'ceph-csi-cephfs-nodeplugin' and one Deployment named 'ceph-csi-cephfs-provisioner'
Then I create one StorageClass with yaml:
After that, I create one deployment.yaml(using nginx image and applying for PersistentVolumeClaim to mount to directory '/usr/share/nginx/html'), this PersistentVolumeClaim direct to StorageClass 'csi-cephfs-sc-noatime', yaml file appears as following:
When the deployment finished and login inside the container, type command 'mount|grep fuse':
It seems that mount option about 'noatime' does not work.
Then in the output log of container 'csi-cephfsplugin', we can find:
So is there anyone who is able to give me a hand about this, so appreciated in advance.
The text was updated successfully, but these errors were encountered: