![nfs 마운트 드라이브를 부팅하는 데 시간이 오래 걸림](https://linux55.com/image/7450/nfs%20%EB%A7%88%EC%9A%B4%ED%8A%B8%20%EB%93%9C%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%A5%BC%20%EB%B6%80%ED%8C%85%ED%95%98%EB%8A%94%20%EB%8D%B0%20%EC%8B%9C%EA%B0%84%EC%9D%B4%20%EC%98%A4%EB%9E%98%20%EA%B1%B8%EB%A6%BC.png)
우분투 16.04로 업그레이드했을 때 부팅 시간이 급격히 늘어났고 다음을 수행했습니다.
체계적인 분석 책임보시다시피 처음 두 항목은 로드하는 데 시간이 오래 걸리며 이는 SSD에 있습니다.
1min 30.147s home-test-nfsp.mount
1min 30.145s home-test-nfst.mount
5.380s NetworkManager-wait-online.service
554ms systemd-fsck@dev-disk-by\x2duuid-9f7c7335\x2d05e4\x2d437f\x2dbe
225ms dev-sda1.device
211ms ModemManager.service
208ms systemd-rfkill.service
181ms grub-common.service
174ms networking.service
157ms systemd-logind.service
153ms gpu-manager.service
129ms systemd-localed.service
118ms upower.service
117ms udisks2.service
117ms alsa-restore.service
117ms lm-sensors.service
114ms pppd-dns.service
내 /etc/fstab 파일에 다음 줄이 있습니다
192.168.1.34:/media/tgh/1\040entertain/audio/ /home/test/nfst nfs soft,intr,rsize=8192,wsize=8192
192.168.1.34:/media/tgh/1\040entertain/youtube/1podtemp/ /home/test/nfsp nfs soft,intr,rsize=8192,wsize=8192
NFS 부팅에 시간이 오래 걸리는 이유는 무엇입니까?
감사해요
답변1
서비스가 활성화되면 NetworkManager-wait-online.service
구성된 모든 네트워크 장치가 시작되고 시작이 계속되기 전에 IP 주소가 할당됩니다. 서비스는 90초 후에 시간 초과됩니다. 시간 초과에 도달하지 않은 경우에도 이 서비스를 활성화하면 시작이 크게 지연될 수 있습니다.