Mounting HA-NAS via NFS share

Find out how to connect to your HA-NAS using an NFS share

Last updated 6th December 2022

Objective

The OVHcloud HA-NAS service allows you to manage file storage that can be accessed over a network.

This guide explains how to access your HA-NAS via NFS on the most common operating systems.

OVHcloud is providing you with services for which you are responsible, with regard to their configuration and management. It is therefore your responsibility to ensure that they they function correctly.

This guide is designed to assist you in common tasks as much as possible. Nevertheless, we recommend that you contact a specialist service provider or reach out to our community if you face difficulties or doubts concerning the administration, usage or implementation of services on a server.

Requirements

Instructions

The following sections contain configuration examples for the most commonly used distributions / operating systems. The first step is always to log in to your server via SSH or connecting to the GUI of your installed OS. The examples below presume you are logged in as a user with elevated permissions.

You will also need the internal name and the IP address of your HA-NAS service which you can find in the email received after the installation or in your OVHcloud Control Panel.

The following notations are used as arguments in the command line sections below. Replace them with the appropriate values when entering the commands.

Argument Description
IP_HA-NAS The IP address of the HA-NAS (Example: 10.1.1.1)
NFS_PATH The path to the HA-NAS partition to mount, consisting of the service name and your partitions' name (Example: zpool-123456/partition01)
MOUNTING_FOLDER The local folder for your mounted partition

The NFS user is root; rights changes with this user can generate conflicts with existing CIFS / SMB rights.

Debian based distributions

Install the package nfs-common:

ubuntu@server:~$ sudo apt install nfs-common

Then use the following mount command:

ubuntu@server:~$ sudo mount -t nfs IP_HA-NAS:/NFS_PATH /MOUNTING_FOLDER

Example:

ubuntu@server:~$ sudo mount -t nfs 10.1.1.1:/zpool-123456/partition01 /mount/ha_nas

You can now access your mounted partition at the specified folder.

In order to automate the mounting process for each time the server boots, add the following line to the file /etc/fstab:

IP_HA-NAS:/NFS_PATH /MOUNTING_FOLDER nfs rw 0 0

CentOS 7 / AlmaLinux / Rocky Linux

Verify that the latest versions of the packages nfs-utils and rpcbind are installed:

centos@server:~$ sudo yum install nfs-utils rpcbind

If necessary, restart the rpcbind service with the following command:

centos@server:~$ sudo systemctl restart rpcbind

To mount your partition, use the following command:

centos@server:~$ sudo mount -t nfs IP_HA-NAS:/NFS_PATH /MOUNTING_FOLDER

Example:

centos@server:~$ sudo mount -t nfs 10.1.1.1:/zpool-123456/partition01 /mount/ha_nas

You can now access your mounted partition at the specified folder.

In order to automate the mounting process for each time the server boots, add the following line to the file /etc/fstab:

IP_HA-NAS:NFS_PATH /MOUNTING_FOLDER nfs rw 0 0

Fedora

Install the package nfs-utils:

fedora@server:~$ sudo dnf -y install nfs-utils

Then use the following mount command:

fedora@server:~$ sudo mount -t nfs IP_HA-NAS:/NFS_PATH /MOUNTING_FOLDER

Example:

fedora@server:~$ sudo mount -t nfs 10.1.1.1:/zpool-123456/partition01 /mount/ha_nas

You can now access your mounted partition at the specified folder.

Proxmox

In the Proxmox administration interface, click on Storage in the vertical menu.

proxmox

Click on the button Add and select NFS.

In the popup window, enter the following details.

Detail Description
ID An identifier for the share
Server The IP address of the HA-NAS (Example: 10.1.1.1)
Export The path to the HA-NAS partition (It should be detected by the automatic scan; select it from the list.)
Content Content types for this NFS share (Disk image, ISO image, Container template, VZDump backup file, Container, Snippets)

proxmox

Click on Add to mount your partition.

VMware ESXI

In the VMware ESXI administration interface, click on Storage in the menu on the left.

Then click on the button New datastore to open the assistant.

ESXI

In the new window, select Mount NFS datastore and click on Next.

ESXI

Complete the form with the following details.

Detail Description
Name An identifier for the share
NFS server The IP address of the HA-NAS (Example: 10.1.1.1)
NFS share The path to the HA-NAS partition to mount (Example: zpool-123456/partition01)

ESXI

Once done, click on Next. Click on Finish in the last step.

Your HA-NAS partition is now mounted as a datastore.

ESXI

Go further

Join our community of users on https://community.ovh.com/en/.


Did you find this guide useful?

Please feel free to give any suggestions in order to improve this documentation.

Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.

Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.

Thank you. Your feedback has been received.


These guides might also interest you...

OVHcloud Community

Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Discuss with the OVHcloud community