Home [Hosting HPC in Azure] 4.1 -- NFS Server using Azure NetApp
Post
Cancel

[Hosting HPC in Azure] 4.1 -- NFS Server using Azure NetApp

How to Launch a NFS Server using Azure NetApp?

  1. Azure Portal -> NetApp -> Create Account

  2. 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.
  3. VNet -> Subnet -> Add

    • Make the subnet inside the VNet where CycleCloud and clusters reside.

      FormHow to
      Subnet purposeDefault
      Size/24
      Subnet delegationMicrosoft.NetApp/volumes
  4. NetApp -> Volumes -> Add
    • Choose the VNet and subnet.
    • Protocol:

      FormHow to
      Protocol typeNFS
      File pathThe name of the volume export.
      It is related to <export-path>.
      VersionsNFSv4.1
    • Export policy: set the allowed clients from the VNet where the cluster resides. This is optional.
  5. 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>
      
  6. Go to CycleCloud Wizard and edit cluster:

    • Network Attached Storage, Additional Filesystem Mount:

      FormHow to
      FS TypeExternal NFS
      IP AddressNetApp volume IP (<ip-address>)
      Mount PointWhere the folder will be at in the cluster. (<mount-point>)
      Export PathHow 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

  1. NetApp -> Volumes -> User and group quotas.
  • Check user UUID:
    1
    
    id -u
    
  1. Check that oversized creation of files are banned:

    • Create a output.dat with file size 2M.

      1
      
        dd if=/dev/zero of=output.dat  bs=2M  count=1
      

How to Resize Volume

  1. NetApp -> Volumes -> Resize.

    • The resize value should be between the value used during creation and the capacity.
  2. Check if the volume size reflects correctly in the node:

    1
    
     df -h <mount-folder>
    
This post is licensed under CC BY 4.0 by the author.