View previous topic :: View next topic |
Author |
Message |
Minox Apprentice
Joined: 12 Apr 2004 Posts: 188 Location: Germany / Munich
|
Posted: Tue Apr 13, 2004 4:28 pm Post subject: Can't access mounts in nfs export |
|
|
Hello folks,
i'm running gentoo for 2 days now and have some trouble with NFS. Before i've used Debian Sarge with following fstab:
# /etc/fstab: static file system information.
...(that part works)...
server.intern:/home/samba /mnt/intern nfs rsize=8192,wsize=8192,timeo=14,intr
server.intern:/media /mnt/media nfs rsize=8192,wsize=8192,timeo=14,intr
That config i'm using now on my new gentoo system.
On the Debian Woody server, where the nfsd is running on, i'm using that exports:
# /etc/exports: the access control list for filesystems which may be exported
/media/lw1 pc-2.intern(rw,nohide,sync)
/media/lw2 pc-2.intern(rw,nohide,sync)
/media/lw3 pc-2.intern(rw,nohide,sync)
/media/lw4 pc-2.intern(rw,nohide,sync)
The devices lw1-4 are ext3.
When I try to mount /media on the client i got no error or else. I can 'cd' to /media/lw1 and so on, but more than the first level directories i cannot see. (The real fascinating about is, in /media/lw4/users exists a directory that does not exist on the debian server.)
Any ideas?
I can't and don't want to mount theme separately (that works fine).
Thanks for your help! |
|
Back to top |
|
|
Spooky Ghost Apprentice
Joined: 19 Apr 2002 Posts: 210 Location: Bristol, United Kingdom
|
Posted: Tue Apr 13, 2004 4:35 pm Post subject: |
|
|
What are the permissions on the files/directories under /media/lw1/? Are you trying as the root user on pc-2 and the use is being squashed? |
|
Back to top |
|
|
Minox Apprentice
Joined: 12 Apr 2004 Posts: 188 Location: Germany / Munich
|
Posted: Tue Apr 13, 2004 5:07 pm Post subject: |
|
|
No i used the user minox with uid 1000 in the group intern with gid 104.
On server both uid and gid are the same for the user minox.intern.
minox.intern is also the owner of the directories/mounts in /media.
I can only mention it again: Mounting them separately works fine. But i don't want it and it has been working under debian woody with nfs-utils 1.0.2.
(Under debian i even have no permission to 'cd' that mounts as root. That works on gentoo.) |
|
Back to top |
|
|
Minox Apprentice
Joined: 12 Apr 2004 Posts: 188 Location: Germany / Munich
|
Posted: Thu Apr 15, 2004 7:49 am Post subject: |
|
|
Does really noone have an idea? Please help me |
|
Back to top |
|
|
primero.gentoo Guru
Joined: 23 Dec 2003 Posts: 402
|
Posted: Thu Apr 15, 2004 7:57 am Post subject: |
|
|
I've thinks everything is normal ... let me explain my experience (but i'm not so skilled with nfs ... )
I've got a situation similar to yours. On server i've a mount point for 4 Logical Volume under /mnt/share/lv1-4. If i export them all like you and i try to mount the /mnt/share directory on NFS client i can see only first level of Tree and nothing more .
I think this is normal because NFS works about single Filesystem and can't AFAIK export more than one FS with only 1 mount on the client, the only way i found to solve this problem is to mount exactly the FS i export in a relation of 1:1.
What is amazing for me is that you say that with you Debian server it works !!! Really?? this is incredible for me... I really hope you'll find a solution to do this in the first way and ... let me know about it
Bye Man _________________ "Linux, the choice of a GNU generation"
==Micro$oft - just say NO==
(L#USER 353039) |
|
Back to top |
|
|
KenTI n00b
Joined: 28 Jan 2004 Posts: 53 Location: Italy
|
Posted: Sat Apr 24, 2004 11:02 pm Post subject: |
|
|
i have a very similar problem, and i have been searching on the forum and with google with no result..
i have two computers, a desktop and a notebook, and i want to share the whole root directory between them with nfs
i compiled NFS filesystem support in the kernel
this is my exports file
Code: |
# /etc/exports: NFS file systems being exported. See exports(5).
/ 1.254.198.199(rw,sync,no_root_squash,nohide) |
this is the nfs part of my fstab file on both machines
Code: |
1.254.198.198:/ /mnt/shared nfs noauto 0 0
|
i have portmap in my boot runlevel and nfs in my default runlevel
when i mount the shared sirectory it all goes fine, except that i can't browse more then 2 levels..
for example, i can see /mnt/download/ on the desktop from the notebook, but i can't see for all the other files and directories as /mnt/download/soulseek/..
and if i export the single directories, the 2 levels browsing limit still apply, for example if i mount /usr/portage/ from the desktop on the notebook i can just see as far as /usr/portage/sys-apps/ but not in /usr/portage/sys-apps/hotplug for example
is there a solution to this problem using NFS or should i try something as coda or intermezzo?
my objective is to be able to browse remotely the whole hard disk of the other computer from the same mountpoint |
|
Back to top |
|
|
bravecobra Tux's lil' helper
Joined: 26 Dec 2002 Posts: 130 Location: Planet Earth (sometimes)
|
Posted: Fri May 07, 2004 4:15 am Post subject: |
|
|
I had the same problem here. It worked perfect on one machine but the laptop had the same problem you did, Minox.
I added 'rsize=1024,wsize=1024' to the fstab entries and that solved my problem. Hope it does the same for you. _________________ Brave Cobra
http://www.bravecobra.com |
|
Back to top |
|
|
Minox Apprentice
Joined: 12 Apr 2004 Posts: 188 Location: Germany / Munich
|
Posted: Fri Jun 04, 2004 8:36 am Post subject: |
|
|
Thanks for your help, but unfortunately it doesn't work. It is the same problem as before. _________________ proud to be 100% M$ free |
|
Back to top |
|
|
|