From 0548d870b65dace2a271b43be32e0beec6e26e9f Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Mon, 20 Nov 2023 03:24:11 +0000 Subject: [PATCH] doc: add actimeo, noresvport mount options in the doc --- deploy/example/nfs/README.md | 6 ++++++ deploy/example/storageclass-azurefile-nfs.yaml | 2 ++ test/e2e/dynamic_provisioning_test.go | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/deploy/example/nfs/README.md b/deploy/example/nfs/README.md index 7140e50580..274d4f2b13 100644 --- a/deploy/example/nfs/README.md +++ b/deploy/example/nfs/README.md @@ -25,8 +25,13 @@ provisioner: file.csi.azure.com parameters: protocol: nfs skuName: Premium_LRS # available values: Premium_LRS, Premium_ZRS +reclaimPolicy: Delete +volumeBindingMode: Immediate +allowVolumeExpansion: true mountOptions: - nconnect=4 + - noresvport + - actimeo=30 ``` run following commands to create a storage class: @@ -62,5 +67,6 @@ helm install --set persistence.storageClass="azurefile-csi-nfs" --set persistenc ``` #### Links + - [Azure File NFS mount options on Linux](https://learn.microsoft.com/en-us/azure/storage/files/storage-files-how-to-mount-nfs-shares#mount-options) - [Troubleshoot Azure NFS file shares](https://docs.microsoft.com/en-us/azure/storage/files/storage-troubleshooting-files-nfs) - [Mount NFS Azure file share on Linux limitations](https://learn.microsoft.com/en-us/azure/storage/files/storage-files-how-to-mount-nfs-shares#limitations) diff --git a/deploy/example/storageclass-azurefile-nfs.yaml b/deploy/example/storageclass-azurefile-nfs.yaml index 1f852d2c75..ffff2c2a6f 100644 --- a/deploy/example/storageclass-azurefile-nfs.yaml +++ b/deploy/example/storageclass-azurefile-nfs.yaml @@ -12,3 +12,5 @@ volumeBindingMode: Immediate allowVolumeExpansion: true mountOptions: - nconnect=4 + - noresvport + - actimeo=30 diff --git a/test/e2e/dynamic_provisioning_test.go b/test/e2e/dynamic_provisioning_test.go index a1be4837d4..ecea2b4d3c 100644 --- a/test/e2e/dynamic_provisioning_test.go +++ b/test/e2e/dynamic_provisioning_test.go @@ -1213,6 +1213,8 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() { "nconnect=4", "rsize=1048576", "wsize=1048576", + "noresvport", + "actimeo=30", }, VolumeMount: testsuites.VolumeMountDetails{ NameGenerate: "test-volume-", @@ -1251,6 +1253,8 @@ var _ = ginkgo.Describe("Dynamic Provisioning", func() { "nconnect=4", "rsize=1048576", "wsize=1048576", + "noresvport", + "actimeo=30", }, VolumeMount: testsuites.VolumeMountDetails{ NameGenerate: "test-volume-",