Summary: | sys-kernel/gentoo-sources-3.18.7: Content of nested nfs3 mount vanishes on client | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Joerg Schaible <joerg.schaible> |
Component: | [OLD] Core system | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | bircoph |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Joerg Schaible
2015-03-05 20:45:18 UTC
I've switched server and client to nfs4 and that works. (In reply to Joerg Schaible from comment #0) > My server "bobbel" provides two nested exports with nfs3. Please provide the /etc/exports file from "bollel" server. > ================== %< =================== > bobbel:/var/share/storage /mnt/san nfs nfsvers=3,bg,hard 0 0 > bobbel:/var/share/storage/Video/Film /mnt/san/Video/Film nfs nfsvers=3,bg,hard 0 0 > ================== %< =================== In this configuration you *must* use "nohide" option for nested shares, Video/Film in your case. Another solution is export /var/share/storage with "crossmnt" option, this way all file systems mounted inside this directory tree will be visible. Please consult man exports for details. > Directly after login How do you login? ssh, virtual terminal, some de/wm? > I can sometimes list the directory content of > "/mnt/san/Video/Film", but normally the directory is empty or is immediately > empty as soon as I try to access something in it. Actually I access now the > (empty) directory of the disk's mount point on the server. Looks like some automount is enabled. Disable such features. Try directly from console without using X-server. The nfs3 setup on the server: ================== %< ================== bobbel$ cat /etc/exports /var/db/portage 192.168.13.0/255.255.255.0(sync,no_root_squash,rw,subtree_check) /var/share/storage 192.168.13.0/255.255.255.0(sync,no_root_squash,rw,subtree_check) /var/share/storage/Video/Film 192.168.13.0/255.255.255.0(sync,no_root_squash,rw,subtree_check) /var/spool/cups-pdf 192.168.13.0/255.255.255.0(sync,no_root_squash,rw,subtree_check) ================== %< ================== When I login in on the client using the console, the content of the nested mount point sometimes appear, but vanish later on access. There is no auto-mount involved. The exports are mounted on the client in fstab: ================== %< ================== bobbel:/var/db/portage /mnt/portage nfs nfsvers=3,bg,hard 0 0 bobbel:/var/share/storage /mnt/san nfs nfsvers=3,bg,hard 0 0 bobbel:/var/share/storage/Video/Film /mnt/san/Video/Film nfs nfsvers=3,bg,hard 0 0 bobbel:/var/spool/cups-pdf /mnt/cups-pdf nfs nfsvers=3,bg,hard 0 0 ================== %< ================== As said, this configuration worked for years and stopped with gentoo-sources-3.18.7. Booting with an older kernel is enough to get it working again. BTW: For the (working) nfs4 setup I had explicitly to remove the nohide option to make the nested access work. I'll have a look at the crossmnt option though - it would be fine for the client to mount /storage alone to the nested stuff also. |