fstab 마운트 지연

fstab 마운트 지연

방금 Raspberry Pi 4의 SD 카드에 최신 버전의 Manjaro ARM을 설치했습니다. 이제 fstab을 사용하여 Synology NAS에 두 디렉터리를 영구적으로 마운트하려고 합니다(물론 네트워크를 통해). 내 다른 모든 시스템(이전 Manjaro 버전 포함)에서 이것은 내 fstab의 정확히 동일한 두 줄에 대해 작동합니다(여기의 예). //192.168.1.61/inventory /mnt/DS_216/inventory cifs users,vers=3.0,credentials=/mnt/DS_216/216credentials,uid=1000,gid=1000,workgroup=WORKGROUP,noauto,nofail,x-systemd.automount,x-systemd.device-timeout=0,_netdev 0 0 그러나 이번에는 처음에는 작동하지 않는 것 같습니다. 실제로는 작동했지만 한 가지 중요한 문제가 있었습니다. 다른 모든 항목이 로드되었음에도 불구하고 실제로 설치되기까지 1분 40초가 지연되었습니다. 부팅 후 터미널을 열면 검은 화면만 나오며 username@hostname$줄이 나오기까지 위와 같은 시간이 걸립니다. 이때 Ctrl+C를 누르면 바로 나타납니다.

Journalctl 출력을 보면 무슨 일이 일어나고 있는지 알 수 있지만 별로 의미가 없습니다. 즉, 네트워크를 구성할 수 없다고 표시되지만 부팅 후 아무 것도 핑하면 제대로 작동합니다. 또한 Journalctl에 따르면 여기서 일어나는 모든 일은 fstab이 완전히 실행된 후에 발생해야 하는 것 아닌가요? 내가 말했듯이 이전 manjaro 버전에서는 이런 일이 발생하지 않았습니다. 내가 여기서 무엇을 놓치고 있는 걸까요? 내가 Journalctl의 결과를 오해했나요? 아니면 내가 인식하지 못하는 systemd에 하드코딩된 지연이 있습니까?

나를 도와줄 수 있는 사람에게 미리 감사드립니다.

Journalctl 출력의 관련 부분은 다음과 같습니다.

Jun 03 19:49:54 Raspi4 systemd[1]: mnt-DS_216-FamilyTransfer.automount: Got automount request for /mnt/DS_216/FamilyTransfer, triggered by 880 (silver)
Jun 03 19:49:55 Raspi4 guake.desktop[733]: Guake initialized
Jun 03 19:49:57 Raspi4 org.moson.matray.desktop[682]: matray started.
Jun 03 19:49:57 Raspi4 matray[682]: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
Jun 03 19:49:59 Raspi4 kernel: cam-dummy-reg: disabling
Jun 03 19:50:16 Raspi4 systemd[413]: Started Application launched by gsd-media-keys.
Jun 03 19:50:16 Raspi4 gsd-media-keys[909]: Sending 'toggle' message to Guake3
Jun 03 19:50:16 Raspi4 gnome-shell[478]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x60000c
Jun 03 19:50:16 Raspi4 gnome-shell[478]: Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x60000c
Jun 03 19:50:18 Raspi4 gnome-shell[478]: updates_checker.vala:71: check updates
Jun 03 19:50:18 Raspi4 kernel: logitech-hidpp-device 0003:046D:1028.0006: HID++ 1.0 device connected.
Jun 03 19:50:18 Raspi4 upowerd[562]: treated changed event as add on /sys/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2:1.2/0003:046D:C52B.0003/0003:046D:1028.0006/power_supply/hid>
Jun 03 19:50:19 Raspi4 guake.desktop[733]: Spawning new terminal at /home/benedikt
Jun 03 19:50:19 Raspi4 systemd[413]: Started VTE child process 950 launched by guake process 733.
Jun 03 19:50:20 Raspi4 gnome-shell[478]: updates_checker.vala:101: 0 updates found
Jun 03 19:50:20 Raspi4 systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Jun 03 19:50:21 Raspi4 systemd[1]: systemd-localed.service: Deactivated successfully.
Jun 03 19:50:46 Raspi4 geoclue[579]: Service not used for 60 seconds. Shutting down..
Jun 03 19:50:46 Raspi4 systemd[1]: geoclue.service: Deactivated successfully.
Jun 03 19:50:48 Raspi4 dbus-daemon[430]: [session uid=1000 pid=430] Activating via systemd: service name='org.gtk.vfs.Metadata' unit='gvfs-metadata.service' requested by ':1.11' (uid=1000 pid=478 comm="/usr/bin/gnome-shell")
Jun 03 19:50:48 Raspi4 systemd[413]: Starting Virtual filesystem metadata service...
Jun 03 19:50:48 Raspi4 dbus-daemon[430]: [session uid=1000 pid=430] Successfully activated service 'org.gtk.vfs.Metadata'
Jun 03 19:50:48 Raspi4 systemd[413]: Started Virtual filesystem metadata service.
Jun 03 19:51:34 Raspi4 systemd-networkd-wait-online[289]: Timeout occurred while waiting for network connectivity.
Jun 03 19:51:34 Raspi4 systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
Jun 03 19:51:34 Raspi4 systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
Jun 03 19:51:34 Raspi4 systemd[1]: Failed to start Wait for Network to be Configured.
Jun 03 19:51:34 Raspi4 systemd[1]: Reached target Network is Online.
Jun 03 19:51:34 Raspi4 systemd[1]: Mounting /mnt/DS_216/FamilyTransfer...
Jun 03 19:51:34 Raspi4 systemd[1]: Starting Samba NMB Daemon...
Jun 03 19:51:34 Raspi4 kernel: FS-Cache: Netfs 'cifs' registered for caching
Jun 03 19:51:34 Raspi4 kernel: Key type cifs.spnego registered
Jun 03 19:51:34 Raspi4 kernel: Key type cifs.idmap registered
Jun 03 19:51:34 Raspi4 kernel: CIFS: Attempting to mount \\192.168.1.61\FamilyTransfer
Jun 03 19:51:34 Raspi4 systemd[1]: Mounted /mnt/DS_216/FamilyTransfer.```

답변1

어쨌든 NetworkManager와 systemd-networkd가 모두 실행 중이므로 서로를 차단하므로 fstab이 실행되기 전에 systemd-networkd의 2분 제한 시간이 만료되어야 합니다. 이는 또한 네트워크 연결이 지속되는 이유를 설명합니다. 네트워크 서비스를 끄고 NetworkManager( systemctl disable systemd-networkd-wait-online)를 사용하면 모든 문제가 해결되었습니다.

관련 정보