[Bug 780132] New: NFS share are not automounting with NIS
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c0 Summary: NFS share are not automounting with NIS Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: michael@karbach.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1 Actually I have this problem also with OS-12.1. With a freshly installed OS-12 and a running NIS/NFS my NFS shared filesystem are not automatically mounted. I have marked automount in YaST-NIS module and selected the remote directory, but on boot it will not mount. But a simple mount /home after booting mounts the remote home-directory, without problems. I have this issue on several OS-12-systems. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c kk zhang <kkzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkzhang@suse.com AssignedTo|bnc-team-screening@forge.pr |bili@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c1 Li Bin <bili@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bili@suse.com |nfbrown@suse.com --- Comment #1 from Li Bin <bili@suse.com> 2012-10-10 07:24:17 UTC --- Assign to maintainer. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c2 Neil Brown <nfbrown@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |michael@karbach.org --- Comment #2 from Neil Brown <nfbrown@suse.com> 2012-10-17 23:51:08 UTC --- Sounds like it might be a yast problem rather than and nfs problem. But some details would help. Please attach your "/etc/fstab" file and any automount files - probably /etc/auto.*. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c3 --- Comment #3 from Michael Karbach <michael@karbach.org> 2012-10-18 05:37:18 UTC --- Created an attachment (id=509970) --> (http://bugzilla.novell.com/attachment.cgi?id=509970) content of tar -czf auto.* fstab Required files of non working auto-mount of computer -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c4 --- Comment #4 from Michael Karbach <michael@karbach.org> 2012-10-18 05:37:59 UTC --- Created an attachment (id=509971) --> (http://bugzilla.novell.com/attachment.cgi?id=509971) content of tar -czf auto.* fstab Required files of non working auto-mount of computer -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c5 --- Comment #5 from Michael Karbach <michael@karbach.org> 2012-10-18 05:44:33 UTC --- I have attached all files in /etc/auto* and fstab. Both systems are freshly installed OS12.2. This problems I do have actually on all new installed systems, at least the last 5-10 computers. May be it is related to the kind of networking system of the NIS-server? Unfortunately I do not have access to the NIS-server, only to the NFS-Server. The-NFS-Server is a OS-11.4. In my home system with NIS/NFS-Server OS-12.2 and all clients with OS-12.2 auto-mounting is working, but I do not have done any special things, despite those one has to do with YaST. M -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c6 --- Comment #6 from Neil Brown <nfbrown@suse.com> 2012-10-18 06:41:10 UTC --- So you have one NFS filesystem listed in /etc/fstab and it doesn't mount at boot time. My guess is that your network is controlled by 'network manager' rather than 'ifup'. If this is the case, then there will be no network available when filesystems are mounted, so /home will miss out. What does: grep NETWORKMANAGER /etc/sysconfig/network/config show? If it shows NETWORKMANAGER="yes" (and maybe some other comment lines) then you are using network manager. In that case remove the "/home" line from '/etc/fstab', and add the line /- /etc/auto.direct to the end of /etc/auto.master, and create a file called /etc/auto.direct containing /home wptlsv1.physik.uni-wuppertal.de:/open/home and then it should auto-mount /home whenever you access it - providing the network has been set up by then. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c7 --- Comment #7 from Michael Karbach <michael@karbach.org> 2012-10-18 06:44:57 UTC --- No, all systems are using if-up ans have fixed IPs, also at home. E.g.: su-wptl84 /root: grep NETWORKMANAGER /etc/sysconfig/network/config NETWORKMANAGER="no" # This variable has no effect if NETWORKMANAGER=no. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c8 --- Comment #8 from Michael Karbach <michael@karbach.org> 2012-10-18 06:47:53 UTC --- The point is, that the system seams to be completely aware of NIS/NFS, because without any other interaction, a simple mount /home mounts the filesystem. May be it is important to note, if I do this in this way, the mounted filesystem appears to times in df: su-wptl84 /root: df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 258027908 13830828 231090036 6% / devtmpfs 8188596 36 8188560 1% /dev tmpfs 8197368 96 8197272 1% /dev/shm tmpfs 8197368 708 8196660 1% /run /dev/sda2 258027908 13830828 231090036 6% / tmpfs 8197368 0 8197368 0% /sys/fs/cgroup tmpfs 8197368 708 8196660 1% /var/run tmpfs 8197368 0 8197368 0% /media tmpfs 8197368 708 8196660 1% /var/lock /dev/sda3 214440128 14001928 189545196 7% /virtualbox 132.195.108.147:/open/home/ 480719104 219070464 237229440 49% /home 132.195.108.147:/open/home/ 480719104 219070464 237229440 49% /home -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c9 --- Comment #9 from Neil Brown <nfbrown@suse.com> 2012-10-18 07:33:00 UTC ---
132.195.108.147:/open/home/ 480719104 219070464 237229440 49% /home 132.195.108.147:/open/home/ 480719104 219070464 237229440 49% /home
Yes, that is strange. It implies that the filesystem was already mounted in some sense. What exactly happens if you: ls -l /home df /home after a reboot and before mounting "/home" manually? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c10 --- Comment #10 from Michael Karbach <michael@karbach.org> 2012-10-18 07:44:56 UTC --- Here below all commands successively: /root# uptime 09:37am up 0:01, 2 users, load average: 2.22, 1.02, 0.39 /root# df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 258027908 13833048 231087816 6% / devtmpfs 8188596 36 8188560 1% /dev tmpfs 8197368 96 8197272 1% /dev/shm tmpfs 8197368 704 8196664 1% /run /dev/sda2 258027908 13833048 231087816 6% / tmpfs 8197368 0 8197368 0% /sys/fs/cgroup tmpfs 8197368 704 8196664 1% /var/run tmpfs 8197368 0 8197368 0% /media tmpfs 8197368 704 8196664 1% /var/lock /dev/sda3 214440128 14001928 189545196 7% /virtualbox /root# ls -l /home ls: cannot access /home/karbach: No such file or directory total 0 dr-xr-xr-x 2 root root 0 Oct 18 07:36 ALiCEnext dr-xr-xr-x 2 root root 0 Oct 18 07:36 achiman dr-xr-xr-x 2 root root 0 Oct 18 07:36 ali dr-xr-xr-x 2 root root 0 Oct 18 07:36 ballnus dr-xr-xr-x 2 root root 0 Oct 18 07:36 bama ... dr-xr-xr-x 2 root root 0 Oct 18 07:36 zabbas dr-xr-xr-x 2 root root 0 Oct 18 07:36 zadouria /root# df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 258027908 13830976 231089888 6% / devtmpfs 8188596 36 8188560 1% /dev tmpfs 8197368 96 8197272 1% /dev/shm tmpfs 8197368 704 8196664 1% /run /dev/sda2 258027908 13830976 231089888 6% / tmpfs 8197368 0 8197368 0% /sys/fs/cgroup tmpfs 8197368 704 8196664 1% /var/run tmpfs 8197368 0 8197368 0% /media tmpfs 8197368 704 8196664 1% /var/lock /dev/sda3 214440128 14001928 189545196 7% /virtualbox /root# df /home Filesystem 1K-blocks Used Available Use% Mounted on 132.195.108.147:/open/home/ 0 0 0 - /home /root# df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 258027908 13830976 231089888 6% / devtmpfs 8188596 36 8188560 1% /dev tmpfs 8197368 96 8197272 1% /dev/shm tmpfs 8197368 704 8196664 1% /run /dev/sda2 258027908 13830976 231089888 6% / tmpfs 8197368 0 8197368 0% /sys/fs/cgroup tmpfs 8197368 704 8196664 1% /var/run tmpfs 8197368 0 8197368 0% /media tmpfs 8197368 704 8196664 1% /var/lock /dev/sda3 214440128 14001928 189545196 7% /virtualbox /root# mount /home /root# df /home Filesystem 1K-blocks Used Available Use% Mounted on 132.195.108.147:/open/home/ 480719104 219096960 237202944 49% /home /root# df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 258027908 13833584 231087280 6% / devtmpfs 8188596 36 8188560 1% /dev tmpfs 8197368 188 8197180 1% /dev/shm tmpfs 8197368 704 8196664 1% /run /dev/sda2 258027908 13833584 231087280 6% / tmpfs 8197368 0 8197368 0% /sys/fs/cgroup tmpfs 8197368 704 8196664 1% /var/run tmpfs 8197368 0 8197368 0% /media tmpfs 8197368 704 8196664 1% /var/lock /dev/sda3 214440128 14001928 189545196 7% /virtualbox 132.195.108.147:/open/home/ 480719104 219096832 237203072 49% /home 132.195.108.147:/open/home/ 480719104 219096832 237203072 49% /home -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c11 --- Comment #11 from Michael Karbach <michael@karbach.org> 2012-10-18 07:46:19 UTC --- I have reproduced this on other OS-12.0/2 as well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c12 --- Comment #12 from Michael Karbach <michael@karbach.org> 2012-10-18 08:16:24 UTC --- May be the content of /etc/mtab is useful, here the lines of cat /etc/mtab starting with nfs-stuff: /root# cat /etc/mtab ... 132.195.108.147:/open/home/ /home nfs rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=132.195.108.147,mountvers=3,mountport=45798,mountproto=udp,local_lock=none,addr=132.195.108.147 0 0 auto.home /home autofs rw,relatime,fd=6,pgrp=1398,timeout=600,minproto=5,maxproto=5,indirect 0 0 auto.extern /extern autofs rw,relatime,fd=12,pgrp=1398,timeout=600,minproto=5,maxproto=5,indirect 0 0 none /var/lib/ntp/proc proc ro,nosuid,nodev,relatime 0 0 gvfs-fuse-daemon /run/user/root/gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=0,group_id=0 0 0 fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0 cat /etc/mtab after mount /home 132.195.108.147:/open/home/ /home nfs rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=132.195.108.147,mountvers=3,mountport=45798,mountproto=udp,local_lock=none,addr=132.195.108.147 0 0 auto.home /home autofs rw,relatime,fd=6,pgrp=1398,timeout=600,minproto=5,maxproto=5,indirect 0 0 auto.extern /extern autofs rw,relatime,fd=12,pgrp=1398,timeout=600,minproto=5,maxproto=5,indirect 0 0 none /var/lib/ntp/proc proc ro,nosuid,nodev,relatime 0 0 gvfs-fuse-daemon /run/user/root/gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=0,group_id=0 0 0 fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0 132.195.108.147:/open/home/ /home nfs rw,relatime,vers=3,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=132.195.108.147,mountvers=3,mountport=45798,mountproto=udp,local_lock=none,addr=132.195.108.147 0 0 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c13 --- Comment #13 from Neil Brown <nfbrown@suse.com> 2012-10-18 08:45:40 UTC --- Yes, that helps a lot, thanks. Your "/etc/auto.master" file contains "+auto.master". That means that it looks in the "auto.master" yp map for more info. What does ypcat auto.master show? I suspect it will show something about auto-mounting something at "/home". If you comment out that last line in "/etc/auto.master" and reboot, the problem should be gone. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c14 --- Comment #14 from Michael Karbach <michael@karbach.org> 2012-10-18 09:08:47 UTC --- Yes, it works! su-wptl84 /home/karbach: ypcat auto.master auto.home soft auto.extern soft And commenting in /etc/auto.master +auto.master -> # +auto.master and rebooting solved the problem. Thanks, Michael -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c15 --- Comment #15 from Michael Karbach <michael@karbach.org> 2012-10-18 09:23:06 UTC --- May be it is interesting for you. I have thought about, how this could be happen. I usually first install a new computer without any NIS/NFS-stuff and networking initially is done with networkmanager and dhcp. After complete installation I set up the whole network with fixed IPs,gw,dns,... and NIS/NFS-stuff. All done with YaST2. M -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=780132 https://bugzilla.novell.com/show_bug.cgi?id=780132#c16 Neil Brown <nfbrown@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|michael@karbach.org | Resolution| |INVALID --- Comment #16 from Neil Brown <nfbrown@suse.com> 2012-10-18 09:56:53 UTC --- I suspect the "auto.home soft" line means there is another map ypcat auto.home which configure /home ... not sure though. So the problem is caused by: - your nis server says something should be automounted on /home - your fstab says something else should be mounted on /home - your auto.master fails says that autofs should listen to nis. i.e. it is a configuration inconsistency. Probably if you configure NIS, you shouldn't explicitly list a filesystem to be mounted on /home. Maybe yast2 should prevent you from creating a "/home" mount if you enable "nis" and have "autofs" installed, but that is probably a bit too much to expect. So: resolving in "invalid" as there was no real bug, just a config error. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com