Mount your NAS via NFS share
Find out how to mount a NAS over an NFS share here.
Find out how to mount a NAS over an NFS share here.
Last updated 21st February 2022
This guide allows you to mount NFS on the most common distributions. To mount an NFS share, you must have:
Compatibility: Debian & Ubuntu
To mount an NFS share on Linux, you must:
nfs-client install capability
Then use the following mount command:
mount -t nfs -o _netdev,mountproto=tcp IP_NAS:/NFS_PATH /MOUNTING_FOLDER
Argument | Description |
---|---|
IP_NAS | Corresponds to NAS name or IP |
/NFS_PATH | Path to NFS server for sharing (Ex: "nas-000YY/partition") |
MOUNTING_FOLDER | Corresponds to the folder where you will mount your NFS share on your server |
In order to automate the NAS mount when your distribution starts up, add the following line to the /etc/fstab file:
IP_NAS:/NFS_PATH /MOUNTING_FOLDER nfs rw,_netdev,mountproto=tcp 0 0
For example:
mount -t nfs -o _netdev,mountproto=tcp 10.16.XXX.YYY:zpool-999888/PartitionName /media/NasHA -v
Argument | Description |
---|---|
IP_NAS | 10.16.XXX.YYY |
/NFS_PATH | zpool-999888/PartitionName |
MOUNTING_FOLDER | /media/NasHA -v |
Compatibility: CentOS
To mount an NFS share under CentOS, you must:
yum install nfs-utils rpcbind
Then restart the rpcbind
service with the following command:
/etc/init.d/rpcbind start
Then use the following mount command:
mount -t nfs -o _netdev,mountproto=tcp IP_NAS:/NFS_PATH /MOUNTING_FOLDER
Argument | Description |
---|---|
IP_NAS | Corresponds to NAS name or IP |
/NFS_PATH | Path to NFS server for sharing (Ex: "nas-000YY/partition") |
MOUNTING_FOLDER | Corresponds to the folder where you will mount your NFS share on your server |
In order to automate the NAS mount when your distribution starts up, add the following line to the /etc/fstab file:
IP_NAS:/NFS_PATH /MOUNTING_FOLDER nfs rw,_netdev,mountproto=tcp 0 0
To mount an NFS share on Gentoo, you need to:
emerge nfs-utils
Then start the NFS service using the command:
/etc/init.d/nfs start
Finally, use the following mount command:
mount -t nfs IP_NAS:/NFS_PATH /MOUNTING_FOLDER
Argument | Description |
---|---|
IP_NAS | Corresponds to NAS name or IP |
/NFS_PATH | Path to NFS server for sharing (Ex: "nas-000YY/partition") |
MOUNTING_FOLDER | Corresponds to the folder where you will mount your NFS share on your server |
In order to automate the NAS mount when your distribution starts up, add the following line to the /etc/fstab file:
IP_NAS:/NFS_PATH /MOUNTING_FOLDER nfs rw 0 0
Then put the "nfsmount" service to the server starting up, with the following command.
rc-update add nfsmount default
Compatibility: Proxmox v3.3
To mount an NFS share under Proxmox, you must:
Configuration
Add
and select NFS
.Configuration
Argument | Description |
---|---|
ID | Name you want for your NFS share |
Server | Corresponds to NAS name |
Export | Path to NFS server for sharing |
Content | Content type for this NFS share (possible value: Images, ISO, Template, Backups, Containers) |
In order to automate the mounting of the NAS when your distribution starts up, add the following line to the /etc/fstab file:
IP_NAS:/NFS_PATH /MOUNTING_FOLDER nfs rw 0 0
To mount an NFS share under ESXI, you must have:
Inventory
:Configuration
Configuration
tab:Configuration
Storage
in the left-hand menu:Configuration
You will then have access to a form to complete:
Configuration
Argument | Description |
---|---|
server: | Corresponds to NAS name or IP |
Folder | Path to NFS server for sharing (Ex: "/nas-000YY/partition") |
Datastore | This is the name you want to give to the datastore |
The NFS user is root
, rights changes with this user can generate conflicts with existing CIFS/SMB rights.
Join our community of users on https://community.ovh.com/en/.
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.
Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.
Discuss with the OVHcloud community