NFS 伺服器重啟後 NFS 掛載為唯讀

NFS 伺服器重啟後 NFS 掛載為唯讀

我已經安裝了nfs驅動器/data,但即使是root用戶也無法寫入它。在 nfs 伺服器上,我可以輕鬆讀寫,但任何客戶端都不能。當 nfs 伺服器宕機幾分鐘時就開始了。

/etc/fstab(所有 nfs 用戶端):

192.168.1.12:/data /data nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=0,hard,timeo=600,noac 0 0

/etc/exports(nfs 伺服器):

/data           192.168.1.10(rw,sync,no_subtree_check) \
                192.168.1.11(rw,sync,no_subtree_check) \
                192.168.1.12(rw,sync,no_subtree_check) \
                192.168.1.13(rw,sync,no_subtree_check)

例子:

matjazmav@mav-ubuntu-01:~$ sudo su
root@mav-ubuntu-01:/home/matjazmav# touch /data/test/test.log
touch: cannot touch '/data/test/test.log': Permission denied
root@mav-ubuntu-01:/home/matjazmav# ls -al /data/test/
total 8
drwxr-xr-x 2 root root 4096 Apr  3 19:19 .
drwxr-xr-x 5 root root 4096 Apr  3 19:19 ..

相關內容