Thiết lập Synology NFS cho kho dữ liệu Proxmox Backup Server

1. On the Synology open the Control Panel then click on Shared Folder.
2. Click on Create and select Create Shared Folder.
3. Enter a share name (e.g. pbs). Disable recycle bin, if you wish.
4. Skip folder encryption.
5. Enable checksum. Do NOT enable file compression. Don’t enable a quota unless you want to.
6. Confirm settings.
7. Configure permissions. Give the ‘admin’ account read/write (yes, even if the actual admin account is disabled.)
8. In the Synology Control panel to go File Services in the left pane.
9. Make sure Maximum NFS protocol is NFSv3. Click Apply

8. In Control Panel -> Shared Folder select the PBS share and click Edit.
9. Click on the NFS Permissions tab. Click Create.
4. Add the IP address of your PBS server.
5. Change the Squash to No mapping. Make sure Security is sys.
6. Click Save. Click Save again.

7. Optional: Open the Snapshot Replication app. Configure a snapshot schedule to suit your needs. I suggest keeping 7 days worth of snapshots.
8. SSH into your PBS server. Create a mount directory (pick any name or path you want), and then change the permissions (very important).

mkdir /mnt/synology
chown backup:backup /mnt/synology
chmod 775 /mnt/synology


Note: If you run into permissions issues, a reader commented that removing the PBS NFS IP on the Synology side, re-adding it, then changing the permissions on /mnt/synology helped him. 

13. Modify the command below to change your IP (Synology NAS) and volume paths as needed. This will append a line to /etc/fstab. Make sure the NAS path starts with volumex, as appropriate for your share location. Most of you will probably use volume1, as that’s the Synology default. 

echo " /mnt/synology nfs vers=3,nouser,atime,auto,retrans=2,rw,dev,exec 0 0" >> /etc/fstab


14. Test the mount. You should not get any permission denied or other messages. Silent completion means it worked. 

Note: A tip from a reader mentioned he got a permission denied error with mount -a. He had to re-run the chmod 775 /mnt/synology command. So you might try that if you get stuck.

mount -a


15. I suggest you verify that creating a file on the mount point results in a file on the NAS share. So run the following command, then go to the Synology UI and open the share and verify the file exists.

touch /mnt/synology/testfile.txt


16. If all is well, run the following command to reload your fstab:

systemctl daemon-reload


17. Now that the NFS share is mounted, let’s reset the permissions again:

chmod 775 /mnt/synology

Đề xuất cho bạn

Về tác giả: Vương Công Minh

Nếu bạn đang cần Hosting Wordpress nhanh và mạnh. Tôi khuyến nghị bạn tham khảo - Nhà cung cấp Hosting/VPS/Server Chuyên Nghiệp Hàng Đầu Việt Nam. Đây là nhà cung cấp đang cung cấp hạ tầng để vận hành ICare24H. Bạn có thể trực tiếp trải nghiệm tốc độ Hosting trên trang web Icare24H và đừng quên dùng mã giảm giá ICARE24H để được giảm giá lên đến 49% cho tất cả các dịch vụ nhé.

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *