로컬 NAS 장치에서 폴더를 마운트하려고 합니다. 모델 번호는 Zyxel NAS 326입니다.
Ubuntu 18.04 클라이언트에서 다음 명령을 실행해 보았습니다.
# does nothing
sudo mount -v -o vers=3.0 -t nfs 192.168.1.33:/i-data/5519db32/nfs/Hiddenslate1 /media/NAS/volume1/
### outputs
mount.nfs: timeout set for Fri Sep 3 16:31:59 2021
mount.nfs: trying text-based options 'vers=3.0,addr=192.168.1.33'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.1.33 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.1.33 prog 100005 vers 3 prot UDP port 38280
# gives permission denied error
sudo mount -v -o vers=3.0 -t nfs 192.168.1.33:/Volume1/i-data/5519db32/nfs/Hiddenslate1 /media/NAS/volume1/
# does nothing
sudo mount -v -o vers=4.0 -t nfs 192.168.1.33:/Hiddenslate1 /media/NAS/volume1/
### outputs
mount.nfs: timeout set for Fri Sep 3 16:32:31 2021
mount.nfs: trying text-based options 'vers=4.0,addr=192.168.1.33,clientaddr=192.168.1.66'
# gives no such file or dir error
sudo mount -v -o vers=4.0 -t nfs 192.168.1.33:/Volume1/Hiddenslate1 /media/NAS/volume1/
두 번째와 네 번째 오류는 이해하지만 첫 번째나 세 번째 오류는 작동합니다. 에서는 아무것도 볼 수 없습니다 /media/NAS/volume1
. 무엇을 확인해야 합니까?
산출rpcinfo 192.168.1.33 | egrep "service|nfs"
program version netid address service owner
100003 3 tcp 0.0.0.0.8.1 nfs superuser
100003 4 tcp 0.0.0.0.8.1 nfs superuser
100003 3 udp 0.0.0.0.8.1 nfs superuser
100003 4 udp 0.0.0.0.8.1 nfs superuser
showmount -e 192.168.1.33
:
Export list for 192.168.1.33:
/i-data/5519db32/nfs *
/i-data/5519db32/nfs/Hiddenslate1 (everyone)
/i-data/76a39839/nfs/Hiddenslate2 (everyone)
답변1
조사하다나스첫 번째. 특히 이건:
DN/IP Enter the domain name(s) or IP address(es) that can have access to the NFS share.
Enter "*" to make the share available to all users in the network. You can also enter a wildcard, such as "*.domain.com" to indicate that all users within that network have access to the share.