CentOS 7.x Cloudstack 4.11 Setup NFS for secondary and primary (if no central storage) storage
From Notes_Wiki
<yambe:breadcrumb>CentOS_7.x_Cloudstack_4.11|CentOS 7.x Cloudstack 4.11</yambe:breadcrumb>
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:
- Create folders to be shared via NFS
- mkdir /mnt/primary
- mkdir /mnt/secondary
- Install NFS server and Setup Storage
- yum install -y nfs-utils
- 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)
- Verify that mount options are reflected after restarting / reloading nfsserver service
- exportfs -a
- 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
- Start and enable rpcbind
- systemctl start rpcbind
- systemctl enable rpcbind
- 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
<yambe:breadcrumb>CentOS_7.x_Cloudstack_4.11|CentOS 7.x Cloudstack 4.11</yambe:breadcrumb>