NFS SERVER Installation Manual

NFS stands for Network File System, which is made by sharing each file between different machine or different operating system.

In this demo, user will learn how to install NFS Server under Linux NAS. By installs NFS server, user can share files between computer and NAS more smoothly and improve work efficiency. NFS can also help data interfacing more easily between other software. This manual is applicable to the following models: Power NAS PN-401, PN401-R and other Linux NAS.

Please note that this demo is all operated by Power NAS PN-401.

Step 1. Set up a Remote Desktop

Use WINDOWS Built-in function [Remote Desktop Connection] connect to the PN-401.

Please note: Your computer and PN-401 need to connect to the same Local area network(LAN).

1.Login to PDM, and find [PowerBox].

Remote desktop to PN-401

2.Turn on [Remote Desktop] button.

遠端桌面至PN-401

3.Press Windows+R key, it should pop out the Run Dialog box; please enter [mstsc] and press OK.

遠端桌面至PN-401

4. It should jump out [Remote Desktop Connection] box. Please enter your IP address.

遠端桌面至PN-401

Please note: The IP address should follow your PN-401, In this demo, IP address is 192.168.1.69

Then, you may be prompted to verify that you want to connect to that computer. Please select “Yes.”

遠端桌面至PN-401

5. It should go straight to the login box; please enter your System Administrator username and password.

遠端桌面至PN-401

After finish entering, press OK, and it goes to the PN-401 operating system.

NFS platform


Step 2. Enter Command to get ROOT authorization

1. Press CTRL+ALT+T to call out a terminal

2. Enter cat /etc/pdm/pnadmin to get your operating system administrator – pnadmin’s password. In this demo, pnadmin’s password is 35f195f2.

Please note: each PN-401 all have a different password.

取得ROOT權限

3. Next, please enter su pnadmin as system administrator – pnadmin username to log in. When you are entering the password, the password will not display on the screen; just press enter after you finished all the information.

取得ROOT權限

If you entered the wrong information, the system would show [Authentication failure]

取得ROOT權限

If system showed [pnadmin@PowerNAS: /mnt/myraid/home/admin$] that means you already succeed switch account to pnadmin.

取得ROOT權限

4. Enter sudo su to get ROOT authorization, then enter the password you already have (Same as pnadmin’s password), press enter.

取得ROOT權限

When you succeed, you should see your account already switch to root.

 


Step 3. Install NFS Server

Back to the command box.

1.Please enter [sudo apt-get update]

安裝NFS Server

2.That should activate an update, after update process finish, please enter [sudo apt-get install nfs-kernel-server] to install NFS kernel server.

安裝NFS Server

Wait for the installation finished.

3. After installation completed, please enter [mkdir /mnt/myraid/test] to build folder under myriad.

Please note: In PN-401, RAID saved in mnt/myriad, that is why we use this as a demo.

安裝NFS Server

4. Please enter [chmod –R 777 /mnt/myraid/test]

安裝NFS Server

5. Enter [nano /etc/exports], it will activate the editor.

安裝NFS Server

6. Enter information:

[/mnt/myriad/test 192.168.0.139(rw,sync,no_root_squash,no_all_squash)]

Then press CTRL+X to save the process.

Please note: 192.168.0.139 is the IP address from the Client side.

安裝NFS Server

Press Y key to save all changes.

安裝NFS Server

Press ENTER to make sure the file name is correct.

安裝NFS Server

7. Enter [sudo ufw allow from 192.168.0.139], in order to build firewall rule to allow access for 192.168.0.139 (Client side)

安裝NFS Server

8. Enter [/etc/init.d/nfs-kernel-server restart] to restart NFS server.

安裝NFS Server

 


Step 4. Client-side Validation

1.Back to Client side, in this demo, it should be Win10 (IP:192.168.0.139)

2.Open the Command Prompt box, enter mount \\192.168.1.69\mnt\myraid\test H:

Client端驗證NFS Server

3. After finished all the information and press enter,you will see there’s a new H drive.

Client端驗證NFS Server

4.  Use remote desktop back to PN-401 to make sure server side’s data match to the client side.

Client端驗證NFS Server

5. In command prompt character, enter [NET USE] in the command box, you can see \\192.168.1.69\mnt\myraid\test is using NFS network to transfer data. That means installation succeed and we are all set!

Client端驗證NFS Server


Leave a Reply