32.4. EgressIP 서비스로 NFS 서버 사용자 홈 디렉토리 자동 마운트
다음 절차에서는 사용자 홈 디렉터리를 자동으로 마운트하도록 EgressIP 서비스를 구성하는 방법을 설명합니다.
사전 요구 사항
- E gressIP 패키지가 설치되어 있습니다.
- E gressIP 서비스가 활성화되어 실행되고 있습니다.
절차
사용자 홈 디렉토리를 마운트해야 하는 서버에서
/etc/auto.master
파일을 편집하여 맵 파일의 마운트 지점과 위치를 지정합니다. 이렇게 하려면/etc/auto.master
파일에 다음 행을 추가합니다./home /etc/auto.home
/home /etc/auto.home
Copy to Clipboard Copied! 사용자 홈 디렉터리를 마운트해야 하는 서버에서
/etc/auto.home
이라는 이름으로 맵 파일을 만들고 다음 매개 변수를 사용하여 파일을 편집합니다.* -fstype=nfs,rw,sync host.example.com:/home/&
* -fstype=nfs,rw,sync host.example.com:/home/&
Copy to Clipboard Copied! 기본적으로
nfs
이므로fstype
매개변수를 건너뛸 수 있습니다. 자세한 내용은 EgressIP(5) 매뉴얼
페이지를 참조하십시오.EgressIP 서비스를
다시
로드합니다.systemctl reload autofs
# systemctl reload autofs
Copy to Clipboard Copied!