locking Problem 2.0.0 on SGI

Herb Lewis herb at chomps.engr.sgi.com
Fri Jan 15 18:54:32 GMT 1999


Hans Benedict wrote:
> 
> Hi,
> 
> after having upgraded from 2.0.0beta2 to 2.0.0 there are happening strange
> things:
> 
> 1) After startup of smbd I find the following message in log.smb
>   smbd version 2.0.0 started.
>   Copyright Andrew Tridgell 1992-1998
>  [1999/01/15 17:38:09, 1] smbd/files.c:file_init(219)
>   file_init: Information only: requested 10000 open files, 2490 are
>   available.

This is not a problem. It means you can only open 2490 files. If for
some reason you need more than that you can run systune and change the
rlimit_nofile_max value to increase this

> 
> 2) doing a smbclient -L <hostname> returns
>   session request to ETHER failed
>   session request to *SMBSERVER failed

What host did you execute this command from? Was it in your hosts allow?
If this was from the localhost try adding its IP address to hosts allow
as well - this makes it work for me. I'll take a closer look to see if
this is actually a bug. It appears that there is a bug in swat that will
not allow connections if there are any entries in hosts allow.

> 
> 3) at the same time the following appears in log.smb
>  [1999/01/15 17:38:11, 0] locking/shmem_sysv.c:sysv_shm_open(590)
>   ERROR semctl: can't IPC_STAT. Error was Bad address
>  [1999/01/15 17:38:11, 0] locking/locking.c:locking_init(169)
>   ERROR: Failed to initialise share modes!
>  [1999/01/15 17:38:12, 0] locking/shmem_sysv.c:sysv_shm_open(590)
>   ERROR semctl: can't IPC_STAT. Error was Bad address
>  [1999/01/15 17:38:12, 0] locking/locking.c:locking_init(169)
>   ERROR: Failed to initialise share modes!

Try stopping samba, deleting the shared memory segment and then
restarting samba. Use "ipcs -ma" to see the segments, and 
"ipcrm -m <id>" to delete sambas segment.

> 
> I didn't change anything in smb.conf:
> 
> # Samba config file
> #
> 
> # Global parameters
>         workgroup = CHEMNET
>         server string = Chemnet Server
>         encrypt passwords = Yes
>         log file = /var/samba/logs/log.%m
>         log level = 1
>         lock directory = /var/samba/locks
>         smb passwd file = /var/samba/private/smbpasswd
>         domain logons = No
>         os level = 65
>         preferred master = Yes
>         domain master = Yes
>         wins support = Yes
>         hosts allow =  127.0.0.1 @chemnet
>         security = server
>         password server = pauli
> 
> [homes]
>         comment = HOME Verzeichnisse UNIX
>         read only = No
>         create mask = 0755
>         browseable = No
> 
> Any hints?
> Thanks in advance,
>                   Hans Benedict
> 
> --
> Hans Benedict                  Chemie.DE Informations-Service
> mailto:benedict at chemie.de      FU Berlin, Fachbereich Chemie
> Fon: +49-(0)30-838-3408        Takustrasse 6, D-14195 Berlin, Germany
> Fax: +40-(0)30-838-3464        http://www.chemie.de

-- 
======================================================================
Herb Lewis                                   Silicon Graphics 
Technical Marketing                          2011 N Shoreline Blvd
Network Systems Division                     Mountain View, CA  94043  
herb at sgi.com                                 Tel: 650-933-2177
http://www.sgi.com                           Fax: 650-932-2177          
======================================================================


More information about the samba mailing list