Difference between revisions of "CentOS 7.x Cloudstack 4.11 Setup NFS for secondary and primary (if no central storage) storage"
From Notes_Wiki
(Created page with "<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 stora...") |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Main Page|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: | 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: | ||
Line 8: | Line 7: | ||
#:: mkdir /mnt/secondary | #:: mkdir /mnt/secondary | ||
#:</pre> | #:</pre> | ||
# Install NFS server and Setup Storage | # (Optional) Install NFS server and Setup Storage | ||
#:<pre> | #:<pre> | ||
#:: | #:: dnf install -y nfs-utils | ||
#:</pre> | #:</pre> | ||
# Edit '<tt>/etc/exports</tt>' to have options such as: | # Edit '<tt>/etc/exports</tt>' to have options such as: | ||
Line 45: | Line 44: | ||
[[Main Page|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]] |
Latest revision as of 16:17, 28 August 2022
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:
- Create folders to be shared via NFS
- mkdir /mnt/primary
- mkdir /mnt/secondary
- (Optional) Install NFS server and Setup Storage
- dnf 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
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