Re: [Samba] Samba Serving NFS Mounted Directories

2010-01-25 Thread Jon Forrest

On 1/23/2010 5:19 AM, Nicholas Brealey wrote:

The Sun 7310 is a storage appliance. It is not running Solaris 10 but
runs an OS based on Open Solaris with CIFS and Windows style
authentication integrated in the kernel.


I lied a little. I do know how to login to this box, but
that's only because a Sun support person told me how.
This was necessary to fix a non-Samba related problem.
It sure looks like Solaris to me. In any case,
I had to promise I wouldn't make any changes
that weren't authorized by Sun. I intend on keeping
this promise.


Installing Samba is not an option.


I agree 100%.


You really should be using the integrated CIFs server.
It is probably simpler to set up than Samba but is probably not as
flexible (has fewer configuration options).


I'm not sure how simple it is to setup. For example,
I couldn't even figure out what share name it
generates. Although the performance and price of the 7310
are excellent, its documentation is not.


There is a simulator you can play with to learn how to set it up.


I know. I used it when I was deciding whether to buy the 7310.

 The manual is available on the Internet or from the storage device.

The manual is just the help system on the device, as you say.
It says very little about how to set up CIFS shares.


There is a forum where these devices are discussed. You almost certainly
got a support contract when you bough the device.


I didn't know about a support forum. I'll check into that.
I do have a support contract but if it's necessary to
call support for something as simple as this, then somebody
has blown it - either Sun or me.


If you cannot use its CIFS server (ie if you are using a NT 4 style
domain or a Samba PDC) perhaps using iSCSI to the Linux box and sharing
with Samba is the next best option.


None of these apply.

Besides, I'd still like to understand the fundamental issue,
which is why Samba behaves differently when it server NFS
mounts than it does when it serves local files.


http://forums.sun.com/forum.jspa?forumID=831


I'll check there. Thanks.

Cordially,
--
Jon Forrest
Research Computing Support
College of Chemistry
173 Tan Hall
University of California Berkeley
Berkeley, CA
94720-1460
510-643-1032
jlforr...@berkeley.edu

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Serving NFS Mounted Directories

2010-01-25 Thread Jon Forrest

On 1/23/2010 12:48 AM, Volker Lendecke wrote:


You need to get over that. Running Samba on NFS imports is a
really bad idea. At least every month people report strange
lockups, timeouts and other weird things on this list that
can be attributed to NFS imports.


I'm not doubting that what you say is
true, since I've seen it myself, but
whenever possible I try to get deeper
understanding of what causes these
strange problems. That's one
of the reasons why I posted my
question.

So, I'll restate the question - what is it
about NFS exports that gives Samba trouble
that doesn't occur when serving local files?

Cordially,
--
Jon Forrest
Research Computing Support
College of Chemistry
173 Tan Hall
University of California Berkeley
Berkeley, CA
94720-1460
510-643-1032
jlforr...@berkeley.edu

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Serving NFS Mounted Directories

2010-01-25 Thread Jon Forrest

On 1/22/2010 5:00 PM, Ray Van Dolson wrote:


First of all, you really don't want to re-export NFS mounts via Samba.


I can't argue with this since I've felt the pain.
However, I still can't say that I understand its fundamental
cause. Here's my current understanding.

Assuming that network bandwidth isn't an issue,
which it isn't in my case, then, the lockups, timeouts, and
other weird things that occur must be because related to
how Samba emulates Windows' locking behavior on top of NFS mounts,
which have their own locking semantics.

Although I'd be the first to admit that what
I'm doing isn't very common, and probably
doesn't deserve much, if any, attention from the Samba
developers, I think that this should work - at least
it should work better than it currently does.


Secondly, if you absolutely must do it, I recommend the following
settings:



[global]
 # your other options here...
 oplocks = No
 level2 oplocks = No

On certain shares, you may want to set:

 posix locking = No


These settings seem to do the trick.

I sincerely appreciate the comments that I received on this
issue. I hope bring this up helps other people facing this
problem, if any.

Cordially,
--
Jon Forrest
Research Computing Support
College of Chemistry
173 Tan Hall
University of California Berkeley
Berkeley, CA
94720-1460
510-643-1032
jlforr...@berkeley.edu

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Serving NFS Mounted Directories

2010-01-25 Thread Helmut Hullen
Hallo, Jon,

Du meintest am 25.01.10:

 First of all, you really don't want to re-export NFS mounts via
 Samba.

 I can't argue with this since I've felt the pain.

I have tried it (NFS mount as share). Sometimes it run, sometimes it  
creeped, sometimes it was dead.
All oplocks were set as recommended - wasn't enough to cure the system.

Mounting per cifs: no more problems.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Serving NFS Mounted Directories

2010-01-24 Thread Volker Lendecke
On Sat, Jan 23, 2010 at 10:33:36AM -0800, Jon Forrest wrote:
 So, I'll restate the question - what is it
 about NFS exports that gives Samba trouble
 that doesn't occur when serving local files?

Mostly it is locking problems. Some daemons not started,
daemons not 100% working right, etc. Then it is also a big
performance drain. Sending data over the net twice without
proper caching is really subobptimal. Then, potentially not
all features fully supported (EAs, ACLs, etc). This is just
a pain in the neck.

And, for us here on this list it is a pain because all those
problems show up for the Samba clients, so by definition
those bugs appear to be Samba bugs while they are NFS
problems.

Volker
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Serving NFS Mounted Directories

2010-01-23 Thread Volker Lendecke
On Fri, Jan 22, 2010 at 04:49:33PM -0800, Jon Forrest wrote:
 I have a Sun 7310 storage server. This is
 running Solaris 10 but it's self-contained
 and I can't login to it or run Samba on it.
 I manage it with a web interface.

You need to get over that. Running Samba on NFS imports is a
really bad idea. At least every month people report strange
lockups, timeouts and other weird things on this list that
can be attributed to NFS imports. You should really contact
SUN for information how to log into that box and install
Samba.

Volker


signature.asc
Description: Digital signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Samba Serving NFS Mounted Directories

2010-01-23 Thread Nicholas Brealey
The Sun 7310 is a storage appliance. It is not running Solaris 10 but 
runs an OS based on Open Solaris with CIFS and Windows style 
authentication integrated in the kernel. Installing Samba is not an option.


You really should be using the integrated CIFs server.
It is probably simpler to set up than Samba but is probably not as 
flexible (has fewer configuration options).


There is a simulator you can play with to learn how to set it up. Sun 
offer courses on setting it up. Sun offer a service to set it up for 
you. The manual is available on the Internet or from the storage device. 
 There is a forum where these devices are discussed. You almost 
certainly got a support contract when you bough the device.


If you cannot use its CIFS server (ie if you are using a NT 4 style 
domain or a Samba PDC) perhaps using iSCSI to the Linux box and sharing 
with Samba is the next best option.



See:


http://wikis.sun.com/display/FishWorks/Fishworks
http://forums.sun.com/forum.jspa?forumID=831



Nick



Jon Forrest wrote:

I have a Sun 7310 storage server. This is
running Solaris 10 but it's self-contained
and I can't login to it or run Samba on it.
I manage it with a web interface.

I have a CentOS 5.3 machine that mounts
a bunch of file systems via NFS from the
Sun server. This works fine. I installed
Samba 3.4.5 on the CentOS machine and
configured it to share some of the directories
that are actually NFS mounts from the Sun
server. I'm able to map these directories
from both Windows XP and Windows 7.

I'm seeing several problems:

1) Accessing the mapped directories from
Windows when running Microsoft Office apps is
extremely slow. I don't have any exact numbers
but let's say the speed is unusable. Ironically,
other programs, such as 'vim' and 'notepad'
don't have this speed problem when accessing
the same shares.

2) Again, using Microsoft Office apps, Windows XP
machines see files as read-only. Windows 7 works
fine on the same files.

The Sun has a non-Samba CIFS implementation
but it's non-intuitive to set up so I haven't
tried it. I'm wondering if what I describe
should work.

Here's the smb.conf configuration for the share:

[bgroup]

valid users = bgroup
path = /home/bgroup
public = no
writeable = yes
browseable = no
create mask = 012
create mode = 0660
directory mode = 0770

Any comments or suggestions?

Cordially,



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba Serving NFS Mounted Directories

2010-01-22 Thread Jon Forrest

I have a Sun 7310 storage server. This is
running Solaris 10 but it's self-contained
and I can't login to it or run Samba on it.
I manage it with a web interface.

I have a CentOS 5.3 machine that mounts
a bunch of file systems via NFS from the
Sun server. This works fine. I installed
Samba 3.4.5 on the CentOS machine and
configured it to share some of the directories
that are actually NFS mounts from the Sun
server. I'm able to map these directories
from both Windows XP and Windows 7.

I'm seeing several problems:

1) Accessing the mapped directories from
Windows when running Microsoft Office apps is
extremely slow. I don't have any exact numbers
but let's say the speed is unusable. Ironically,
other programs, such as 'vim' and 'notepad'
don't have this speed problem when accessing
the same shares.

2) Again, using Microsoft Office apps, Windows XP
machines see files as read-only. Windows 7 works
fine on the same files.

The Sun has a non-Samba CIFS implementation
but it's non-intuitive to set up so I haven't
tried it. I'm wondering if what I describe
should work.

Here's the smb.conf configuration for the share:

[bgroup]

valid users = bgroup
path = /home/bgroup
public = no
writeable = yes
browseable = no
create mask = 012
create mode = 0660
directory mode = 0770

Any comments or suggestions?

Cordially,

--
Jon Forrest
Research Computing Support
College of Chemistry
173 Tan Hall
University of California Berkeley
Berkeley, CA
94720-1460
510-643-1032
jlforr...@berkeley.edu

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Samba Serving NFS Mounted Directories

2010-01-22 Thread Ray Van Dolson
On Fri, Jan 22, 2010 at 04:49:33PM -0800, Jon Forrest wrote:
 I have a Sun 7310 storage server. This is
 running Solaris 10 but it's self-contained
 and I can't login to it or run Samba on it.
 I manage it with a web interface.
 
 I have a CentOS 5.3 machine that mounts
 a bunch of file systems via NFS from the
 Sun server. This works fine. I installed
 Samba 3.4.5 on the CentOS machine and
 configured it to share some of the directories
 that are actually NFS mounts from the Sun
 server. I'm able to map these directories
 from both Windows XP and Windows 7.
 
 I'm seeing several problems:
 
 1) Accessing the mapped directories from
 Windows when running Microsoft Office apps is
 extremely slow. I don't have any exact numbers
 but let's say the speed is unusable. Ironically,
 other programs, such as 'vim' and 'notepad'
 don't have this speed problem when accessing
 the same shares.
 
 2) Again, using Microsoft Office apps, Windows XP
 machines see files as read-only. Windows 7 works
 fine on the same files.
 
 The Sun has a non-Samba CIFS implementation
 but it's non-intuitive to set up so I haven't
 tried it. I'm wondering if what I describe
 should work.
 
 Here's the smb.conf configuration for the share:
 
 [bgroup]
 
  valid users = bgroup
  path = /home/bgroup
  public = no
  writeable = yes
  browseable = no
  create mask = 012
  create mode = 0660
  directory mode = 0770
 
 Any comments or suggestions?
 
 Cordially,

First of all, you really don't want to re-export NFS mounts via Samba.

Secondly, if you absolutely must do it, I recommend the following
settings:

[global]
# your other options here...
oplocks = No
level2 oplocks = No

On certain shares, you may want to set:

posix locking = No

Ray
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba