Operating System - HP-UX
1827809 Members
1998 Online
109969 Solutions
New Discussion

Re: Samba - Shared memory problem

 
Tony Walker
Frequent Advisor

Samba - Shared memory problem

Hi Guys,

We have a samba share running on a production machine that up until Friday was running OK. This morning Samba has stopped. After restarting it, the following is displayed as a restuly of smbstatus:

GSDI smbuser GRP1 25159 smbpc-hq (152.108.131.164) Thu May 29 12:08:53 2003

ERROR: root did not create the semaphore
ERROR: Failed to initialise share modes
Can't initialise shared memory - exiting

Although it shows a connection, that pc can't see the share. Also I have been told that samba creates semaphore/message queues with keys including 2802. Assuming this, samba is only creating a semaphore but NOT a message queue. The output of ipcs|grep 2802 is:

s 33062 0x00280269 --ra-ra-ra- root sys

So far I have stopped samba, killed the semaphore and started samba again. Situation is still as above.

Any help greatly appreciated.

Cheers,

Tony
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: Samba - Shared memory problem

I would update to the latest version and if the problem still happens, look at shmseg and shmmax in the kernel.

Both are dynamically changable without a machine boot. Message queues are more used by database software like oracle and adabas but will have to be adequate as well.

Don't increase shmmax to more than 25% of available memory, which is defined as physical memory plus swap, it won't help to go higher than that.

I am attaching the link to the CIFS/9000 samba software which is free at software.hp.com and some peformance data collection scripts.

Good Luck,

CIFS/9000

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

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

Documentation:
http://www.docs.hp.com/hpux/onlinedocs/B8725-90003/B8725-90003.html


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
Ravi_8
Honored Contributor

Re: Samba - Shared memory problem

Hi,

did u checked any kernel values to be set for samba?
never give up
Tony Walker
Frequent Advisor

Re: Samba - Shared memory problem

Thanks guys.

In answer to your questions:

Unfortunately upgrading to the lastest version is not currently an option. And as is the reason for not touching the Kernel values, samba was running fine last Friday (30/05) unitl it was rebooted. I'll give them a check just to see if they were changed though..

Cheers,

Tony
Geoff Wild
Honored Contributor

Re: Samba - Shared memory problem

What version of Samba are you running (is it a HP port - IE CIFS/9000)?

You could try disabling opclocks in your smb.conf file.

If you are running HP's CIFS/9000 - then I would upgrade....

I'm actually running:

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

in semi production with no problems what so ever...

Rgds...Geoff


Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Philip St-Pierre
New Member

Re: Samba - Shared memory problem

Hi Tony,
I have the same problem with samba, yesterday all was going well, and this morning i get this error:

[2003/07/21 16:04:11, 1] /tmp/smbinst/source/smbd/server.c:(666)
smbd version 2.0.7.006 started.
Copyright Andrew Tridgell 1992-1998
[2003/07/21 16:04:21, 0] /tmp/smbinst/source/locking/shmem_sysv.c:(613)
ERROR: root did not create the semaphore: semgid=240, rootgid=502
[2003/07/21 16:04:21, 0] /tmp/smbinst/source/locking/locking.c:(178)
ERROR: Failed to initialise share modes

Did you fix your problem?? I am running the version 2.0.7.006 for tandem.

Thanks
Phil