CentOS 7.x Cloudstack 4.11 Setup NFS for secondary and primary (if no central storage) storage

From Notes_Wiki

Home > CentOS > CentOS 7.x > CentOS 7.x Cloudstack 4.11 > CentOS 7.x Cloudstack 4.11 Setup NFS for secondary and primary (if no central storage) storage

Refer CentOS 7.x Configure basic NFSv4 server for sharing folders between two machines for basic NFS setup. On top of that do the following specifically for cloudstack NFS server:

  1. Create folders to be shared via NFS
    mkdir /mnt/primary
    mkdir /mnt/secondary
  2. (Optional) Install NFS server and Setup Storage
    dnf install -y nfs-utils
  3. Edit '/etc/exports' to have options such as:
    /mnt/primary *(rw,async,no_root_squash,no_subtree_check)
    /mnt/secondary *(rw,async,no_root_squash,no_subtree_check)
  4. Verify that mount options are reflected after restarting / reloading nfsserver service
    exportfs -a
  5. Uncommnet following things from config file '/etc/sysconfig/nfs'
    LOCKD_TCPPORT=32803
    LOCKD_UDPPORT=32769
    MOUNTD_PORT=892
    RQUOTAD_PORT=875
    STATD_PORT=662
    STATD_OUTGOING_PORT=2020
  6. Start and enable rpcbind
    systemctl start rpcbind
    systemctl enable rpcbind
  7. Start and enable nfs server and client both. Note that client is required to mount secondary storage on NFS management server. It may not be required on dedicated NFS server
    systemctl start nfs
    systemctl enable nfs
    systemctl start nfs-server
    systemctl enable nfs-server


Home > CentOS > CentOS 7.x > CentOS 7.x Cloudstack 4.11 > CentOS 7.x Cloudstack 4.11 Setup NFS for secondary and primary (if no central storage) storage