1 / 11

NFS (Network File system)

NFS (Network File system). NFS. 1. NFS 의 정의. 1). NFS 란 ?. NFS 란 ?. -. Windows 에서 공유가 있는 것처럼 Solaris 에서도 공유 service 가 있다 . disk 의 자원을 공유해서 사용하므로 data 의 변경이 동시에 이루어지며 disk 를 절약할 수 있는 장점이 있지만 속도가 느린 단점도 있다 . -. SUN 이 UNIX work-station 시장에 진출하면서 Network 기능의 강점을

robin-payne
Download Presentation

NFS (Network File system)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. NFS (Network File system)

  2. NFS 1. NFS의 정의 1). NFS란? NFS 란? -. Windows에서 공유가 있는 것처럼 Solaris에서도 공유 service가 있다. disk의 자원을 공유해서 사용하므로 data의 변경이 동시에 이루어지며 disk를 절약할 수 있는 장점이 있지만 속도가 느린 단점도 있다. -. SUN이 UNIX work-station 시장에 진출하면서 Network 기능의 강점을 살리기 위해 1985년에 소개한 file service로 file server의 표준으로 정착 -. computer 사용자가 원격지 computer에 있는 file을 마치 자신의 computer 에 있는 것처럼 검색하고, 마음대로 저장하거나 수정하도록 해주는 client/server형 응용프로그램이다. (Network로 HDD를 directory 단위로 공유하는 것) -. TCP/IP 사용 (초기버전의 NFS에서는 UDP 사용) -. 통신 방법으로서 RPC 사용

  3. NFS 1. NFS의 정의 1). NFS란? NFS 구성 NFS Server NFS Client 많은 Server가 공유가 가능하다.

  4. NFS 1. NFS의 정의 1). NFS daemon NFS Server daemon NFS Server에서 동작하는 daemon들 nfsd mountd NFS Client가 요청한 file을 실제로 전송하는 역할 NFS Client의 mount 요청을 받아들여 처리하는 역할

  5. NFS 1. NFS의 정의 2). NFS daemon NFS client daemon NFS Client에서 동작하는 daemon들 lockd statd NFS Client가 mount 해서 사용할 때, 다른 process들이 file을 읽거나 변경하는 것을 금지 하는 역할 NFS서버가 재부팅 하면 NFS클라이언트의 statd데몬 프로세스가 lockd데몬 프로세스에 게 파일을 새로 잠글 것을 알린다.

  6. NFS 1. NFS의 정의 3). NFS 설정방법 NFS 임시설정 Server Client 전제조건 Client와 통신이 가능해야 한다. NFS Server에서 돌아가야 하는 daemon이 올라와야 한다. 전제조건 Server와 통신이 가능해야 한다. NFS Client에서 돌아가야 하는 daemon이 올라와야 한다. sun02[/]# share –F nfs –o rw /share_dir sun03[/]# mount –F nfs –o rw sun02:/share_dir /cli_dir Server를 rebooting하면 공유가 소멸된다.

  7. NFS 1. NFS의 정의 3). NFS 설정방법 NFS 영구설정 Server Client sun02[/]# vi /etc/dfs/dfstab ;공유내용 설정 share –F nfs –o rw /share_dir ;공유내용 추가 sun02[/]# shareall ;dfstab에 있는 내용 공유 sun03[/]# vi /etc/vfstab ;자동 mount 설정 sun02:/share_dir - /cli_dir nfs - yes - ;공유된 directory가 자동mount 되도록 설정 sun03[/]# mount /cli_dir ;vfstab에 이미 정의되어 있기 때문에 sun02의 /share_dir을 sun03의 /cli_dir로 mount하여 공유한다. Server를 rebooting해도 설정file에 의해 공유가 계속된다.

  8. NFS 1. NFS의 정의 4). NFS 관련명령 NFS 관련 명령어 • share [-F FStype][-o options][-d description][directory] • 현재 시스템에 존재하는 파일 시스템을 디렉토리 단위로 공유하는 명령 • option 없이 share 하면 /etc/dfs/sharetab의 내용 출력 • -F옵션 없이 사용하면 /etc/dfs/fstypes의 주석문 아닌 첫 단어가 기본 file-system으로 • 사용됨

  9. NFS 1. NFS의 정의 4). NFS 관련명령 NFS 관련 명령어 • share [-F Fstype][-o options][-d description][directory] • -F옵션 없이 • 사용됨

  10. NFS 1. NFS의 정의 4). NFS 관련명령 NFS 관련 명령어 • share [-F Fstype][-o options][-d description][directory] -d 옵션 : 간단한 설명문

  11. NFS 1. NFS의 정의 4). NFS 관련명령 NFS 관련 명령어 unshare [-F fstype] directory - 공유해제 - /etc/dfs/sharetab 공유해제 정보가 제거됨 shareall - /etc/dfs/dfstab 명시된 모든 directory 공유 unshareall - /etc/dfs/sharetab 명시된 현재 공유한 모든 directory 공유 해제 umount 디렉토리 -mount 해제 mountall [-r], unountall [-r] --r 옵션 : 대상이 NFS로만 제한됨

More Related