tdb_lock problem on gpfs filesystem SOLVED

Hansjörg Maurer Hansjoerg.Maurer at dlr.de
Thu Nov 10 16:48:55 GMT 2005


Hi,

just for your information.
gpfs  sets a limit on the number of fcntl ranges which causes the problem.

With a hidden parameter this limit could be increased.

Greetings from munich

Hansjörg Maurer

Hansjörg Maurer schrieb:

>Hi
>
>I am running samba-3.0.20 on RHEL4 x86_64.
>Samba is part of a Linux-HA Cluster which usese IBM General Parallel
>Filesystem GPFS
>as shared storage.
>
>Samba shoul run as a failover ha resource.
>Therefore we put all the samba resources (/etc/samba,  /var/lib/samba)
>und the clusterfilesystem.
>
>When I start samba,
>samba prints messages like
>log.smbd:  tdb(/var/lib/samba/printing/PDFprinter.tdb): tdb_lock failed
>on list 201 ltype=1 (No locks available)
>
>an strace shows
>
>strace -e open,fcntl -f smbd
>
>open("/var/lib/samba/printing/hp8000.tdb", O_RDWR|O_CREAT, 0600) = 19
>fcntl(19, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0
>fcntl(19, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0
>fcntl(19, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=6140, len=1}) = 0
>fcntl(19, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=6140, len=1}) = 0
>open("/var/lib/samba/printing/hp5m.tdb", O_RDWR|O_CREAT, 0600) = 19
>fcntl(19, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0
>fcntl(19, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0
>fcntl(19, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=6140, len=1}) = 0
>fcntl(19, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=6140, len=1}) = 0
>open("/var/lib/samba/printing/hp5000hf.tdb", O_RDWR|O_CREAT, 0600) = 19
>fcntl(19, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=1}) = 0
>fcntl(19, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=1}) = 0
>fcntl(19, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=6140, len=1})
>= -1 ENOLCK (No locks available)
>open("/usr/share/locale/locale.alias", O_RDONLY) = 20
>
>I  was trying to get rid of this messages with -DHAVE_MMAP=0 
>-DTDB_DEBUG=1 -DNOLOCK=1
>in source/tdb/Makefile
>
>I also set
>use mmap= no
>in smb.conf
>with no success (gpfs seems to have  sometimes problems with mmap files)
>Does anyone has an idea how I can trace down the problem?
>
>Thank you very much
>
>hansjörg
>
>
>
>
>  
>

-- 
_________________________________________________________________

Dr.  Hansjoerg Maurer           | LAN- & System-Manager
                                |
Deutsches Zentrum               | DLR Oberpfaffenhofen
  f. Luft- und Raumfahrt e.V.   |
Institut f. Robotik             |
Postfach 1116                   | Muenchner Strasse 20
82230 Wessling                  | 82234 Wessling
Germany                         |
                                |
Tel: 08153/28-2431              | E-mail: Hansjoerg.Maurer at dlr.de
Fax: 08153/28-1134              | WWW: http://www.robotic.dlr.de/
__________________________________________________________________


There are 10 types of people in this world, 
those who understand binary and those who don't.



More information about the samba-technical mailing list