NFS 서버 재부팅 후 NFS 마운트가 읽기 전용입니다.

NFS 서버 재부팅 후 NFS 마운트가 읽기 전용입니다.

에 nfs 드라이브를 마운트했지만 /data루트 사용자라도 여기에 쓸 수 없습니다. 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 ..

관련 정보