You are not logged in.

#1 2013-03-08 21:15:05

leong
Member
Registered: 2013-03-08
Posts: 22

nfs and samba share access

Hi!

Summary: the same remote directory is mounted as a nfs and a smb share. Some of its subdirectories can be accessed locally as cifs, but not as nfs

Settings
2 computers inside the same LAN. On 192.168.0.18, my usb HD is mounted on /media/USB_HD. The directory /media/USB_HD/Music is also mounted on /srv/nfs4/music

[prompt 192.168.0.18]$ more /etc/fstab
UUID=48DF-7B0A		/media/USB_HD	vfat	auto,noexec,rw,nouser,umask=000	0	0
/media/USB_HD/Music	/srv/nfs4/music 	none	bind	0	0

[prompt 192.168.0.18]$ mount
/dev/sda1 on /media/USB_HD type vfat (rw,noexec,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/sda1 on /srv/nfs4/music type vfat (rw,noexec,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro)

Everything in /media/USB_HD and /srv/nfs4/music if OK and has 777 permission and is owned by root:root
/srv/nfs4/music is declared as a nfs share

[prompt 192.168.0.18]$ more /etc/exports
/srv/nfs4/ 192.168.0.1/24(rw,no_subtree_check)
/srv/nfs4/music 192.168.0.1/24(rw,no_subtree_check,nohide)

Finally, /media/USB_HD/Music is declared as a samba share

[prompt 192.168.0.18]$ tail /etc/samba/smb.conf
.....
[music]
path = /media/USB_HD/Music
public = yes
writable = yes

Now on 192.168.0.14, I mount the remote 192.168.0.18 nfs and cifs :

[prompt 192.168.0.14]$ sudo mount -t nfs4 192.168.0.18:/srv/nfs4/music /some/path/music_nfs -o noauto,rw,noatime,async,rsize=8192,wsize=8192,timeo=14,intr,_netdev
[prompt 192.168.0.14]$ sudo mount -t cifs //192.168.0.18/music /some/path/music_smb  -o username=my_user_name,uid=1000

Problem:  the same remote directory is mounted as a nfs and a smb share. but some (not all) of its subdirectories can be accessed as cifs, but not as nfs

[prompt 192.168.0.14]$ ls -l /some/path/music_nfs
ls: Celtic: No such file or directory
.....
drwxrwxrwx 11 root root     16384 10 janv.  2010 Celtic
.....

whereas

[prompt 192.168.0.14]$ ls -l /some/path/music_smb |more
..... 
drwxrwxrwx 11 tootsie root          0 10 janv.  2010 Celtic
.....

And

[prompt 192.168.0.14]$ cd /some/path/music_nfs/Celtic && pwd
bash: /some/path/music_nfs/Celtic: No such file or directory

whereas

 
[prompt 192.168.0.14]$ cd /some/path/music_smb/Celtic && pwd
/some/path/music_nfs/Celtic

I cant figure out what's wrong. Any hint ?

Leon

Offline

#2 2013-03-08 23:13:47

nomorewindows
Member
Registered: 2010-04-03
Posts: 3,541

Re: nfs and samba share access

It's root/root on nfs and tootsie(?)/root on smbfs.  Maybe you want to test using nfs version 3?

Last edited by nomorewindows (2013-03-08 23:15:48)


I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.

Offline

#3 2013-03-09 15:39:11

leong
Member
Registered: 2013-03-08
Posts: 22

Re: nfs and samba share access

Thank you for replying

Before submitting my 1st post I reproduced the anomaly at each of my attempts. This morning I just went into a last attempt and... the problematic subdirectories can now be accessed. Nothing changed: same actions, no updates, same config!!!

Leon

Offline

#4 2013-03-09 15:57:01

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,677

Re: nfs and samba share access

Any chance you rebooted?  If you had updated the kernel without rebooting, perhaps there was a needed kernel module that was not being found.  Anyway, Welcome to Arch Linux and I am glad it is working for you.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB