This is an automated email from the ASF dual-hosted git repository.

sureshanaparti pushed a commit to branch 4.19
in repository https://gitbox.apache.org/repos/asf/cloudstack-documentation.git


The following commit(s) were added to refs/heads/4.19 by this push:
     new 7ecbace  Documentation for adding NFS mount options to storage pool 
(#396)
7ecbace is described below

commit 7ecbacedee51f4f1eb0d7bfe5aaa048ed5f57f02
Author: Abhisar Sinha <[email protected]>
AuthorDate: Tue Jun 25 23:47:10 2024 +0530

    Documentation for adding NFS mount options to storage pool (#396)
    
    * Documentation for adding NFS mount options to storage pool
    
    * Pull 396: Addressed review comments
    
    * Pull 396: Added comment on what happens when incorrect mount option is 
given
    
    * Pull 396: storage pool remains in maintenance mode on mount failure
---
 .../nfs-mount-options-add-primary-storage.png      | Bin 0 -> 55839 bytes
 .../nfs-mount-options-create-zone-wizard.png       | Bin 0 -> 70377 bytes
 .../nfs-mount-options-edit-primary-storage.png     | Bin 0 -> 56921 bytes
 source/adminguide/storage.rst                      |  74 +++++++++++++++++++++
 4 files changed, 74 insertions(+)

diff --git a/source/_static/images/nfs-mount-options-add-primary-storage.png 
b/source/_static/images/nfs-mount-options-add-primary-storage.png
new file mode 100644
index 0000000..6471924
Binary files /dev/null and 
b/source/_static/images/nfs-mount-options-add-primary-storage.png differ
diff --git a/source/_static/images/nfs-mount-options-create-zone-wizard.png 
b/source/_static/images/nfs-mount-options-create-zone-wizard.png
new file mode 100644
index 0000000..e88b1e7
Binary files /dev/null and 
b/source/_static/images/nfs-mount-options-create-zone-wizard.png differ
diff --git a/source/_static/images/nfs-mount-options-edit-primary-storage.png 
b/source/_static/images/nfs-mount-options-edit-primary-storage.png
new file mode 100644
index 0000000..6592201
Binary files /dev/null and 
b/source/_static/images/nfs-mount-options-edit-primary-storage.png differ
diff --git a/source/adminguide/storage.rst b/source/adminguide/storage.rst
index f4d9698..62dc864 100644
--- a/source/adminguide/storage.rst
+++ b/source/adminguide/storage.rst
@@ -185,6 +185,7 @@ ensure that the protocol is set to "Filesystem".
 
 |adding-local-pool-via-ui.png|
 
+
 Storage Tags
 ~~~~~~~~~~~~
 
@@ -237,6 +238,73 @@ templates, and ISOs.
 .. note::
    If files or folders are not associated with a cloudstack resource, it 
doesn't mean that they are not used by cloudstack.
 
+
+Setting NFS Mount Options on the Storage Pool
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+NFS mount options can be added while creating an NFS storage pool for
+KVM hosts. When the storage pool is mounted on the KVM hypervisor host,
+these options will be used. Options currently tested and supported are
+`vers` and `nconnect`. 
+
+Although it depends on the NFS server, but commonly supported `vers` values 
+are `3` for NFSv3 and minor versions `4.0, 4.1 and 4.2` for NFSv4. 
+`nconnect` values can range from 1 to 16.
+
+Administrator can give the NFS mount options while adding a Primary Storage
+from the Create Zone Wizard as well as the Add Primary Storage form.
+|nfs-mount-options-create-zone-wizard.png|
+|nfs-mount-options-add-primary-storage.png|
+
+NFS mount options can be changed on a pre-existing Storage Pool in maintenance
+mode using the Edit Primary Storage form. Running VMs using volumes in the
+Storage Pool will either be stopped or the volumes would be migrated to other
+available pools upon enabling maintenance mode.
+Storage Pool will be unmounted and mounted again on the KVM hosts using the
+new options upon cancelling the maintenance mode.
+|nfs-mount-options-edit-primary-storage.png|
+
+Mount failing due to an incorrect mount option
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Add Storage Pool will fail with the error ``An incorrect mount option was 
specified``.
+
+In the Update storage pool case, cancel maintenance will throw the above error.
+The Administrator should set the correct mount option and cancel the 
maintenance mode again.
+
+
+Version Requirements
+^^^^^^^^^^^^^^^^^^^^
+This feature needs libvirt version 5.1.0 and above on the KVM hosts.
+
+The `nconnect` mount option exists in all Linux distributions with kernel 5.3 
or higher
+  
+A note on the `nconnect` option
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+This option defines the count of TCP connections that the client makes
+to the NFS server. The `nconnect` setting is applied only during the
+first mount process to the particular NFS server for a given NFS version.
+
+If the same client executes the mount command again to the same NFS server 
using
+the same version, it will get the same `nconnect` value as the first mount.
+All mount point to the same server at a given version share the same number
+of TCP connections. To change the `nconnect` settings all the such mount points
+need to be unmounted and then mounted again with the new `nconnect` value.
+
+So, from CloudStack’s perspective also, the first storage pool created from an
+NFS server will set the `nconnect` setting on the hypervisor host corresponding
+to the server. Specifying a different `nconnect` mount option while creating a
+new storage pool from the same server will not change the `nconnect` setting 
on the host.
+
+Similarly if there is only one pre-existing storage pool from a give NFS server
+mounted on the host, modifying the `nconnect` mount option via CloudStack will
+change the `nconnect` setting on that host. If there are more than one storage 
pools
+from the same server mounted on a host. Changing the `nconnect` mount option 
on one
+of the storage pools via CloudStack will not do anything. To change the 
`nconnect`
+setting on the host, after modifying `nconnect` mount option on all storage 
pools,
+the host needs to be restarted.
+
+
 Secondary Storage
 -----------------
 
@@ -1421,4 +1489,10 @@ Deleting objects from a bucket
    :alt: Import Volume
 .. |unmanage-volume.png| image:: /_static/images/unmanage-volume.png
    :alt: Unmanage Volume
+.. |nfs-mount-options-create-zone-wizard.png| image:: 
/_static/images/nfs-mount-options-create-zone-wizard.png
+   :alt: NFS mount options in create Zone wizard
+.. |nfs-mount-options-add-primary-storage.png| image:: 
/_static/images/nfs-mount-options-add-primary-storage.png
+   :alt: NFS mount options in add Primary Storage
+.. |nfs-mount-options-edit-primary-storage.png| image:: 
/_static/images/nfs-mount-options-edit-primary-storage.png
+   :alt: NFS mount options in edit Primary Storage
 

Reply via email to