[Samba] Samba share of a NFS mount
I've got a NFS directory that's shared among my RHEL5 servers that I'd like to give access to a couple of Win2K servers, also. The easiest way to do so is to NFS mount the directory on my Samba server, and export the directory as a Samba share. It works. Kind of. But it redefines 'slow'. Copying the file from a normal Samba share takes under 10 seconds on a slow network: [c:\program files\resource kit]timethis.exe copy y:\testfile \tmp TimeThis : Command Line : copy y:\testfile \tmp TimeThis :Start Time : Mon May 04 09:24:30 2009 Y:\testfile = C:\tmp\testfile 1 file copied TimeThis : Command Line : copy y:\testfile \tmp TimeThis :Start Time : Mon May 04 09:24:30 2009 TimeThis : End Time : Mon May 04 09:24:39 2009 TimeThis : Elapsed Time : 00:00:09.123 But the same file from a NFS share exported via Samba takes five times as long: [c:\program files\resource kit]timethis.exe copy x:\tmp\testfile \tmp TimeThis : Command Line : copy x:\tmp\testfile \tmp TimeThis :Start Time : Mon May 04 09:22:07 2009 X:\tmp\testfile = C:\tmp\testfile 1 file copied TimeThis : Command Line : copy x:\tmp\testfile \tmp TimeThis :Start Time : Mon May 04 09:22:07 2009 TimeThis : End Time : Mon May 04 09:22:51 2009 TimeThis : Elapsed Time : 00:00:44.295 The NFS export looks like so: /var/ftp/pub192.168.0.0/255.255.0.0(rw,no_root_squash,async) and the smb.conf entry like this: [nfs] comment = tolstoy nfs directory path = /mnt/rhel read only = no browseable = yes public = yes create mask = 0666 Pointers in the right direction - or where to start looking - greatly appreciated. Thanks... -- Tim Boyer Denman Tire Corporation -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Samba share of a NFS mount
Tim Boyer wrote: The easiest way to do so is to NFS mount the directory on my Samba server, and export the directory as a Samba share. It's been a while and I don't remember the specifics, but there are problems relating to locking when you do this. From memory it is OK as long as the samba server is the only NFS client accessing that share, but as soon as you have an NFS client accessing files that the samba clients have open things start to get messy. The proper way to do it is to run a samba server on the NFS server itself. *Michael Heydon - IT Administrator * micha...@jaswin.com.au mailto:micha...@jaswin.com.au -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Samba share over a NFS mount (tuning)
Hi, I have a server that run OpenSuse 10.3, this server run VMware Server and host an OpenSuse 10.3 virtual machine witch is a Samba file server for my windows clients. The goal behind having a OpenSuse hosting an OpenSuse virtual machine is to separate the configurations from the data so I can easily change the configurations without affecting the data. The host keep all the data and share it with the virtual machine with NFS v3, so the virtual machine mount the NFS share and then a use Samba 3.0.26a to share the NFS mounted folder for my windows clients. The network I use between my host and my virtual machine is an Host-only virtual network. My virtual machine use a bridged network over a dedicated 1Gb Ethernet card to communicate with the windows clients. I reuse a smb.conf from the previous Samba (3.0.25b) file server witch was functioning with absolutely no problems. The problem I have with my new Samba file server is that my Vista client have a 20 to 60 second delay when they open a MS Office 2007 file. They have the same delay with MS Office 2003 and all the Office's file the Vista clients open with MS Office 2003 are read only. I think it is a file lock issue because went I disable the file lock at the NFS mount or in Samba smb.conf file. In my case, I just cannot disable file lock in my production environment. Thanks for your help, Mathieu Beaudoin Responsable des T.I. CVT Corp Technologies de vitesse variable Variable Speed Technologies -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba