Re: [Samba] Samba shares freezing

2010-01-21 Thread CJ Keist

Jermey,
   Will work on getting a trace back with gdb.  I'm now seeing in the 
log files for clients this error:


[2010/01/21 09:19:01,  0] smbd/oplock.c:317(oplock_timeout_handler)
  Oplock break failed for file mozilla/thunderbird/pluginreg.dat -- 
replying anyway


What's strange is this error only occurs with our terminal servers, 
where we have multiple users logged in.  All other single clients do not 
show this error at all?  And it is with our terminal server users that 
are seeing the most problems with the shares freezing up or acting very 
slow.






Jeremy Allison wrote:

On Wed, Jan 20, 2010 at 03:53:06PM -0700, CJ Keist wrote:

Jermey,
Thank you for your response.  I don't have gdb installed but
here is truss of my share until it froze.


It's blocked in an fcntl lock call on file descriptor 13.
Unfortunately your truss trace doesn't show the open of
fd 13, so I don't know what file this is. As it's an
wait lock I'm guessing this is a tdb file.

Install gdb next, and get the backtrace for more details.

Jeremy.


--
C. J. Keist Email: cj.ke...@colostate.edu
UNIX/Network ManagerPhone: 970-491-0630
Engineering Network ServicesFax:   970-491-5569
College of Engineering, CSU
Ft. Collins, CO 80523-1301

All I want is a chance to prove 'Money can't buy happiness'
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba shares freezing

2010-01-20 Thread CJ Keist

All,
   Looking for some help here.  Not finding anything on the net that 
looks the same as what I'm seeing.  Running Solaris 10 Sparc, on a 
Sunfire 5220, 16Gb of RAM.  Samba version 3.4.5 and using ZFS file 
systems with user quotas.


All cifs clients shares to this server freeze after about 10 to 15 
minutes of connectivity.  Only fix is to restart samba.  I'm not getting 
any errors from samba or on the /var/adm/messages or /var/log/syslog 
files.  Totally stumped here.  This freezing also happened with 3.4.0.


Compile of samba
./configure --with-quotas --disable-shared-libs

Config:

# Samba config file created using SWAT
# from UNKNOWN (���)
# Date: 2010/01/20 14:18:59

[global]
workgroup = ENGR_DOM
server string = Samba Server
security = DOMAIN
password level = 8
lanman auth = Yes
client NTLMv2 auth = Yes
map untrusted to domain = Yes
log level = 1
syslog = 2
log file = /var/log/samba/logs/log.%m
max open files = 1
socket options = TCP_NODELAY IPTOS_LOWDELAY
load printers = No
preferred master = Auto
domain master = No
dns proxy = No
wins server = xxx.xx.xxx.xxx
kernel oplocks = No
lock spin time = 3
remote announce = xxx.xx.xxx.xxx
acl check permissions = No
acl group control = Yes
oplocks = No
level2 oplocks = No
strict locking = No

[top]
comment = Top of the Tree
path = /top
read only = No
create mask = 0755
directory security mask = 0755

[projects]
comment = Project space
path = /XKA1/projects
read only = No
create mask = 0775
directory mask = 02771
inherit permissions = Yes
inherit acls = Yes

[profiles]
comment = Windows Roaming Profiles
path = /XKA1/profiles
valid users = +admin, +ens-students, +ACother
read only = No
profile acls = Yes

[ens$]
path = /
valid users = name, name2, name3
force user = root
read only = No
acl map full control = No

[dean]
comment = Dean Group
path = /XKA2/admin/Dean
valid users = +Dean
force group = Dean
read only = No
create mask = 0770
directory mask = 02770
inherit acls = Yes

[ens]
comment = ENS Groups
path = /XKA2/admin/ENS
valid users = +admin
force group = admin
read only = No
create mask = 0770
directory mask = 02770
inherit acls = Yes

[ebo]
comment = EBO
path = /XKA2/admin/EBO
valid users = +ebo, +ebostdnt
force group = ebo
read only = No
create mask = 0770
directory mask = 02770
inherit acls = Yes

[adr]
comment = Associate Dean for Researc
path = /XKA2/admin/ResearchDean
valid users = +adr
force group = adr
read only = No
create mask = 0770
directory mask = 02770
inherit acls = Yes

[adu]
comment = Associate Dean for UnderGraduates
path = /XKA2/admin/AcadAffairs
valid users = +adu
force group = adu
read only = No
create mask = 0770
directory mask = 02770
inherit acls = Yes

[wmep]
comment = WomenMinority in Engineering Programs
path = /XKA2/admin/WMEP
valid users = +wmep
force group = wmep
read only = No
create mask = 0770
directory mask = 02770
inherit acls = Yes

[development]
comment = Engineering Development
path = /XKA2/admin/Development
valid users = +Devel
force group = Devel
read only = No
create mask = 0770
directory mask = 02770
inherit acls = Yes

[ce]
comment = Civil Engineering
path = /XKA2/academic/CE
valid users = +CEgroup
force group = CEgroup
read only = No
create mask = 0770
directory mask = 02770
inherit acls = Yes

[cira]
comment = CIRA
path = /XKA2/academic/CIRA
valid users = +cira
force group = cira
read only = No
create mask = 0770
directory mask = 02770
inherit acls = Yes

[atmos]
comment = ATMOS
path = /XKA2/academic/Atmos
valid users = +Atmosfac
force group = Atmosfac
read only = No
create mask = 0770
directory mask = 02770
inherit acls = Yes

[ece]
comment = Electrical and Computer Engineering
path = /XKA2/academic/ECE
valid users = +ECEgroup
force group = ECEgroup
read only = No
create mask = 0770
directory mask = 02770
inherit acls = Yes

[me]
comment = Mechanical Engineering
path = /XKA2/academic/ME
valid users = +MEgroup
   

Re: [Samba] Samba shares freezing

2010-01-20 Thread Jeremy Allison
On Wed, Jan 20, 2010 at 02:23:51PM -0700, CJ Keist wrote:
 All,
Looking for some help here.  Not finding anything on the net that
 looks the same as what I'm seeing.  Running Solaris 10 Sparc, on a
 Sunfire 5220, 16Gb of RAM.  Samba version 3.4.5 and using ZFS file
 systems with user quotas.
 
 All cifs clients shares to this server freeze after about 10 to 15
 minutes of connectivity.  Only fix is to restart samba.  I'm not
 getting any errors from samba or on the /var/adm/messages or
 /var/log/syslog files.  Totally stumped here.  This freezing also
 happened with 3.4.0.

Can you attach to a frozen smbd with truss to
see where it might be stuck. Or alternatively
ensure you are built with symbols, attach to
the frozen process with gdb and get a backtrace
using the bt command.

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


Re: [Samba] Samba shares freezing

2010-01-20 Thread Jack Downes
Hey, if you are using Solaris 10, not openSol, you might want to look at
this page.  We are using it here at a hospital with some 2k users
(probably a lot less than you, but...) and it's working very well. 

http://www.nineproductions.com/technology/1-sun-solaris/3-solaris-10-samba-zfs-configuration.html

One of the things we had major problems with was not having oplocks.  As
I recall, they are pretty useful.  we have kernel oplocks=yes,
oplocks=yes, but use a fair amount of vetos.  This serves as a
fileserver for everyone's My Documents folder.  However, we don't use
roaming profiles, so that's probably a blessing on our side there.

Hopefully that link helps you as much as it did us.


CJ Keist wrote:
 All,
Looking for some help here.  Not finding anything on the net that
 looks the same as what I'm seeing.  Running Solaris 10 Sparc, on a
 Sunfire 5220, 16Gb of RAM.  Samba version 3.4.5 and using ZFS file
 systems with user quotas.

 All cifs clients shares to this server freeze after about 10 to 15
 minutes of connectivity.  Only fix is to restart samba.  I'm not
 getting any errors from samba or on the /var/adm/messages or
 /var/log/syslog files.  Totally stumped here.  This freezing also
 happened with 3.4.0.

 Compile of samba
 ./configure --with-quotas --disable-shared-libs

 Config:

 # Samba config file created using SWAT
 # from UNKNOWN (���)
 # Date: 2010/01/20 14:18:59

 [global]
 workgroup = ENGR_DOM
 server string = Samba Server
 security = DOMAIN
 password level = 8
 lanman auth = Yes
 client NTLMv2 auth = Yes
 map untrusted to domain = Yes
 log level = 1
 syslog = 2
 log file = /var/log/samba/logs/log.%m
 max open files = 1
 socket options = TCP_NODELAY IPTOS_LOWDELAY
 load printers = No
 preferred master = Auto
 domain master = No
 dns proxy = No
 wins server = xxx.xx.xxx.xxx
 kernel oplocks = No
 lock spin time = 3
 remote announce = xxx.xx.xxx.xxx
 acl check permissions = No
 acl group control = Yes
 oplocks = No
 level2 oplocks = No
 strict locking = No

 [top]
 comment = Top of the Tree
 path = /top
 read only = No
 create mask = 0755
 directory security mask = 0755

 [projects]
 comment = Project space
 path = /XKA1/projects
 read only = No
 create mask = 0775
 directory mask = 02771
 inherit permissions = Yes
 inherit acls = Yes

 [profiles]
 comment = Windows Roaming Profiles
 path = /XKA1/profiles
 valid users = +admin, +ens-students, +ACother
 read only = No
 profile acls = Yes

 [ens$]
 path = /
 valid users = name, name2, name3
 force user = root
 read only = No
 acl map full control = No

 [dean]
 comment = Dean Group
 path = /XKA2/admin/Dean
 valid users = +Dean
 force group = Dean
 read only = No
 create mask = 0770
 directory mask = 02770
 inherit acls = Yes

 [ens]
 comment = ENS Groups
 path = /XKA2/admin/ENS
 valid users = +admin
 force group = admin
 read only = No
 create mask = 0770
 directory mask = 02770
 inherit acls = Yes

 [ebo]
 comment = EBO
 path = /XKA2/admin/EBO
 valid users = +ebo, +ebostdnt
 force group = ebo
 read only = No
 create mask = 0770
 directory mask = 02770
 inherit acls = Yes

 [adr]
 comment = Associate Dean for Researc
 path = /XKA2/admin/ResearchDean
 valid users = +adr
 force group = adr
 read only = No
 create mask = 0770
 directory mask = 02770
 inherit acls = Yes

 [adu]
 comment = Associate Dean for UnderGraduates
 path = /XKA2/admin/AcadAffairs
 valid users = +adu
 force group = adu
 read only = No
 create mask = 0770
 directory mask = 02770
 inherit acls = Yes

 [wmep]
 comment = WomenMinority in Engineering Programs
 path = /XKA2/admin/WMEP
 valid users = +wmep
 force group = wmep
 read only = No
 create mask = 0770
 directory mask = 02770
 inherit acls = Yes

 [development]
 comment = Engineering Development
 path = /XKA2/admin/Development
 valid users = +Devel
 force group = Devel
 read only = No
 create mask = 0770
 directory mask = 02770
 inherit acls = Yes

 [ce]
 comment = Civil Engineering
 path = /XKA2/academic/CE
 valid users = +CEgroup
 force group = CEgroup
 read only = No
 create mask = 0770
 directory mask = 02770
 inherit acls = Yes

 [cira]
 comment = CIRA
 path = /XKA2/academic/CIRA
 valid users = +cira
 force group = cira
 read only = No
 create mask = 0770
 directory mask = 02770
 inherit acls = Yes

 [atmos]
 comment = ATMOS
 path = /XKA2/academic/Atmos
 valid users = +Atmosfac
 force group = Atmosfac
 read only = No
 create mask = 0770
 directory mask = 02770
 inherit acls = Yes

 [ece]
 comment = 

Re: [Samba] Samba shares freezing

2010-01-20 Thread Jeremy Allison
On Wed, Jan 20, 2010 at 03:53:06PM -0700, CJ Keist wrote:
 Jermey,
 Thank you for your response.  I don't have gdb installed but
 here is truss of my share until it froze.

It's blocked in an fcntl lock call on file descriptor 13.
Unfortunately your truss trace doesn't show the open of
fd 13, so I don't know what file this is. As it's an
wait lock I'm guessing this is a tdb file.

Install gdb next, and get the backtrace for more details.

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