How to Launch a NFS Server using Azure NetApp?
Azure Portal -> NetApp -> Create Account
NetApp -> Capacity pools -> Add capacity pool
- A capacity pool may hold numerous volumes, which is the actual volume that will be mounted in the cluster.
- The smallest resize unit in capacity is
1 TB.
VNet -> Subnet -> Add
Make the subnet inside the VNet where CycleCloud and clusters reside.
Form How to Subnet purpose Default Size /24Subnet delegation Microsoft.NetApp/volumes
- NetApp -> Volumes -> Add
- Choose the VNet and subnet.
Protocol:
Form How to Protocol type NFS File path The name of the volume export.
It is related to<export-path>.Versions NFSv4.1 - Export policy: set the allowed clients from the VNet where the cluster resides. This is optional.
- Check the mounting instructions in NetApp -> Volumes -> Mount instructions, and get:
- mount target IP
- mount options:
1
sudo mount -t nfs -o <mount options> <ip-address>:<export-path> <mount-point>
Go to CycleCloud Wizard and edit cluster:
Network Attached Storage, Additional Filesystem Mount:
Form How to FS Type External NFS IP Address NetApp volume IP ( <ip-address>)Mount Point Where the folder will be at in the cluster. ( <mount-point>)Export Path How the NFS exports the file ( <export-path>)Mount Options <mount options>Make sure mount point exist and with permission for the user to access and execute
cd:1 2
sudo mkdir <mount-point> sudo chmod 755 <mount-point>
How to Set Up User Quota and Create Dedicated Folder
User Folder
1
2
3
sudo mkdir <user>
sudo chown <user>:<user> <user>
sudo chmod 750 <user>
User Quota
- NetApp -> Volumes -> User and group quotas.
- Check user UUID:
1
id -u
Check that oversized creation of files are banned:
Create a
output.datwith file size2M.1
dd if=/dev/zero of=output.dat bs=2M count=1
How to Resize Volume
NetApp -> Volumes -> Resize.
- The resize value should be between the value used during creation and the capacity.
Check if the volume size reflects correctly in the node:
1
df -h <mount-folder>