[Bug 1077063] New: mounting of cifs fs during boot does not work
http://bugzilla.opensuse.org/show_bug.cgi?id=1077063 Bug ID: 1077063 Summary: mounting of cifs fs during boot does not work Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.3 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: wolfgang@rosenauer.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- In former times there was smbfstab to mount SMB and CIFS filesystems in openSUSE. I think when this changed I followed /usr/share/doc/packages/cifs-utils/README.cifstab.migration So I have the following mounts in my /etc/fstab now: //nas/share /local/net cifs noperm,file_mode=0644,password="" 0 0 //nas/media /local/media cifs noperm,file_mode=0644,password="" 0 0 //smart-controller/openHAB-conf /local/openhab cifs noperm,file_mode=0644,username=openhabian,password=openhabian 0 0 But none of those is mounted when I reboot the system. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1077063 http://bugzilla.opensuse.org/show_bug.cgi?id=1077063#c1 --- Comment #1 from Wolfgang Rosenauer <wolfgang@rosenauer.org> --- Manually doing mount -a works immediately. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1077063 http://bugzilla.opensuse.org/show_bug.cgi?id=1077063#c2 Wolfgang Rosenauer <wolfgang@rosenauer.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|Leap 42.3 |Leap 15.0 --- Comment #2 from Wolfgang Rosenauer <wolfgang@rosenauer.org> --- Still the same issue with leap 15 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1077063 http://bugzilla.opensuse.org/show_bug.cgi?id=1077063#c3 Tomáš Chvátal <tchvatal@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bnc-team-screening@forge.pr |jmcdonough@suse.com |ovo.novell.com | --- Comment #3 from Tomáš Chvátal <tchvatal@suse.com> --- Probably to be sorted by samba team. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1077063 James McDonough <jmcdonough@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|jmcdonough@suse.com |samba-maintainers@SuSE.de -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1077063 http://bugzilla.opensuse.org/show_bug.cgi?id=1077063#c5 Paulo Alcantara <palcantara@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |palcantara@suse.com --- Comment #5 from Paulo Alcantara <palcantara@suse.com> --- Could you please paste the output of the automatically generated files that systemd created during bootup? # cat /run/systemd/generator/*.mount Also their logs: # journalctl -u *.mount Thanks Paulo -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1077063 http://bugzilla.opensuse.org/show_bug.cgi?id=1077063#c6 --- Comment #6 from Wolfgang Rosenauer <wolfgang@rosenauer.org> --- (In reply to Paulo Alcantara from comment #5)
Could you please paste the output of the automatically generated files that systemd created during bootup?
# cat /run/systemd/generator/*.mount
# Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=local-fs.target [Mount] Where=/boot/efi What=/dev/disk/by-uuid/1945-ECE4 Type=vfat # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=local-fs.target [Mount] Where=/boot/grub2/i386-pc What=/dev/disk/by-uuid/74a94a17-c6ec-41cb-abfc-92103c775ac6 Type=btrfs Options=subvol=/@/boot/grub2/i386-pc # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=local-fs.target [Mount] Where=/boot/grub2/x86_64-efi What=/dev/disk/by-uuid/74a94a17-c6ec-41cb-abfc-92103c775ac6 Type=btrfs Options=subvol=/@/boot/grub2/x86_64-efi # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=remote-fs.target [Mount] # Canonicalized from /local/media Where=/home/local/media What=//nas/media Type=cifs Options=noperm,file_mode=0644,password="" # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=remote-fs.target [Mount] # Canonicalized from /local/net Where=/home/local/net What=//nas/share Type=cifs Options=noperm,file_mode=0644,password="" # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=remote-fs.target [Mount] # Canonicalized from /local/openhab Where=/home/local/openhab What=//smart-controller/openHAB-conf Type=cifs Options=noperm,file_mode=0644,username=XXX,password=XXX # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=local-fs.target Requires=systemd-fsck@dev-disk-by\x2duuid-5ed2e49d\x2de380\x2d4fa2\x2db334\x2db8d3a20e9769.service After=systemd-fsck@dev-disk-by\x2duuid-5ed2e49d\x2de380\x2d4fa2\x2db334\x2db8d3a20e9769.service [Mount] Where=/home What=/dev/disk/by-uuid/5ed2e49d-e380-4fa2-b334-b8d3a20e9769 Type=ext4 Options=data=ordered,acl,user_xattr # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=local-fs.target [Mount] Where=/ What=/dev/disk/by-uuid/74a94a17-c6ec-41cb-abfc-92103c775ac6 Type=btrfs # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=local-fs.target [Mount] Where=/opt What=/dev/disk/by-uuid/74a94a17-c6ec-41cb-abfc-92103c775ac6 Type=btrfs Options=subvol=/@/opt # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=local-fs.target [Mount] Where=/root What=/dev/disk/by-uuid/74a94a17-c6ec-41cb-abfc-92103c775ac6 Type=btrfs Options=subvol=/@/root # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=local-fs.target [Mount] Where=/srv What=/dev/disk/by-uuid/74a94a17-c6ec-41cb-abfc-92103c775ac6 Type=btrfs Options=subvol=/@/srv # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=local-fs.target [Mount] Where=/tmp What=/dev/disk/by-uuid/74a94a17-c6ec-41cb-abfc-92103c775ac6 Type=btrfs Options=subvol=/@/tmp # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=local-fs.target [Mount] Where=/usr/local What=/dev/disk/by-uuid/74a94a17-c6ec-41cb-abfc-92103c775ac6 Type=btrfs Options=subvol=/@/usr/local # Automatically generated by systemd-fstab-generator [Unit] SourcePath=/etc/fstab Documentation=man:fstab(5) man:systemd-fstab-generator(8) Before=local-fs.target [Mount] Where=/var What=/dev/disk/by-uuid/74a94a17-c6ec-41cb-abfc-92103c775ac6 Type=btrfs Options=subvol=/@/var
Also their logs:
# journalctl -u *.mount
-- Logs begin at Sun 2018-06-03 22:52:12 CEST, end at Wed 2018-06-06 16:28:15 CEST. -- Jun 03 22:52:13 linux-nehs systemd[1]: Mounting /sysroot... Jun 03 22:52:13 linux-nehs systemd[1]: Mounted /sysroot. Jun 03 22:52:14 Hygiea systemd[1]: Mounted POSIX Message Queue File System. Jun 03 22:52:14 Hygiea systemd[1]: Mounted Huge Pages File System. Jun 03 22:52:14 Hygiea systemd[1]: Mounted Kernel Debug File System. Jun 03 22:52:14 Hygiea systemd[1]: boot-grub2-x86_64\x2defi.mount: Directory /boot/grub2/x86_64-efi to mount over > Jun 03 22:52:14 Hygiea systemd[1]: Mounting /boot/grub2/x86_64-efi... Jun 03 22:52:14 Hygiea systemd[1]: opt.mount: Directory /opt to mount over is not empty, mounting anyway. Jun 03 22:52:14 Hygiea systemd[1]: Mounting /opt... Jun 03 22:52:14 Hygiea systemd[1]: Mounting /boot/efi... Jun 03 22:52:14 Hygiea systemd[1]: tmp.mount: Directory /tmp to mount over is not empty, mounting anyway. Jun 03 22:52:14 Hygiea systemd[1]: Mounting /tmp... Jun 03 22:52:14 Hygiea systemd[1]: srv.mount: Directory /srv to mount over is not empty, mounting anyway. Jun 03 22:52:14 Hygiea systemd[1]: Mounting /srv... Jun 03 22:52:14 Hygiea systemd[1]: var.mount: Directory /var to mount over is not empty, mounting anyway. Jun 03 22:52:14 Hygiea systemd[1]: Mounting /var... Jun 03 22:52:14 Hygiea systemd[1]: usr-local.mount: Directory /usr/local to mount over is not empty, mounting anyw> Jun 03 22:52:14 Hygiea systemd[1]: Mounting /usr/local... Jun 03 22:52:14 Hygiea systemd[1]: root.mount: Directory /root to mount over is not empty, mounting anyway. Jun 03 22:52:14 Hygiea systemd[1]: Mounting /root... Jun 03 22:52:14 Hygiea systemd[1]: Mounting /boot/grub2/i386-pc... Jun 03 22:52:14 Hygiea systemd[1]: Mounted /boot/grub2/x86_64-efi. Jun 03 22:52:14 Hygiea systemd[1]: Mounted /opt. Jun 03 22:52:14 Hygiea systemd[1]: Mounted /var. Jun 03 22:52:14 Hygiea systemd[1]: Mounted /srv. Jun 03 22:52:14 Hygiea systemd[1]: Mounted /boot/grub2/i386-pc. Jun 03 22:52:14 Hygiea systemd[1]: Mounted /usr/local. Jun 03 22:52:14 Hygiea systemd[1]: Mounted /tmp. Jun 03 22:52:14 Hygiea systemd[1]: Mounted /root. Jun 03 22:52:14 Hygiea systemd[1]: Mounting /home... Jun 03 22:52:15 Hygiea systemd[1]: Mounted /home. Jun 03 22:52:15 Hygiea systemd[1]: Mounted /boot/efi. Jun 03 22:52:23 Hygiea.rosenauer.org systemd[1]: Mounting /home/local/net... Jun 03 22:52:23 Hygiea.rosenauer.org systemd[1]: Mounting /home/local/media... Jun 03 22:52:23 Hygiea.rosenauer.org systemd[1]: Mounting /home/local/openhab... Jun 03 22:52:23 Hygiea.rosenauer.org systemd[1]: Mounted /home/local/net. Jun 03 22:52:23 Hygiea.rosenauer.org systemd[1]: Mounted /home/local/media. Jun 03 22:52:23 Hygiea.rosenauer.org systemd[1]: Mounted /home/local/openhab. Jun 03 22:52:24 Hygiea.rosenauer.org systemd[1]: Mounting FUSE Control File System... Jun 03 22:52:24 Hygiea.rosenauer.org systemd[1]: Mounted FUSE Control File System. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1077063 http://bugzilla.opensuse.org/show_bug.cgi?id=1077063#c7 --- Comment #7 from Wolfgang Rosenauer <wolfgang@rosenauer.org> --- I will reboot a bit later again to get a better idea. I cannot correlate the legacy log information with any actions I performed at the same time. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1077063 http://bugzilla.opensuse.org/show_bug.cgi?id=1077063#c8 --- Comment #8 from Paulo Alcantara <palcantara@suse.com> --- (In reply to Wolfgang Rosenauer from comment #7)
I will reboot a bit later again to get a better idea. I cannot correlate the legacy log information with any actions I performed at the same time.
OK - thanks. Other than that, I've got a few more questions to you: 1. Did you run 'journalctl -u *.mount' right after getting the failure during bootup? If not, could you please do that? 2. Is /local a symlink to /home/local? 3. Could you please paste output of 'mount | grep cifs' after you perform 'mount -a' manually to get everything mounted correctly? Paulo -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1077063 http://bugzilla.opensuse.org/show_bug.cgi?id=1077063#c9 --- Comment #9 from Wolfgang Rosenauer <wolfgang@rosenauer.org> --- (In reply to Paulo Alcantara from comment #8)
1. Did you run 'journalctl -u *.mount' right after getting the failure during bootup? If not, could you please do that?
the following was gathered after a reboot (before mount -a) -- Logs begin at Wed 2018-06-06 22:51:51 CEST, end at Wed 2018-06-06 22:52:49 CEST. -- Jun 06 22:51:52 linux-nehs systemd[1]: Mounting /sysroot... Jun 06 22:51:52 linux-nehs systemd[1]: Mounted /sysroot. Jun 06 22:51:53 Hygiea systemd[1]: opt.mount: Directory /opt to mount over is not empty, mounting anyway. Jun 06 22:51:53 Hygiea systemd[1]: Mounting /opt... Jun 06 22:51:53 Hygiea systemd[1]: Mounting /boot/efi... Jun 06 22:51:53 Hygiea systemd[1]: Mounting /boot/grub2/i386-pc... Jun 06 22:51:53 Hygiea systemd[1]: usr-local.mount: Directory /usr/local to mount over is not empty, mounting anyway. Jun 06 22:51:53 Hygiea systemd[1]: Mounting /usr/local... Jun 06 22:51:53 Hygiea systemd[1]: srv.mount: Directory /srv to mount over is not empty, mounting anyway. Jun 06 22:51:53 Hygiea systemd[1]: Mounting /srv... Jun 06 22:51:53 Hygiea systemd[1]: var.mount: Directory /var to mount over is not empty, mounting anyway. Jun 06 22:51:53 Hygiea systemd[1]: Mounting /var... Jun 06 22:51:53 Hygiea systemd[1]: root.mount: Directory /root to mount over is not empty, mounting anyway. Jun 06 22:51:53 Hygiea systemd[1]: Mounting /root... Jun 06 22:51:53 Hygiea systemd[1]: boot-grub2-x86_64\x2defi.mount: Directory /boot/grub2/x86_64-efi to mount over is not empty, mounting anyway. Jun 06 22:51:53 Hygiea systemd[1]: Mounting /boot/grub2/x86_64-efi... Jun 06 22:51:53 Hygiea systemd[1]: tmp.mount: Directory /tmp to mount over is not empty, mounting anyway. Jun 06 22:51:53 Hygiea systemd[1]: Mounting /tmp... Jun 06 22:51:53 Hygiea systemd[1]: Mounted /boot/efi. Jun 06 22:51:53 Hygiea systemd[1]: Mounting /home... Jun 06 22:51:53 Hygiea systemd[1]: Mounted /home. Jun 06 22:51:53 Hygiea systemd[1]: Mounted /opt. Jun 06 22:51:53 Hygiea systemd[1]: Mounted /usr/local. Jun 06 22:51:53 Hygiea systemd[1]: Mounted /srv. Jun 06 22:51:53 Hygiea systemd[1]: Mounted /boot/grub2/i386-pc. Jun 06 22:51:53 Hygiea systemd[1]: Mounted /var. Jun 06 22:51:53 Hygiea systemd[1]: Mounted /root. Jun 06 22:51:53 Hygiea systemd[1]: Mounted /tmp. Jun 06 22:51:53 Hygiea systemd[1]: Mounted /boot/grub2/x86_64-efi. Jun 06 22:52:00 Hygiea systemd[1]: Mounting /home/local/openhab... Jun 06 22:52:00 Hygiea systemd[1]: Mounting /home/local/net... Jun 06 22:52:00 Hygiea systemd[1]: Mounting /home/local/media... Jun 06 22:52:00 Hygiea systemd[1]: Mounted /home/local/net. Jun 06 22:52:00 Hygiea systemd[1]: Mounted /home/local/media. Jun 06 22:52:00 Hygiea systemd[1]: Mounted /home/local/openhab. Jun 06 22:52:02 Hygiea systemd[1]: Mounting FUSE Control File System... Jun 06 22:52:02 Hygiea systemd[1]: Mounted FUSE Control File System.
2. Is /local a symlink to /home/local?
Yes
3. Could you please paste output of 'mount | grep cifs' after you perform 'mount -a' manually to get everything mounted correctly?
Hygiea:/local/net # mount | grep cifs //nas/share on /home/local/net type cifs (rw,relatime,vers=1.0,cache=strict,username=root,domain=,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.250.11,file_mode=0644,dir_mode=0755,nounix,serverino,mapposix,noperm,rsize=61440,wsize=65536,echo_interval=60,actimeo=1) //nas/media on /home/local/media type cifs (rw,relatime,vers=1.0,cache=strict,username=root,domain=,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.250.11,file_mode=0644,dir_mode=0755,nounix,serverino,mapposix,noperm,rsize=61440,wsize=65536,echo_interval=60,actimeo=1) //smart-controller/openHAB-conf on /home/local/openhab type cifs (rw,relatime,vers=1.0,cache=strict,username=openhabian,domain=,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.250.12,unix,posixpaths,serverino,mapposix,acl,noperm,rsize=1048576,wsize=65536,echo_interval=60,actimeo=1) Noteworthy I didn't have to perform mount -a this time. Whatever happened inbetween it is either fixed by something I do not know or it's not consistently failing anymore. I'm sure though that directly after installation of 15.0 this happened again. I can only tell that I will watch and report back if it happens again at some point. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1077063 http://bugzilla.opensuse.org/show_bug.cgi?id=1077063#c10 --- Comment #10 from Paulo Alcantara <palcantara@suse.com> --- OK. Thanks for all the info! Paulo -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com