본문 바로가기
IT 이야기 - About IT

[HP-UX] NFS 환경설정

by 회사원 주씨 2009. 7. 15.
반응형


1. /etc/rc.config.d/nfscong 파일에서

NFS_SERVER=0
부분을 아래와 같이 수정한다.

NFS_SERVER=1

2. NFS 서버 가동
> /sbin/init.d]./nfs.server start
     starting NFS SERVER networking
    
     starting up the rpcbind daemon
  rpcbind already started, using pid: 2297
     starting up the mount daemon
  /usr/sbin/rpc.mountd
     starting up the NFS daemons
  /usr/sbin/nfsd 16
     starting up the Status Monitor daemon
  rpc.statd already started, using pid: 2358
     starting up the Lock Manager daemon
  rpc.lockd already started, using pid: 2364

> /sbin/init.d]./nfs.core start
     starting NFS CORE networking
    
     starting up the rpcbind
  rpcbind already started, using pid: 2297
  (이미 가동되어 있으면 위와같은 메세지가 나온다.)
 
> ps -ef | grep nfs로 확인

3. exports 파일 생성
> vi /etc/exports
 /app/bin -access={host파일에 등록된 서버명}:{host파일에 등록된 서버명2}
 {공유하고자 하는 디렉토리} {접속을 허용하는 옵션 - hosts에 등록된 파일이나 IP 입력}

4. 생성 또는 수정된 exports 파일 적용
> /etc/exportfs -a

5. Client에서 /etc/fstab 파일 수정
> vi /etc/fstab
NFS서버명:/app/bin /GLBUTL nfs soft,defaults 0 2

6. MOUNT 시킴
> mount NFS서버명:/app/bin /GLBUTL

※ 다시 umount 시킬때는
> umount /GLBUTL

7. 확인
> bdf

728x90