도와주세요!!
root@PC:~# service nfs-kernel-server restart
* Stopping NFS kernel daemon [ OK ]
* Unexporting directories for NFS kernel daemon... [ OK ]
* Exporting directories for NFS kernel daemon... exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "211.189.127.47:/home/nfs".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x
[ OK ]
* Starting NFS kernel daemon [ OK ]
root@PC:~# /etc/init.d/portmap restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service portmap restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart portmap
portmap start/running, process 18560
/etc/exports 엔
/home/nfs xxx.xxx.xxx.xxx(rw,sync,no_root_squash) (당연 xxx는 보드의 IP이구여)
root@PC:~# ps aux | grep portmap
daemon 18560 0.0 0.0 1896 588 ? Ss 02:18 0:00 portmap -i 127.0.0.1
root 20138 0.0 0.0 4320 828 pts/1 S+ 03:50 0:00 grep --color=auto portmap
root@PC:~# ps aux | grep rpc
root 3139 0.0 0.0 0 0 ? S Sep12 0:00 [rpciod/0]
root 3140 0.0 0.0 0 0 ? S Sep12 0:00 [rpciod/1]
root 15704 0.0 0.0 2372 564 ? Ss 00:34 0:00 rpc.idmapd
statd 18575 0.0 0.0 1968 772 ? Ss 02:18 0:00 rpc.statd -L
root 20085 0.0 0.0 2204 368 ? Ss 03:45 0:00 /usr/sbin/rpc.mountd --manage-gids
root 20142 0.0 0.0 4324 892 pts/1 S+ 03:50 0:00 grep --color=auto rpc
root@PC:~# rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100024 1 udp 34667 status
100024 1 tcp 59967 status
100021 1 udp 51236 nlockmgr
100021 3 udp 51236 nlockmgr
100021 4 udp 51236 nlockmgr
100021 1 tcp 58808 nlockmgr
100021 3 tcp 58808 nlockmgr
100021 4 tcp 58808 nlockmgr
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 34795 mountd
100005 1 tcp 44484 mountd
100005 2 udp 34795 mountd
100005 2 tcp 44484 mountd
100005 3 udp 34795 mountd
100005 3 tcp 44484 mountd
이쪽이 보드부분입니다.
[root@falinux ~]$ mount -t nfs -o nolock 211.189.127.46:/home/nfs /mnt/nfs
mount: RPC: Unable to receive; errno = Connection refused
여기 메뉴얼대로 전부 해보았습니다. 그런데 이렇게 나옵니다 ㅠㅠ
어떤것이 문제인지 잘 모르겠습니다.
저 윗명령어 말고 다른 명령을 알려주시면 바로 실행하여 알려드리겠습니다.. ㅜㅠㅠ
먼저, 일단 지금장애랑 상관없지만, NFS 서비스 warring해결은
exports에 옵션부분에 no_subtree_check 넣어주시고, nfs서비스 재시작후
미니컴에서 일단 ping 211.189.127.46 해서 잘 날라가나요..?
잘날라간다면 nolock,tcp 로 옵션 넣어주시고, 리눅스에 방화벽 설정되어있다면 해제해주세요.
그럼 해결되실듯...