Bobcares

Add NFS Proxmox | A Quick Guide

by | Sep 4, 2022

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.

  1. Firstly, login to the NFS server.
  2. 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!

     

  3. Now create a storage directory by using the following command:
    [root@localhost ~]# mkdir /pve 

     

  4. Then configure the NFS share in the exports file as follows:
    [root@localhost ~]# vim /etc/exports
    /pve        192.168.7.223{rw,sync}

     

  5. Also, update the NFS Configuration to Kernel.
    [root@localhost ~]# exportfs -r
    [root@localhost ~]# exportfs &ndash a

     

  6. Use the following commands to launch and enable NFS Service.
    [root@localhost ~]# systemctl start nfs-server
    [root@localhost ~]# systemctl enable nfs-serve

     

  7. 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
    

     

  8. We must now log into the Proxmox interface using a browser after configuring the NFS server, then select Datacenter Storage NFS.
  9. 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.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF