강좌
클라우드/리눅스에 관한 강좌입니다.
리눅스 분류

NFS서버에서 마운트 허용할 NFS클라이언트를 설정하는 export 실무활용

작성자 정보

  • 구돌 작성
  • 작성일

컨텐츠 정보

본문

NFS서버에서 마운트 허용할 NFS클라이언트를 설정하는 export 실무활용

 

exportfs NFS서버에서 마운트를 허용할 NFS클라이언트들을 설정하는 export filesystem (/etc/exports)을 확인하고 관리하는 명령어입니다


, NFS서버에 대한 현재 export filesystem테이블을 유지관리하기 위한 용도로 사용됩니다


또한 NFS에 마운트가 정확하게 되어있는가를 확인하기 위하여 마운트옵션들까지 정확하게 확인하기 위한 목적으로 사용되기도 합니다.

 

명령어위치 : /usr/sbin/exportfs

 

사용형식

/usr/sbin/exportfs  [-avi][-o  options,..][client:/path..]

/usr/sbin/exportfs -r [-v]

/usr/sbin/exportfs [-av] -u [client:/path ..]

/usr/sbin/exportfs [-v]

 

다음은 exportfs명령어를 이용하여 현재 NFS서버의 export파일시스템을 확인한 예입니다.

 

[root@file init.d]# exportfs

/home/jinious   command.superuser.co.kr

/home/jinious   bible.superuser.co.kr

/home/sspark    command.superuser.co.kr

/home/sspark    bible.superuser.co.kr

/home/bible     command.superuser.co.kr

/home/bible     bible.superuser.co.kr

[root@file init.d]#

 

다음은 exportfs명령어를 이용하여 현재 NFS서버에 마운트되어 있는 NFS마운트정보를 상세하게 확인한 예입니다.

 

[root@file init.d]# exportfs -v

/home/jinious   command.superuser.co.kr(rw,wdelay,root_squash)

/home/jinious   bible.superuser.co.kr(rw,wdelay,root_squash)

/home/sspark    command.superuser.co.kr(rw,wdelay,root_squash)

/home/sspark    bible.superuser.co.kr(rw,wdelay,root_squash)

/home/bible     command.superuser.co.kr(rw,wdelay,root_squash)

/home/bible     bible.superuser.co.kr(rw,wdelay,root_squash)

[root@file init.d]#

 

위의 결과를 보시면 아시겠지만 “exportfs -v”를 실행하시면 NFS서버에 마운트되어 있는 마운트포인트, 마운트한 NFS클라이언트 호스트명, 마운트 옵션등에 대한 자세한 마운트정보를 확인할 수 있습니다.

 

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,035 명
  • 현재 강좌수 :  35,791 개
  • 현재 접속자 :  85 명