© 2016 QNAP Systems, Inc. All Rights Reserved. 1
Application Notes
April 2016
Configuring Linux NFS Storage with QNAP
ES (Enterprise Storage) NAS
© 2016 QNAP Systems, Inc. All Rights Reserved. 2
Table of Contents
Overview .......................................................................................................................................................... 4
Infrastructure Components....................................................................................................................... 4
System Network Configuration ............................................................................................................................ 5
Shared Folder Configuration ................................................................................................................................. 5
Linux Server Configuration ................................................................................................................................... 5
Setup the NFS and Permission .................................................................................................................. 6
Configuring Hosts ...................................................................................................................................................... 6
Create NFS shared folder ........................................................................................................................................ 8
Modify NFS permission ........................................................................................................................................... 9
Configuring NFS Client on Linux server ............................................................................................. 12
Mounting NFS shared folder............................................................................................................................... 12
Conclusion .................................................................................................................................................... 13
© 2016 QNAP Systems, Inc. All Rights Reserved. 3
Notices
This user manual details instructions for using the QNAP Enterprise Storage NAS. Please read
the instructions carefully, and enjoy the powerful functions of the QNAP Enterprise Storage NAS.
The QNAP Enterprise Storage NAS is hereafter referred to as the ES NAS or the NAS.
The product you purchased may not support certain functions dedicated to specific models.
Legal Notices
All the features, functionality, and other product specifications are subject to change without
prior notice or obligation. Information contained herein is subject to change without notice.
QNAP and the QNAP logo are trademarks of QNAP Systems, Inc. All other brands and product
names referred to are trademarks of their respective holders. Further, the ® or ™ symbols are
not used in the text.
Disclaimer
Information in this document is provided in connection with QNAP products. No license,
express or implied, by estoppels or otherwise, to any intellectual property rights is granted by
this document. Except as provided in QNAP's terms and conditions of sale for such products,
QNAP Assumes no liability whatsoever, and QNAP disclaims any express or implied warranty,
relating to sale and/or use of QNAP products including liability or warranties relating to fitness
for a particular purpose, merchantability, or infringement of any patent, copyright or other
intellectual property right.
© 2016 QNAP Systems, Inc. All Rights Reserved. 4
Overview
This document will guide you through configuring NFS storage on a Linux server
Infrastructure Components
Switch-A Dell Networking N4032
(24x RJ45 10GBase-T LAN ports)
Linux ServerSuperMicro 6028U-TR4T+
(4x RJ45 10GBase-T LAN ports)
SCB eth2SCB eth1
StorageQNAP ES1640DC
(2x RJ45 10GBase-T LAN ports)
SCA eth1 SCA eth2
Switch-BDell Networking N4032
(24x RJ45 10GBase-T LAN ports)
eth1 eth2
© 2016 QNAP Systems, Inc. All Rights Reserved. 5
System Network Configuration
Shared Folder Configuration
Name / Alias : linux_nfs
Thin Provision : Yes
Storage Pool : pool1 (SCA)
NFS Path : 10.10.10.51:/share/linux_nfs
10.10.20.51:/share/linux_nfs
Linux Server Configuration
OS : CentOS 7 x86_64
nfs-utils Packages : 1:1.3.0-0.21.el7_2
Storage Network Settings
Role IP Description
SCA Management 192.168.1.10 Management IP in SCB
SCA Ethernet 1 10.10.10.51 10GBase-T Lan port 1 in SCA
SCA Ethernet 2 10.10.20.51 10GBase-T Lan port 2 in SCA
SCB Management 192.168.1.11 Management IP in SCB
SCB Ethernet 1 10.10.10.52 10GBase-T Lan port 1 in SCB
SCB Ethernet 2 10.10.20.52 10GBase-T Lan port 2 in SCB
Linux Server Network Settings
Role IP Description
Ethernet 1 10.10.10.21 10GBase-T Lan port 1
Ethernet 2 10.10.20.21 10GBase-T Lan port 2
Note:
Once the Controller of Storage Pool SCA been selected, only SCA Ethernet 1 and Ethernet 2
will be used as Shared Path.
© 2016 QNAP Systems, Inc. All Rights Reserved. 6
Setup the NFS and Permission
Configuring Hosts
Step 1: Go to Storage Manager
Step 2: Click the Create Host button on the Hosts tab
© 2016 QNAP Systems, Inc. All Rights Reserved. 7
Step 3: Enter a Host Alias Name (in this example we use Linux Server) and an IP address that can
access the ES NAS
Step 4: The Host profile is created
© 2016 QNAP Systems, Inc. All Rights Reserved. 8
Create an NFS shared folder
Step 1: Click Create New a Shared Folder on the Storage Space tab
Step 2: To create an NFS Shared Folder, provide a Folder Name, and check the NFS service option
© 2016 QNAP Systems, Inc. All Rights Reserved. 9
Modify NFS permission
Step 1: Click the shared folder name
Step 2: Click the Permissions button
© 2016 QNAP Systems, Inc. All Rights Reserved. 10
Step 3: Switch to NFS host access with the select permission type dropdown
Step 4: Select No limit from the Access right dropdown, and check Host Alias Linux Server option to
grant Read/Write permission to the Linux server. Click the Apply button to apply the changes.
© 2016 QNAP Systems, Inc. All Rights Reserved. 11
Note:
Check All hosts can access the shared folder to allow any host to access the NFS shared
folder removing the need to create individual Hosts.
© 2016 QNAP Systems, Inc. All Rights Reserved. 12
Configuring NFS Client on Linux server
Mounting an NFS shared folder
Step 1: Check the export folder list shared by the ES NAS
# showmount -e 10.10.10.51
Export list for 10.10.10.51:
/share/linux_nfs 10.10.20.21,10.10.10.21
Step 2: Mount the NFS folder to a local folder
# mount 10.10.10.51:/share/linux_nfs /qnap_nfs/
Step 3: Check the NFS folder usage
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 42G 1.5G 40G 4% /
devtmpfs 910M 0 910M 0% /dev
tmpfs 919M 0 919M 0% /dev/shm
tmpfs 919M 18M 902M 2% /run
tmpfs 919M 0 919M 0% /sys/fs/cgroup
/dev/sda5 21G 33M 21G 1% /home
/dev/sda1 497M 198M 300M 40% /boot
tmpfs 184M 0 184M 0% /run/user/0
10.10.10.51:/share/linux_nfs 5.2T 128K 5.2T 1% /qnap_nfs
© 2016 QNAP Systems, Inc. All Rights Reserved. 13
Conclusion
After configuring the NFS shared folder and the NFS permission settings, users can quickly
access to the NFS shared folder via the Linux server.