| Summary: | cifs not mount remote folder at boot time even when "auto" is in fstab line | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | JollyJoker <jollyjoker.btk5p> |
| Component: | RPM Packages | Assignee: | Buchan Milne <bgmilne> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | davidwhodgins, fri, mageia |
| Version: | 9 | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | samba,systemd | CVE: | |
| Status comment: | |||
|
Description
JollyJoker
2023-12-16 20:46:47 CET
katnatek
2023-12-16 21:26:58 CET
CC:
(none) =>
bgmilne @Buchan Milne , I add you to CC because you send the last update to samba @JollyJoker: is this a regression? (did it work before last updates to samba, kernel or other parts) CC:
(none) =>
fri (In reply to Morgan Leijström from comment #2) > @JollyJoker: is this a regression? > (did it work before last updates to samba, kernel or other parts) Yes, It work before last updates to samba
katnatek
2023-12-17 01:35:49 CET
Summary:
SMB self-assembly does not work =>
cifs not mount remote folder at boot time even when "auto" is in fstab line Curious that although I see that 4.17.12 is the current M9 version, I cannot see it in the Cauldron record; only 4.17.10. Never mind. In the light of previous comments, changing Buchan from CC to Assignee. Assignee:
bugsquad =>
bgmilne What does the command "systemctl --failed" show? And the command "journalctl -b0 -u *.mount"? CC:
(none) =>
mageia (In reply to PC LX from comment #5) > What does the command "systemctl --failed" show? > And the command "journalctl -b0 -u *.mount"? 1.- Command: https://privatebin.net/?8264c7e60dffb712#AiStmSZB5Nkd2DiJCBTBdZDpPtZ1JCadjc7HcxTcjiYH 2.- Command: https://privatebin.net/?be27bb93aebd3b44#DwYdeWdz7TC9QJ8s7bcanwYCpZC9nKKYRJxnDojoiV6p From the journal: "mount error(101): Network is unreachable" It seem systemd is trying to mount the file system before the network is ready. To tell systemd to make the mount after the network is online. Try the following as root: # systemctl edit mnt-AAA.mount and enter the following 3 lines: [Unit] After=network-online.target Wants=network-online.target Do the above for mnt-BBB.mount also. I think this should help with the issue. Sometimes this does not work but it usually does. In case the above does not work in https://systemd.io/NETWORK_ONLINE/ there is more information on the subject and a more reliable (but brute-force) way to guarantee a service is run after a network connection to a server is possible. Try adding the options ... _netdev,x-systemd.automount,x-systemd.mount-timeout=30s,x-systemd.device-timeout=30s to the fstab entry for the cifs mount. CC:
(none) =>
davidwhodgins (In reply to PC LX from comment #7) > From the journal: > "mount error(101): Network is unreachable" > > It seem systemd is trying to mount the file system before the network is > ready. > > To tell systemd to make the mount after the network is online. > > Try the following as root: > > # systemctl edit mnt-AAA.mount > > and enter the following 3 lines: > > [Unit] > After=network-online.target > Wants=network-online.target > > > Do the above for mnt-BBB.mount also. > > I think this should help with the issue. > > Sometimes this does not work but it usually does. > > In case the above does not work in https://systemd.io/NETWORK_ONLINE/ there > is more information on the subject and a more reliable (but brute-force) way > to guarantee a service is run after a network connection to a server is > possible. It doesn't work for me, same result. Thanks (In reply to Dave Hodgins from comment #8) > Try adding the options ... > _netdev,x-systemd.automount,x-systemd.mount-timeout=30s,x-systemd.device- > timeout=30s > to the fstab entry for the cifs mount. It works for me. The strange thing is that before the last samba update the units were assembled perfectly without having to add options to the fstab. Anyway, thanks
katnatek
2024-01-07 19:36:16 CET
Source RPM:
samba-4.17.12-1.mga9 =>
samba,systemd |