|
News,
Internal,
Projects,
Home Software, Support, Documentation |
On Mon, Apr 12, 2004 at 07:02:29PM +0900, Young S. Choi wrote: > 일단 시험삼아 /usr/ports를 2개의 머신에서 마운트해보려고 합니다. > > nfs server는 예를 들어 server.a.b.c(아이피 주소는 155.230.1.1) > > rc.conf는 > rpcbind_enable="YES" > nfs_server_enable="YES" > 를 하였고 > > /etc/exports는 > /usr/ports/ -maproot=root client.a.b.c > > 이렇게 하였습니다. > > # showmount -e server > Exports list on server: > /usr/ports/ client.a.b.c > > 이렇게 나옵니다. > > > NFS Clinet는 > rc.conf에는 > nfs_client_enable="YES" > 하구서 > > # mount -o bg,soft,intr server:/usr/ports/ /usr/ports > [udp] server:/usr/ports: Permission denied > nfs: Cannot immediately mount server:/usr/ports, backgrounding > > 이렇게 나오는군요. > 5.X라면 NFS Server에서는 rc.conf에 다음설정이 필요합니다. nfs_server_enable="YES" mountd_enable="YES" rpc_lockd_enable="YES" rpc_statd_enable="YES" rpcbind_enable="YES" NFS Clinet에선 다음처럼 mount하면 됩니다. mount_nfs -3 -T -s -i server:/path/to/export /nfsdir 그리고 NFS에서는 UDP 보다는 TCP를 사용하는게 좋겠습니다. > > > 그리고 추가 질문인데.... 위의 것은 hosts.allow를 설정하지 않은 상태입니다. > > hosts.allow로 대부분을 막아두고 nfs만 열기 위해서 > > ALL : ALL : deny 하구서 > > portmap : 155.230.1.100 : allow > nfsd : 155.230.1.100 : allow nfsd(8)는 TCP wrapper의 영향을 받지않습니다. > portmap : ALL : deny > 이렇게 수정을 했습니다.(client의 IP주소가 155.230.1.100이라 가정...) > > #mount -o bg,soft,intr server.a.b.c:/usr/ports/ /usr/ports > [udp] server:/usr/ports: RPCPROG_NFS: RPC: Port mapper failure - RPC: ^^^^^ TCP wrapper는 UDP는 제어할 수 없습니다. > Authentication error > nfs: Cannot immediately mount server.knu.ac.kr:/usr/ports, backgrounding > > 이렇게 나옵니다. > > 둘다 root가 실행을 했고 nfs옵션은 자세히 모르겠지만 위와같이 export할때 > maproot=root하였고 root 의 uid가 둘다 0이니 괜찮은것 아닌가요? > #man 5 exports > 답변 부탁드립니다. > > ps) > > vim에 대한 질문을 드렸었는데 차은호님 감사합니다. 차은호님께서 지적하신 > 부분이 정확히! 맞더군요. > > 왜 빨라졌다 느려졌다 하는지 이제야 이유를 알겠더군요 =) > > > > _______________________________________________ > 한국 FreeBSD 사용자 그룹(KFUG) questions 메일링 리스트 > questions at kr.FreeBSD.org > http://www.kr.FreeBSD.org/mailman/listinfo/questions -- Pyun YongHyeon <http://www.kr.freebsd.org/~yongari> _______________________________________________ 한국 FreeBSD 사용자 그룹(KFUG) questions 메일링 리스트 questions at kr.FreeBSD.org http://www.kr.FreeBSD.org/mailman/listinfo/questions
|
Copyright © 1998-2005 Korea FreeBSD Users Group. All rights reserved. webmaster at kr.FreeBSD.org $Date: 2004/04/14 14:41:34 $ |
|