Search Results for '리눅스'

1 POSTS

  1. 2013.09.12 Linux에서 nfs mount 가 안될때

Linux에서 nfs mount 가 안될때

Posted 2013. 9. 12. 09:16


출처 : http://makebob.tistory.com/163



(1) nfs mount를 해도 마운트가 안되고..

# mount 192.168.129.1:/home/bobos26 pc
mount: RPC: Unable to receive; errno = Connection refusednfs warning:
mount version older than kernel

mount: nfsmount failed: Bad file descriptor
NFS: mount program didn't pass remote address!
mount: Mounting 192.168.129.1:/home/bobos26 on /dev/shm/tmp/pc failed:
Invalid argument

데탑에서 nfs를 restart를 하려고 해도 nfs데몬이 안죽고, 데몬 시작도 안될때!


[root@livefree ~]# /etc/rc.d/init.d/nfs restart
NFS mountd를 종료 중입니다: [ 확인 ]
NFS 데몬을 종료 중입니다: [실패]
NFS quota를 종료 중입니다: [ 확인 ]
NFS 서비스를 종료 중입니다: [ 확인 ]
NFS 서비스를 시작하고 있습니다: [ 확인 ]
NFS 쿼터를 시작하고 있습니다: 서비스를 등록할 수 없습니다: RPC: 받을 수 없음; er rno = 연결이 거부됨
rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp). [실패]
NFS 데몬을 시작함: [실패]
NFS mountd를 시작하고 있습니다: Cannot register service: RPC: Unable to
receive; errno = Connec tion refused [실패]

이런때 rpcinfo -p를 쳐보아라 nfs를 구동하는데 필요한 서비스(portmapper, nfs, mountd)가 시작되지 않았을것이다 서비스를 구동하라




(2) 위의 서비스를 다 구동했는데도 안될때

# mount 192.168.129.1:/home/bobos26 pc
mount: RPC: Unable to receive; errno = Connection refusednfs warning:
mount version older than kernel

mount: nfsmount failed: Bad file descriptor
NFS: mount program didn't pass remote address!
mount: Mounting 192.168.129.1:/home/bobos26 on /dev/shm/tmp/pc failed:
Invalid argument

but rpcinfo -p 해도 portmapper and mountd같은 서비스가 작동중일때

/etc/hosts.allow file을 읽어봐라!!
    ALL: 61.107.31.

처럼 보드부터의 nfs연결 접근을 막고 있다. ALL: 192.168.129를 추가해라!!



(3) 1,2의 방법을 해도 안될때 ㅠㅜ

방화벽 문제이다.
- service iptables stop해봐라. iptable을 죽이면 nfs가 연결이 될꺼다.

그러나 이것은 임시 방편..
- setup을 쳐라 . 거기서 방화벽을 끄거나. 방화벽을 완화시키면 해결완료 ^^