Skip to content

Commit 11fa214

Browse files
authored
Documentation for Shared FileSystems (#420)
* Initial doc PR commit for the File Share feature * Added info on adding multiple networks * Addressed minor comments from Abhishek * changed File Share to Shared FileSystems + minor chnages
1 parent ab93a60 commit 11fa214

File tree

7 files changed

+119
-0
lines changed

7 files changed

+119
-0
lines changed
42.8 KB
Loading
12.7 KB
Loading
30.2 KB
Loading
22.3 KB
Loading
48.7 KB
Loading

source/adminguide/storage.rst

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,6 +1485,105 @@ Deleting objects from a bucket
14851485
14861486
2. Click on the |delete-button.png| button to delete the selected files from the bucket.
14871487
1488+
Shared FileSystems
1489+
---------------
1490+
1491+
CloudStack offers fully managed NFS Shared FileSystems to all users.
1492+
This section gives technical details on how to create/manage a Shared FileSystem
1493+
using basic lifecycle operations and also some implementation details.
1494+
1495+
.. note::
1496+
This feature is available only on advanced zones without security groups.
1497+
1498+
Creating a New Shared FileSystem
1499+
~~~~~~~~~~~~~~~~~~~~~~~~~
1500+
1501+
#. Log in to the CloudStack UI as a user or administrator.
1502+
1503+
#. In the left navigation bar, click Storage.
1504+
1505+
#. In the Select View, choose Shared FileSystems.
1506+
1507+
Click on Create Shared FileSystem, provide the following details and then click OK.
1508+
1509+
#. Name
1510+
#. Description
1511+
#. Zone
1512+
#. Format: Filesystem format (XFS, EXT4) which will be installed on the Shared FileSystem.
1513+
#. Network: Guest network to which the Shared FileSystem will be attached.
1514+
#. Compute offering: Offering using which the Shared FileSystem VM will be deployed.
1515+
#. Disk offering: Offering used by the underlying data volume.
1516+
#. Size, MinIops and MaxIos: Displayed only when the disk offering takes custom size and custom iops.
1517+
1518+
|create-sharedfs.png|
1519+
1520+
Admins will see extra fields in the create form where they can specify the
1521+
account, domain and the project which will be owning the Shared FileSystem.
1522+
|create-sharedfs-admin.png|
1523+
1524+
Access
1525+
~~~~~~
1526+
The Shared FileSystem can be mounted by using the information given on the Access Tab.
1527+
|sharedfs-access-tab.png|
1528+
1529+
Lifecycle Operations
1530+
~~~~~~~~~~~~~~~~~~~~
1531+
1532+
Supported lifecycle operations are :
1533+
1534+
#. Update name and description of the Shared FileSystem
1535+
1536+
#. Stop/Start Shared FileSystem - This will Stop and Start the Shared FileSystem VM
1537+
1538+
#. Restart Shared FileSystem - Reboots the Shared FileSystem VM. If Cleanup option is provided then the
1539+
VM state is cleaned up and restored to the original template. Configurations related to setting up the
1540+
NFS export will be done again. This will not affect the data on the VM.
1541+
Shared FileSystem.
1542+
|restart-sharedfs.png|
1543+
1544+
#. Change Disk Offering - The disk offering of the underlying volume can be changed. Whether live resize
1545+
is supported or not depends on the hyervisor.
1546+
Please note that the size of the Shared FileSystem can only be increased.
1547+
1548+
#. Change Service Offering - The service offering of the Shared FileSystem VM can be changed as required.
1549+
This can only be done when the Shared FileSystem is in Stopped state.
1550+
1551+
#. Add/Remove Network - Guest networks can be added to or removed from the Shared FileSystem.
1552+
NFS share is exported to all networks. So VMs on different networks can mount the
1553+
same share using the respective IP addresses as given on the Access tab.
1554+
APIs serving these operations are addNicToVirtualMachine and removeNicToVirtualMachine
1555+
called with the Shared FileSystem VM ID.
1556+
Please note that the added networks must not be on overlapping CIDR ranges.
1557+
|add-remove-sharedfs-network.png|
1558+
1559+
#. Destroy Shared FileSystem - The Shared FileSystem will be destroyed. It can be recovered before it automatically gets expunged.
1560+
Expunge timeout is given by the global setting 'sharedfs.cleanup.delay'.
1561+
1562+
1563+
Shared FileSystem VM
1564+
~~~~~~~~~~~~~~
1565+
The Shared FileSystem VM is stateless and HA enabled. A new VM is deployed and will start
1566+
serving the NFS share if the host or VM goes down.
1567+
The VM is installed with the SystemVM template which is also used by the CPVM and SSVM.
1568+
1569+
The Shared FileSystem VM can be seen in the Instance Tab as well. It's name is prefixed by the
1570+
Shared FileSystem name. Actions that might interfere with Shared FileSystem operations are blocked or not shown.
1571+
Basic operaions like Start, Stop and Reboot are allowed for troubleshooting.
1572+
Users can access the VM using the 'View Console' button for troubleshooting although it is not
1573+
required during normal operations.
1574+
1575+
Service Offering
1576+
~~~~~~~~~~~~~~~~
1577+
There are two global settings that control what should be the minimum RAM size and minimum
1578+
CPU count for the Shared FileSystem VM : 'sharedfsvm.min.cpu.count' and 'sharedfsvm.min.ram.size`.
1579+
Only those offerings which meet these settings and have HA enabled are shown in the create form.
1580+
1581+
Shared FileSystem Data Volume
1582+
~~~~~~~~~~~~~~~~~~~~~~
1583+
The data volume is also visible to the users. It is recommended to use the Shared FileSystem UI/API to
1584+
manage the data but users or admin can perform actions directly on the data volume or the root volume
1585+
as well if they wish. Attaching and detaching a disk is not allowed on a Shared FileSystem VM.
1586+
14881587
.. |AttachDiskButton.png| image:: /_static/images/attach-disk-icon.png
14891588
:alt: Attach Disk Button.
14901589
.. |resize-volume-icon.png| image:: /_static/images/resize-volume-icon.png
@@ -1529,6 +1628,16 @@ Deleting objects from a bucket
15291628
:alt: Import Volume
15301629
.. |unmanage-volume.png| image:: /_static/images/unmanage-volume.png
15311630
:alt: Unmanage Volume
1631+
.. |create-sharedfs.png| image:: /_static/images/create-sharedfs.png
1632+
:alt: Create Shared FileSystem
1633+
.. |create-sharedfs-admin.png| image:: /_static/images/create-sharedfs-admin.png
1634+
:alt: Create Shared FileSystem Admin Options
1635+
.. |restart-sharedfs.png| image:: /_static/images/restart-sharedfs.png
1636+
:alt: Restart Shared FileSystem
1637+
.. |sharedfs-access-tab.png| image:: /_static/images/sharedfs-access-tab.png
1638+
:alt: Shared FileSystem Access Tab
1639+
.. |add-remove-sharedfs-network.png| image:: /_static/images/add-remove-sharedfs-network.png
1640+
:alt: Shared FileSystem Networks
15321641
.. |nfs-mount-options-create-zone-wizard.png| image:: /_static/images/nfs-mount-options-create-zone-wizard.png
15331642
:alt: NFS mount options in create Zone wizard
15341643
.. |nfs-mount-options-add-primary-storage.png| image:: /_static/images/nfs-mount-options-add-primary-storage.png

source/conceptsandterminology/concepts.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,16 @@ Users can create buckets within the object storage pool.
535535
The basic storage units of Object Store are objects. Any type of data, regardless of content type, is stored as an object.
536536
Buckets are logical containers for storing objects.
537537

538+
About Shared FileSystems
539+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
540+
CloudStack users can setup CloudStack managed Shared FileSystems which can be mounted via NFS.
541+
Users can choose the service offering, disk offering, filesystem format and network.
542+
The Shared FileSystem is deployed on a VM with the specified service offering.
543+
A data volume is created using the given disk offering and attached to the VM.
544+
User can specify which filesystem to use (XFS, EXT4).
545+
The filesystem is created on the data volume and exported via NFS.
546+
All VMs in the guest network can mount and read/write to the Shared FileSystem.
547+
538548
About Physical Networks
539549
~~~~~~~~~~~~~~~~~~~~~~~
540550

0 commit comments

Comments
 (0)