Reseau Linux NFS avec Mac

Bonjour à tous,

Voici une question que je viens de laisser sur un forum Mac (US):

Dear all,

This question is for NFS network pros :slight_smile:

We’ve setted up in our small visual effects company a linux server to which linux workstations are connected, via NIS.
I’ve added a Macintosh workstation to the network.

We have 2 Linux CentOS 5.4 servers:

* The Mac is connected to First server via NIS map (automount) which exports each user's "home" folders and a "prod" folder. This server works perfectly, I can access to my data from the Mac, save my profile settings, read documents on the mounted folder called "prod".

Server is srv1.domainname.com/prod and path is /net/prod

* The Mac is connected to the Second server via Macintosh NFS Tool (disk utilities) which exports "raid1" folder. This server can be mounted, BUT keeps disconnecting, every 5 minutes, or twice a day, randomly.

Server is data1.domainname.com/raid1 and path is /Volumes/raid1

We also tried NIS automount on raid1, with path /net/raid1, without getting more stability.

* We have no error messages on the servers. Linux server and Linux workstations DO work perfectly.
* I have no clear error message in my system.log. I've copy/pasted the message below.
* I just get a normal finder pop up saying "disconnected from data1".
* I can be disconnected every 5 minutes or randomly every 2 hours, or just twice a day.
* Sometime the finder reconnects automatically, sometimes the finder CAN NOT reconnect back even when I force entering the path in the "go to Folder" field.
* I can access to the hardrive through the Terminal and read files such as Video, but still not in the Finder when disconnected.
* Remember that the first NFS mounted drive /net/prod and my home account works perfectly en NEVER get disconnected, finder is OK with it.
* After a reboot, everything go back to normal until

I get disconnected again.

Does anyone have an idea on this? A solution?
Thank you very much,
Tony
(Mac Pro early 2008, OSX 10.6.3)

system.log infos:

May 31 16:40:52 Mac-Pro-de-XXXX KernelEventAgent39: tid 00000000 received event(s) VQ_NOTRESP (1)
May 31 16:40:52 Mac-Pro-de-XXXX KernelEventAgent39: tid 00000000 type ‘nfs’, mounted on ‘/Volumes/raid1’, from ‘data1.domainname.com:/raid1’, not responding
May 31 16:40:52 Mac-Pro-de-XXXX KernelEventAgent39: tid 00000000 found 1 filesystem(s) with problem(s)

May 31 16:41:10: — last message repeated 1 time —
May 31 16:41:10 Mac-Pro-de-XXXX KernelEventAgent39: tid 00000000 unmounting 1 filesystems
May 31 16:41:10 Mac-Pro-de-XXXX com.apple.autofsd50: automount: /net updated
May 31 16:41:10 Mac-Pro-de-XXXX com.apple.autofsd50: automount: /home updated
May 31 16:41:12 Mac-Pro-de-XXXX com.apple.autofsd50: automount: /Volumes/raid1 updated
May 31 16:41:12 Mac-Pro-de-XXXX com.apple.autofsd50: automount: no unmounts
May 31 16:41:20 Mac-Pro-de-XXXX /System/Library/CoreServices/coreservicesd62: FileID race detected: 26901 assigned for Temp File 6.tmp by external allocator is already used by iTunes Library
May 31 16:41:51: — last message repeated 1 time —
May 31 16:41:51 Mac-Pro-de-XXXX /System/Library/CoreServices/coreservicesd62: FileID race detected: 26901 assigned for Temp File 6.tmp by external allocator is already used by iTunes Library
May 31 16:42:19: — last message repeated 1 time —
May 31 16:42:19 Mac-Pro-de-XXXX loginwindow934: *** -NSCFArray objectAtIndex:: index (3) beyond bounds (3)
May 31 16:42:19 Mac-Pro-de-XXXX com.apple.loginwindow934: 2010-05-31 16:42:19.269 loginwindow934:107 *** -NSCFArray objectAtIndex:: index (3) beyond bounds (3)
May 31 16:42:19 Mac-Pro-de-XXXX com.apple.launchd.peruser.503239 (com.apple.Finder957): Exited: Terminated
May 31 16:42:19 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100681000 MOUNT REQUEST: Thu Jan 1 01:00:00 1970
May 31 16:42:19 Mac-Pro-de-XXXX com.apple.automountd1588]: t0x100681000 name=/Volumes/raid1[ map=-static opts= path=/Volumes/raid1 direct=1
May 31 16:42:24 Mac-Pro-de-XXXX /System/Library/CoreServices/coreservicesd62: FileID race detected: 26901 assigned for Temp File 6.tmp by external allocator is already used by iTunes Library
May 31 16:42:29: — last message repeated 1 time —
May 31 16:42:29 Mac-Pro-de-XXXX com.apple.automountd1588: mount_nfs: can’t access /raid1: Permission denied
May 31 16:42:29 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100681000 MOUNT REPLY : status=13, AUTOFS_DONE
May 31 16:42:29 Mac-Pro-de-XXXX automountd1588: mount of /Volumes/raid1 failed
May 31 16:42:29 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100704000 MOUNT REQUEST: Thu Jan 1 01:00:00 1970
May 31 16:42:29 Mac-Pro-de-XXXX com.apple.automountd1588]: t0x100704000 name=/Volumes/raid1[ map=-static opts= path=/Volumes/raid1 direct=1
May 31 16:42:39 Mac-Pro-de-XXXX com.apple.automountd1588: mount_nfs: can’t access /raid1: Permission denied
May 31 16:42:39 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100704000 MOUNT REPLY : status=13, AUTOFS_DONE
May 31 16:42:39 Mac-Pro-de-XXXX automountd1588: mount of /Volumes/raid1 failed
May 31 16:42:39 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100681000 MOUNT REQUEST: Thu Jan 1 01:00:00 1970
May 31 16:42:39 Mac-Pro-de-XXXX com.apple.automountd1588]: t0x100681000 name=/Volumes/raid1[ map=-static opts= path=/Volumes/raid1 direct=1
May 31 16:42:49 Mac-Pro-de-XXXX com.apple.automountd1588: mount_nfs: can’t access /raid1: Permission denied
May 31 16:42:49 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100681000 MOUNT REPLY : status=13, AUTOFS_DONE
May 31 16:42:49 Mac-Pro-de-XXXX automountd1588: mount of /Volumes/raid1 failed
May 31 16:42:49 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100704000 MOUNT REQUEST: Thu Jan 1 01:00:00 1970
May 31 16:42:49 Mac-Pro-de-XXXX com.apple.automountd1588]: t0x100704000 name=/Volumes/raid1[ map=-static opts= path=/Volumes/raid1 direct=1
May 31 16:42:59 Mac-Pro-de-XXXX com.apple.automountd1588: mount_nfs: can’t access /raid1: Permission denied
May 31 16:42:59 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100704000 MOUNT REPLY : status=13, AUTOFS_DONE
May 31 16:42:59 Mac-Pro-de-XXXX automountd1588: mount of /Volumes/raid1 failed
May 31 16:42:59 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100681000 MOUNT REQUEST: Thu Jan 1 01:00:00 1970
May 31 16:42:59 Mac-Pro-de-XXXX com.apple.automountd1588]: t0x100681000 name=/Volumes/raid1[ map=-static opts= path=/Volumes/raid1 direct=1
May 31 16:42:59 Mac-Pro-de-XXXX /System/Library/CoreServices/coreservicesd62: FileID race detected: 27094 assigned for sessionstore-4616.js by external allocator is already used by sessionstore.js
May 31 16:43:09: — last message repeated 4 times —
May 31 16:43:09 Mac-Pro-de-XXXX com.apple.automountd1588: mount_nfs: can’t access /raid1: Permission denied
May 31 16:43:09 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100681000 MOUNT REPLY : status=13, AUTOFS_DONE
May 31 16:43:09 Mac-Pro-de-XXXX automountd1588: mount of /Volumes/raid1 failed
May 31 16:43:09 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100704000 MOUNT REQUEST: Thu Jan 1 01:00:00 1970
May 31 16:43:09 Mac-Pro-de-XXXX com.apple.automountd1588]: t0x100704000 name=/Volumes/raid1[ map=-static opts= path=/Volumes/raid1 direct=1
May 31 16:43:19 Mac-Pro-de-XXXX com.apple.automountd1588: mount_nfs: can’t access /raid1: Permission denied
May 31 16:43:19 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100704000 MOUNT REPLY : status=13, AUTOFS_DONE
May 31 16:43:19 Mac-Pro-de-XXXX automountd1588: mount of /Volumes/raid1 failed
May 31 16:43:19 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100681000 MOUNT REQUEST: Thu Jan 1 01:00:00 1970
May 31 16:43:19 Mac-Pro-de-XXXX com.apple.automountd1588]: t0x100681000 name=/Volumes/raid1[ map=-static opts= path=/Volumes/raid1 direct=1
May 31 16:43:20 Mac-Pro-de-XXXX /System/Library/CoreServices/coreservicesd62: FileID race detected: 27095 assigned for sessionstore-4617.js by external allocator is already used by sessionstore.js
May 31 16:43:29: — last message repeated 4 times —
May 31 16:43:29 Mac-Pro-de-XXXX com.apple.automountd1588: mount_nfs: can’t access /raid1: Permission denied
May 31 16:43:29 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100681000 MOUNT REPLY : status=13, AUTOFS_DONE
May 31 16:43:29 Mac-Pro-de-XXXX automountd1588: mount of /Volumes/raid1 failed
May 31 16:43:29 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100704000 MOUNT REQUEST: Thu Jan 1 01:00:00 1970
May 31 16:43:29 Mac-Pro-de-XXXX com.apple.automountd1588]: t0x100704000 name=/Volumes/raid1[ map=-static opts= path=/Volumes/raid1 direct=1
May 31 16:43:35 Mac-Pro-de-XXXX /System/Library/CoreServices/coreservicesd62: FileID race detected: 27096 assigned for sessionstore-4618.js by external allocator is already used by sessionstore.js
May 31 16:43:39: — last message repeated 2 times —
May 31 16:43:39 Mac-Pro-de-XXXX com.apple.automountd1588: mount_nfs: can’t access /raid1: Permission denied
May 31 16:43:39 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100704000 MOUNT REPLY : status=13, AUTOFS_DONE
May 31 16:43:39 Mac-Pro-de-XXXX automountd1588: mount of /Volumes/raid1 failed
May 31 16:43:39 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100681000 MOUNT REQUEST: Thu Jan 1 01:00:00 1970
May 31 16:43:39 Mac-Pro-de-XXXX com.apple.automountd1588]: t0x100681000 name=/Volumes/raid1[ map=-static opts= path=/Volumes/raid1 direct=1
May 31 16:43:39 Mac-Pro-de-XXXX com.apple.launchd.peruser.503239 (com.apple.Finder1587): Exited: Terminated
May 31 16:43:49 Mac-Pro-de-XXXX com.apple.automountd1588: mount_nfs: can’t access /raid1: Permission denied
May 31 16:43:49 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100681000 MOUNT REPLY : status=13, AUTOFS_DONE
May 31 16:43:49 Mac-Pro-de-XXXX automountd1588: mount of /Volumes/raid1 failed
May 31 16:43:49 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100704000 MOUNT REQUEST: Thu Jan 1 01:00:00 1970
May 31 16:43:49 Mac-Pro-de-XXXX com.apple.automountd1588]: t0x100704000 name=/Volumes/raid1[ map=-static opts= path=/Volumes/raid1 direct=1
May 31 16:43:59 Mac-Pro-de-XXXX com.apple.automountd1588: mount_nfs: can’t access /raid1: Permission denied
May 31 16:43:59 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100704000 MOUNT REPLY : status=13, AUTOFS_DONE
May 31 16:43:59 Mac-Pro-de-XXXX automountd1588: mount of /Volumes/raid1 failed
May 31 16:43:59 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100681000 MOUNT REQUEST: Thu Jan 1 01:00:00 1970
May 31 16:43:59 Mac-Pro-de-XXXX com.apple.automountd1588]: t0x100681000 name=/Volumes/raid1[ map=-static opts= path=/Volumes/raid1 direct=1
May 31 16:44:09 Mac-Pro-de-XXXX com.apple.automountd1588: mount_nfs: can’t access /raid1: Permission denied
May 31 16:44:09 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100681000 MOUNT REPLY : status=13, AUTOFS_DONE
May 31 16:44:09 Mac-Pro-de-XXXX automountd1588: mount of /Volumes/raid1 failed

May 31 16:47:50 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100704000 MOUNT REQUEST: Thu Jan 1 01:00:00 1970
May 31 16:47:50 Mac-Pro-de-XXXX com.apple.automountd1588]: t0x100704000 name=/Volumes/raid1[ map=-static opts= path=/Volumes/raid1 direct=1
May 31 16:47:50 Mac-Pro-de-XXXX com.apple.automountd1588: t0x100704000 MOUNT REPLY : status=0, AUTOFS_DONE

Je dirai que c’est le client Mac qui merdois.

Les pbs connus avec ithune pour des machine ayant des disques de +40Go :
-Utilise le même UID/GIs pour les utilisateurs macs et NFS

  • desactive la generation de fichiers cachés par os X
  • options de mount client mac : ‘locallocks rsize=32768 wsize=32768 intr noatime’

Sinon passe à NFSv4, au moins le disconnect sera transparent.
Edité le 31/05/2010 à 18:30

Merci pour ta réponse!

C’est le cas sachant que nous nous identifions par NIS, je me trompe peut-etre?

Comment faire?

Je vais essayer d’ajouter ça.

As tu plus d’infos pour le forcer en NFS4? Ou l’installer sur Mac si ça n’est pas deja le cas?

Merci encore pour ta réactivité.
Antoine

J’ai beaucoup beaucoup d’infos sur NFSv4, mais sur linux, solaris et AIX. Je connais mal OS X, même si en tant qu’Unix il devrait avoir un client pour NFSv4.

Pour résumer, les avantage de la version 4 sont tels qu’ils ne faut utiliser NFSv3, que lorsque tu n’as pas d’autre choix (par exemple, une vieille machine qui tourne depuis 10ans et que personne n’ose toucher depuis la conversion du gourou qui l’administrait au pastafarisme radical).

Tout se configure depuis le serveur. Plus d’info ici :http://www.novell.com/communities/node/3787/configuring-nfsv4-server-and-client-suse-linux-enterprise-server-10

J’ai trouvé une info interessante ici :

I remember that NFS on OS X is a pain. Did you set it up using autofs? If so, the clients will disconnect after the share is unused for a while.

ask.metafilter.com…