Let’s take a closer look at how to add NFS on Proxmox VE. At Bobcares, with our Proxmox Support Services, we can handle your Proxmox issues.
Add NFS-Proxmox
Sun Microsystem’s NFS (Network File System) is a distributed file system technology. A server can distribute files and directories of a folder over the network using NFS. A user can access files and folders on the remote system as if they were stored locally once the NFS share has been mounted on the client machine.
Since the directory backend provides the foundation for the NFS backend, most properties are shared. Both the directory structure and the file naming patterns are consistent. The primary benefit is that we can immediately set the NFS server parameters, allowing the backend to mount the share without user intervention. It is not necessary to change /etc/fstab. The backend offers a way to query the server for exported shares as well as a way to check if the server is online.
How To Add NFS-Proxmox?
Proxmox VE allows us to set up local storage as well as several network storages, including NFS, ISCSI, GlusterFS, and others, to store the disc images, ISO files, templates, and other data for guest virtual machines. Let’s look at how to configure an NFS storage for Proxmox VE now.
- Firstly, login to the NFS server.
- Then install the NFS service packages by using the following commands:
[root@localhost ~]# yum install nfs* -y Loaded plugins: fastestmirror, langpacks base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/4): base/7/x86_64/group_gz | 156 kB 00:00:01 (2/4): extras/7/x86_64/primary_db | 145 kB 00:00:01 (3/4): updates/7/x86_64/primary_db | 5.2 MB 00:00:16 (4/4): base/7/x86_64/primary_db | 5.7 MB 00:00:16 Determining fastest mirrors * base: mirror.xeonbd.com * extras: mirror.xeonbd.com * updates: mirror.xeonbd.com Resolving Dependencies --> Running transaction check ---> Package nfs-utils.x86_64 1:1.3.0-0.48.el7 will be updated ---> Package nfs-utils.x86_64 1:1.3.0-0.48.el7_4 will be an update ---> Package nfs4-acl-tools.x86_64 0:0.3.3-15.el7 will be installed ---> Package nfsometer.noarch 0:1.7-1.el7 will be installed --> Processing Dependency: python-matplotlib for package: nfsometer-1.7-1.el7.noarch --> Processing Dependency: python-mako for package: nfsometer-1.7-1.el7.noarch . . . python-paste.noarch 0:1.7.5.1-9.20111221hg1498.el7 python-tempita.noarch 0:0.5.1-6.el7 t1lib.x86_64 0:5.1.2-14.el7 texlive-base.noarch 2:2012-38.20130427_r30134.el7 texlive-dvipng.noarch 2:svn26689.1.14-38.el7 texlive-dvipng-bin.x86_64 2:svn26509.0-38.20130427_r30134.el7 texlive-kpathsea.noarch 2:svn28792.0-38.el7 texlive-kpathsea-bin.x86_64 2:svn27347.0-38.20130427_r30134.el7 texlive-kpathsea-lib.x86_64 2:2012-38.20130427_r30134.el7 Updated: nfs-utils.x86_64 1:1.3.0-0.48.el7_4 Complete!
- Now create a storage directory by using the following command:
[root@localhost ~]# mkdir /pve
- Then configure the NFS share in the exports file as follows:
[root@localhost ~]# vim /etc/exports /pve 192.168.7.223{rw,sync}
- Also, update the NFS Configuration to Kernel.
[root@localhost ~]# exportfs -r [root@localhost ~]# exportfs &ndash a
- Use the following commands to launch and enable NFS Service.
[root@localhost ~]# systemctl start nfs-server [root@localhost ~]# systemctl enable nfs-serve
- This creates symlink from /etc/systemd/system/multi-user.target.wants/nfs-server.service to /usr/lib/systemd/system/nfs-server.service. Now configure the firewall to allow NFS service for all remote hosts.
[root@localhost ~]# firewall-cmd --permanent --add-service=nfs success [root@localhost ~]# firewall-cmd --reload Success
- We must now log into the Proxmox interface using a browser after configuring the NFS server, then select Datacenter Storage NFS.
- Finally provide the details of the NFS server like ID, Server IP, and export path then clicks Add button.
Thus the above steps add NFS to Proxmox VE.
[Looking for a solution to another query? We are just a click away.]
Conclusion
In this article, we provide the simple method from our Support team to add NFS storage to Proxmox VE.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
var google_conversion_label = "owonCMyG5nEQ0aD71QM";
0 Comments