Operating System - HP-UX
1833786 Members
2503 Online
110063 Solutions
New Discussion

Re: CIFS 9000: ERROR! out of connection structures

 
Christian Schulze
Regular Advisor

CIFS 9000: ERROR! out of connection structures

I have an urgent Problem.
On Saturday i upgraded from CIFS (A.01.02) to CIFS (A.01.09.05)

Now I have the problem, that no more clients can connect.
in the logs of my server there are a lot of errors (out of connection services)

Probably I have to increase a Kernel-Param. but which one?

Glance reports the following:
nproc 2000 avail, used 194
nfile 10010, 2271
nflocks 800, 553

everything looks OK

I already made up a call at the HP-support

Any ideas ?

Christian
never touch a running system
5 REPLIES 5
T G Manikandan
Honored Contributor

Re: CIFS 9000: ERROR! out of connection structures

Christian Schulze
Regular Advisor

Re: CIFS 9000: ERROR! out of connection structures

Hi TG,
I cannot open the mentioned document.

But I think I found whats wrong:
samba_src/smbd/conn.c there is the following entry:

/* set these to define the limits of the server. NOTE These are on a
per-client basis. Thus any one machine can't connect to more than
MAX_CONNECTIONS services, but any number of machines may connect at
one time. */
#define MAX_CONNECTIONS 512

compiling doesn't work (lots of errors), so HP-Support does this for me.

I hope this solves the Problem

Christian
never touch a running system
Christian Schulze
Regular Advisor

Re: CIFS 9000: ERROR! out of connection structures

sorry, I changed
#define MAX_CONNECTIONS 128
to
#define MAX_CONNECTIONS 512

the problem occurs exactly when
smbstatus | grep hostname | wc -l
where hostname ist the hostname of my W2k Citrix-Metaframeserver.

Christian
never touch a running system
Steven E. Protter
Exalted Contributor

Re: CIFS 9000: ERROR! out of connection structures

Couple of basic ideas:

1) Make sure samba/CIFS at both ends is up to date.

2) Check the command ipcs, look for samba entries, shut down cifs/samba and check again. Use ipcrm to get rid of the shared memory areas.

If the shared memory areas are becoming locked or corrupt, you might want to slighly increase shmmax and or shmseg.

Don't crank shmmax up to more than 25% of total system memory including virtual(swapinfo -tam).

The latest CIFS/9000 release seems to alleviate the problem you report.

http://www.software.hp.com/cgi-bin/swdepot_parser.cgi/cgi/displayProductInfo.pl?productNumber=B8725AA

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Christian Schulze
Regular Advisor

Re: CIFS 9000: ERROR! out of connection structures

Thanks Steve,

problem is solved now.
I ll give a more detailed description, because others might run into the same problem:

Scenario:
HPUX 11.0, CIFS A.01.09.05 (is latest)
Client is Citrix-Metaframe Serverfarm (4x W2k)

every User on Citrix gets 4 lgoical drives mapped on CIFS by a login-script.

Each Citrix-Server creates 1 smbd, which can handle only 128 connections (defined in smbd/conn.c)
So if 32 Users on Citrix connect, each get 4 connections (Drives) it makes up 128. User number 33 will be locked out and you will find the above Errormessage in smb-log.

To keep my business running I got another smbd and nmbd from HP-Support, compiled with MAX_CONNECTIONS=512.

I think they will fix this in the next release.

Again, the problem only occurs if you use a some Windows-Terminal-server and have more than 128 connections.

Christian
never touch a running system