View previous topic :: View next topic |
Author |
Message |
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Sat Jan 01, 2011 4:55 pm Post subject: Exporting autofs mounted filesystems via nfs |
|
|
I have been trying to export autofs mounted filesystems via nfs for some time and I have had nothing but problems with this. Is there any secret to making this work reliably.
Basically my problems is when I go to mount on the client box it either never completes if I try a direct mount or fails if I use autofs to mount. However if the server had the filesystem mounted most of the time it will work.
Is there anyway around this. aufs?
I guess I could use samba but I would prefer a nfs solution. _________________ John
My gentoo overlay
Instructons for overlay |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21621
|
Posted: Sat Jan 01, 2011 6:15 pm Post subject: |
|
|
To be sure I understand this, you have three systems. The first system is an NFS server exporting some filesystem F. The second system is an NFS client that has mounted F (possibly via an automounter or possibly manually) and is also exporting the mountpoint where F appears. The third system is an NFS client attempting to mount the export from the second system, with the intent that reads and writes get relayed back to the first system. Is this all correct? If so, may I ask why not just have system #2 and system #3 both mount directly from system #1? |
|
Back to top |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Sat Jan 01, 2011 6:23 pm Post subject: |
|
|
No the first system is trying to nfs export local ext4 filesystems that are autofs mounted. A second client is having trouble mounting the nfs exports from the first system.
Basically I want my filesystems to automatically unmount when no local or remote client need to use them. _________________ John
My gentoo overlay
Instructons for overlay |
|
Back to top |
|
|
tipp98 Tux's lil' helper
Joined: 28 Jan 2007 Posts: 113
|
Posted: Fri Aug 02, 2013 6:46 pm Post subject: |
|
|
Did you ever find any success? I am in the same boat. I have a development box that I am trying to bind mount (via autofs) a built, bootable distro into a tftp served directory so that I can pxe boot the distro for testing.
I could add the bind mount to fstab, but I only work on it about every 6 months, so I don't need it mounted all the time, and more importantly, when I wipe out the output directory and it is recreated via the build system, a deleted folder is still being bind mounted instead of the fresh data. So, its there when I don't need it, but not when I do need it.
When I try to ls the autofs direct mount, all on the 1st system, I get
Code: | ls: cannot access /opt/tftpboot/mnt: No such file or directory |
and ls -l /opt/tftpboot
Code: | ????????? ? ? ? ? ? mnt |
There is nothing in dmesg or /var/log/messages about autofs failing to mount. |
|
Back to top |
|
|
drescherjm Advocate
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
Posted: Fri Aug 02, 2013 6:54 pm Post subject: |
|
|
At home I worked around this via exporting using samba instead of nfs. At work I believe I am using NFS for a shared distfiles but that has not had any problems in a long long time. I do not have any secret to share. Sorry..
Edit: distfiles is on btrfs now in which the root is always mounted but the subvolume that has the distfiles should not be mounted. _________________ John
My gentoo overlay
Instructons for overlay |
|
Back to top |
|
|
|