[Samba] Fwd: samba & Oracle ACFS Issues

Nacho del Rey odelreym at gmail.com
Tue Dec 16 14:50:10 MST 2014


Hi Volker and many thanks for your response

According to your questions

>Please remove the SO_RCVBUF and SO_SNDBUF entries.
>Oh, that's ancient. Do you have any possibility to move to
>"security=user"?
                 The smb.conf file was inherited from HP-UX system. Ok,
I'll remove them

>Did you try "posix locking = no"? That is mostly criticial
>if you are exporting files from a file system with
>unreliable locking like for example NFS.

          There is no NFS at all over the fs. It is only ACFS + samba. We
tried to disable any interference with posix locks over the ACFS, so the
parameter was set to no. Is it right?

>Can you see what the smbd hosting such a blocked client does?
>If it is in D state (according to ps u), it sits in the
>kernel. If not, you could try stracing the process (strace
>-ttT -p <pid>) and see what it does. gstack <pid> also helps
>often.

   We got the following strace over the samba process 'locked'

*[PRO]* [root at pf3il0024 ~]# strace -p *38063*

Process 38063 attached - interrupt to quit

fcntl(39, F_SETSIG, 0x23)               = 0

fcntl(39, F_SETLEASE, F_WRLCK)          = 0

getxattr("tf-PRENSA_DIRLOG_20141202_100852", "system.posix_acl_access",
0x7fff5f0b8320, 132) = -1 *ENOENT* (No such file or directory)

getxattr("tf-PRENSA_DIRLOG_20141202_100852", "system.posix_acl_access",
0x7fff5f0b8310, 132) = -1 *ENOENT* (No such file or directory)

chmod("tf-PRENSA_DIRLOG_20141202_100852", 0664) = -1 ENOENT (No such file
or directory)

fgetxattr(39, "system.posix_acl_access", 0x7fff5f0b83c0, 132) = -1 ENODATA
(No data available)

fstat(39, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0

fcntl(14, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=25684, len=1}) = 0

fcntl(14, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=25684, len=1}) = 0

fcntl(14, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=25684, len=1}) = 0

stat("tf-PRENSA_DIRLOG_20141202_100852", 0x7fff5f0b8770) = -1 *ENOENT* (No
such file or directory)

writev(28,
[{"\0\0\0\207\377SMB\242\0\0\0\0\210\3\300\0\0\0\0\0\0\0\0\0\0\0\0\1\0\340\3"...,
139}], 1) = -1 EPIPE (Broken pipe)

stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) = 0

*geteuid()                               = 504*

fstat(34, {st_mode=S_IFREG|0644, st_size=24713, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 24713

write(34, "[2014/12/02 10:43:18.654245,  1]"..., 66) = 66

munmap(0x7f4d64ee9000, 4096)            = 0

getpeername(28, 0x7fff5f0b8840, [128])  = -1 ENOTCONN (Transport endpoint
is not connected)

stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) = 0

*geteuid()                               = 504*

fstat(34, {st_mode=S_IFREG|0644, st_size=24779, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 24779

write(34, "[2014/12/02 10:43:18.654612,  2]"..., 78) = 78

munmap(0x7f4d64ee9000, 4096)            = 0

geteuid()                               = 504

fstat(34, {st_mode=S_IFREG|0644, st_size=24857, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 24857

write(34, "  getpeername failed. Error was "..., 68) = 68

munmap(0x7f4d64ee9000, 4096)            = 0

geteuid()                               = 504

fstat(34, {st_mode=S_IFREG|0644, st_size=24925, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 24925

write(34, "  pid[38063] Error writing 139 b"..., 74) = 74

munmap(0x7f4d64ee9000, 4096)            = 0

*geteuid()                               = 504*

setreuid(4294967295, 0)                 = 0

geteuid()                               = 0

geteuid()                               = 0

*getegid()                               = 504*

setregid(4294967295, 0)                 = 0

getegid()                               = 0

getegid()                               = 0

setgroups(0, [])                        = 0

setregid(4294967295, 0)                 = 0

getegid()                               = 0

setreuid(4294967295, 0)                 = 0

geteuid()                               = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=24999, ...}) = 0

writev(28, [{"\205\0\0\0", 4}], 1)      = -1 EPIPE (Broken pipe)

stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) = 0

sendto(5, "<27>Dec  2 10:43:18 smbd[38063]:"..., 100, MSG_NOSIGNAL, NULL,
0) = 100

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=24999, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 24999

write(34, "[2014/12/02 10:43:18.655784,  0]"..., 67) = 67

munmap(0x7f4d64ee9000, 4096)            = 0

getpeername(28, 0x7fff5f0b8b70, [128])  = -1 ENOTCONN (Transport endpoint
is not connected)

stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=25066, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 25066

write(34, "[2014/12/02 10:43:18.656055,  2]"..., 78) = 78

munmap(0x7f4d64ee9000, 4096)            = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=25144, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 25144

write(34, "  getpeername failed. Error was "..., 68) = 68

munmap(0x7f4d64ee9000, 4096)            = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=25212, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 25212

write(34, "  send_keepalive failed for clie"..., 72) = 72

munmap(0x7f4d64ee9000, 4096)            = 0

poll([{fd=6, events=POLLIN|POLLHUP}, {fd=28, events=POLLIN|POLLHUP},
{fd=30, events=POLLIN|POLLHUP}], 3, 59999) = 1 ([{fd=28,
revents=POLLIN|POLLHUP}])

read(28, "\0\0\0)", 4)                  = 4

read(28,
"\377SMB\4\0\0\0\0\30\7\310\0\0\0\0\0\0\0\0\0\0\0\0\1\0\377\376\0\0\201\22"...,
41) = 41

fcntl(19, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=452, len=1}) = 0

fcntl(19, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=452, len=1}) = 0

fcntl(19, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=452, len=1}) = 0

fcntl(19, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=452, len=1}) = 0

geteuid()                               = 0

getegid()                               = 0

setgroups(1, [504])                     = 0

setregid(4294967295, 504)               = 0

getegid()                               = 504

setreuid(4294967295, 504)               = 0

geteuid()                               = 504

fcntl(8, F_SETSIG, 0x23)                = 0

fcntl(8, F_SETLEASE, F_UNLCK)           = 0

fcntl(14, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=7096, len=1}) = 0

fcntl(14, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=7096, len=1}) = 0

close(8)                                = 0

stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) = 0

geteuid()                               = 504

fstat(34, {st_mode=S_IFREG|0644, st_size=25284, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 25284

write(34, "[2014/12/02 10:43:18.657084,  2]"..., 69) = 69

munmap(0x7f4d64ee9000, 4096)            = 0

geteuid()                               = 504

fstat(34, {st_mode=S_IFREG|0644, st_size=25353, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 25353

write(34, "  expl closed file tf-PRENSA_Aca"..., 85) = 85

munmap(0x7f4d64ee9000, 4096)            = 0

writev(28,
[{"\0\0\0#\377SMB\4\0\0\0\0\210\3\300\0\0\0\0\0\0\0\0\0\0\0\0\1\0\377\376"...,
39}], 1) = -1 EPIPE (Broken pipe)

stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) = 0

geteuid()                               = 504

fstat(34, {st_mode=S_IFREG|0644, st_size=25438, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 25438

write(34, "[2014/12/02 10:43:18.657481,  1]"..., 66) = 66

munmap(0x7f4d64ee9000, 4096)            = 0

getpeername(28, 0x7fff5f0b8aa0, [128])  = -1 ENOTCONN (Transport endpoint
is not connected)

stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) = 0

geteuid()                               = 504

fstat(34, {st_mode=S_IFREG|0644, st_size=25504, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 25504

write(34, "[2014/12/02 10:43:18.657673,  2]"..., 78) = 78

munmap(0x7f4d64ee9000, 4096)            = 0

geteuid()                               = 504

fstat(34, {st_mode=S_IFREG|0644, st_size=25582, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 25582

write(34, "  getpeername failed. Error was "..., 68) = 68

munmap(0x7f4d64ee9000, 4096)            = 0

geteuid()                               = 504

fstat(34, {st_mode=S_IFREG|0644, st_size=25650, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 25650

write(34, "  pid[38063] Error writing 39 by"..., 73) = 73

munmap(0x7f4d64ee9000, 4096)            = 0

poll([{fd=6, events=POLLIN|POLLHUP}, {fd=28, events=POLLIN|POLLHUP},
{fd=30, events=POLLIN|POLLHUP}], 3, 59998) = 1 ([{fd=28,
revents=POLLIN|POLLHUP}])

read(28, "", 4)                         = 0

geteuid()                               = 504

setreuid(4294967295, 0)                 = 0

geteuid()                               = 0

geteuid()                               = 0

getegid()                               = 504

setregid(4294967295, 0)                 = 0

getegid()                               = 0

getegid()                               = 0

setgroups(0, [])                        = 0

setregid(4294967295, 0)                 = 0

getegid()                               = 0

setreuid(4294967295, 0)                 = 0

geteuid()                               = 0

fcntl(39, F_SETSIG, 0x23)               = 0

fcntl(39, F_SETLEASE, F_UNLCK)          = 0

fcntl(14, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=25684, len=1}) = 0

fcntl(14, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=25684, len=1}) = 0

close(39)                               = 0

stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=25723, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 25723

write(34, "[2014/12/02 10:43:18.658743,  2]"..., 69) = 69

munmap(0x7f4d64ee9000, 4096)            = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=25792, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 25792

write(34, "  expl closed file tf-PRENSA_DIR"..., 77) = 77

munmap(0x7f4d64ee9000, 4096)            = 0

fcntl(38, F_SETSIG, 0x23)               = 0

fcntl(38, F_SETLEASE, F_UNLCK)          = 0

fcntl(14, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=39568, len=1}) = 0

fcntl(14, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=39568, len=1}) = 0

close(38)                               = 0

stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=25869, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 25869

write(34, "[2014/12/02 10:43:18.659291,  2]"..., 69) = 69

munmap(0x7f4d64ee9000, 4096)            = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=25938, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 25938

write(34, "  expl closed file tf-PRENSA_DIR"..., 78) = 78

munmap(0x7f4d64ee9000, 4096)            = 0

brk(0x7f4d65d7b000)                     = 0x7f4d65d7b000

fcntl(37, F_SETSIG, 0x23)               = 0

fcntl(37, F_SETLEASE, F_UNLCK)          = 0

fcntl(14, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=28140, len=1}) = 0

fcntl(14, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=28140, len=1}) = 0

close(37)                               = 0

stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=26016, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 26016

write(34, "[2014/12/02 10:43:18.659787,  2]"..., 69) = 69

munmap(0x7f4d64ee9000, 4096)            = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=26085, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 26085

write(34, "  expl closed file tf-PRENSA_DIR"..., 79) = 79

munmap(0x7f4d64ee9000, 4096)            = 0

brk(0x7f4d65d79000)                     = 0x7f4d65d79000

fcntl(36, F_SETSIG, 0x23)               = 0

fcntl(36, F_SETLEASE, F_UNLCK)          = 0

fcntl(14, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=30436, len=1}) = 0

fcntl(14, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=30436, len=1}) = 0

close(36)                               = 0

stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=26164, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 26164

write(34, "[2014/12/02 10:43:18.660272,  2]"..., 69) = 69

munmap(0x7f4d64ee9000, 4096)            = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=26233, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 26233

write(34, "  expl closed file tf-PRENSA_DIR"..., 80) = 80

munmap(0x7f4d64ee9000, 4096)            = 0

brk(0x7f4d65d77000)                     = 0x7f4d65d77000

fcntl(35, F_SETSIG, 0x23)               = 0

fcntl(35, F_SETLEASE, F_UNLCK)          = 0

fcntl(14, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=35272, len=1}) = 0

fcntl(14, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=35272, len=1}) = 0

close(35)                               = 0

stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=26313, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 26313

write(34, "[2014/12/02 10:43:18.660754,  2]"..., 69) = 69

munmap(0x7f4d64ee9000, 4096)            = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=26382, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 26382

write(34, "  expl closed file tf-PRENSA_DIR"..., 83) = 83

munmap(0x7f4d64ee9000, 4096)            = 0

brk(0x7f4d65d75000)                     = 0x7f4d65d75000

geteuid()                               = 0

getegid()                               = 0

setgroups(0, [])                        = 0

setregid(4294967295, 0)                 = 0

getegid()                               = 0

setreuid(4294967295, 0)                 = 0

geteuid()                               = 0

stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2593, ...}) = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=26465, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 26465

write(34, "[2014/12/02 10:43:18.661460,  1]"..., 65) = 65

munmap(0x7f4d64ee9000, 4096)            = 0

geteuid()                               = 0

fstat(34, {st_mode=S_IFREG|0644, st_size=26530, ...}) = 0

mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7f4d64ee9000

lseek(34, 0, SEEK_CUR)                  = 26530

write(34, "  pv0iw0048 (172.30.35.64) close"..., 65) = 65

munmap(0x7f4d64ee9000, 4096)            = 0

fcntl(12, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=644, len=1}) = 0

fcntl(12, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=55328, len=1}) = 0

fcntl(12, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=55328, len=1}) = 0

fcntl(12, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=164, len=1}) = 0

fcntl(12, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=164, len=1}) = 0

fcntl(12, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=644, len=1}) = 0

chdir("/")                              = 0

geteuid()                               = 0

getegid()                               = 0

setgroups(0, [])                        = 0

setregid(4294967295, 0)                 = 0

getegid()                               = 0

setreuid(4294967295, 0)                 = 0

geteuid()                               = 0

rt_sigaction(SIGUSR1, {SIG_DFL, [], SA_RESTORER, 0x7f4d61c8b960}, NULL, 8)
= 0

close(6)                                = 0

close(7)                                = 0

rt_sigaction(SIGRT_3, {SIG_DFL, [], SA_RESTORER, 0x7f4d61c8b960}, NULL, 8)
= 0

rt_sigaction(SIGHUP, {SIG_DFL, [], SA_RESTORER, 0x7f4d61c8b960}, NULL, 8) =
0

rt_sigaction(SIGTERM, {SIG_DFL, [], SA_RESTORER, 0x7f4d61c8b960}, NULL, 8)
= 0

munmap(0x7f4d64ee7000, 696)             = 0

close(16)                               = 0

munmap(0x7f4d64ee8000, 696)             = 0

close(15)                               = 0

munmap(0x7f4d64eeb000, 696)             = 0

close(3)                                = 0

munmap(0x7f4d64e17000, 40200)           = 0

close(13)                               = 0

munmap(0x7f4d57b28000, 1486848)         = 0

close(14)                               = 0

fcntl(24, F_SETLK, {type=F_WRLCK, whence=SEEK_SET, start=8, len=1}) = 0

fcntl(24, F_SETLK, {type=F_RDLCK, whence=SEEK_SET, start=168, len=524}) = 0

fcntl(24, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=692, len=0}) = 0

fstat(24, {st_mode=S_IFREG|0644, st_size=425984, ...}) = 0

fcntl(25, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=8, len=1}) = 0

fcntl(25, F_SETLK, {type=F_RDLCK, whence=SEEK_SET, start=168, len=524}) = 0

fcntl(25, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=692, len=0}) = 0

fstat(25, {st_mode=S_IFREG|0644, st_size=421888, ...}) = 0

munmap(0x7f4d581c2000, 696)             = 0

mmap(NULL, 421888, PROT_READ|PROT_WRITE, MAP_SHARED, 25, 0) = 0x7f4d57c2c000

fstat(25, {st_mode=S_IFREG|0644, st_size=421888, ...}) = 0

fcntl(25, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=168, len=0}) = 0

fcntl(25, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=8, len=1}) = 0

fcntl(24, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=168, len=0}) = 0

fcntl(24, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=8, len=1}) = 0

close(21)                               = 0

exit_group(0)                           = ?

Process 38063 detached

Hope it helps

Kind regards

Nacho.

2014-12-16 22:19 GMT+01:00 Volker Lendecke <Volker.Lendecke at sernet.de>:
>
> On Tue, Dec 16, 2014 at 03:40:08PM +0100, Nacho del Rey wrote:
> > Hi there
> >
> > In an Oracle RAC cluster using ACFS (as file-system) where we have a
> samba
> > server for sharing files to windows clients, we are suffering a strange
> > issue, from time to time, which it causes the Windows clients lock for a
> > while (10 min or a bit more) or even indefinitely when they are working
> > with the share resource, and sometimes we have to re-start the samba
> > service to come back to normality
> >
> > We thought the problem was on the ACFS locks (incompatibility with samba
> > locks), so we tried to avoid them using some parameters in smb.conf but
> > unfortunately we are still having problems
> >
> > Data:
> >
> > OS: RHEL 6.4
> > samba server: samba-3.6.9-151.el6_4.1.x86_64
> > Oracle: 11.2
> > Windows 2008 & Windows 7
> >
> > smb.conf
> >
> > [global]
> >         log file = /var/log/samba/log.%m
> >         socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
>
> Please remove the SO_RCVBUF and SO_SNDBUF entries.
>
> >         encrypt passwords = true
> >         wins support = true
> >         nt acl support = Yes
> >         logon script = %U.bat
> >         local master = yes
> >         workgroup = SMBBD
> >         name resolve order = bcast host
> >         server string = Servidor Samba NOCON
> >         security = share
>
> Oh, that's ancient. Do you have any possibility to move to
> "security=user"?
>
> >         map to guest = Bad User
> >         preferred master = yes
> >         bind interfaces only = True
> >         max log size = 50
> >         domain logons = Yes
> >         smb ports=139
> >         log level = 2 locking:5
> >
> >
> > [dossiers]
> >         comment = xxxxxxxxxxxxxxxxxxxxxx
> >         path = /opt/srv007/app
> >         guest ok = yes
> >         writable = yes
> >         browseable = no
> >         create mask = 0664
> >         directory mask = 0775
> >         force create mode = 0664
> >         force directory mode = 0775
> >         force user = expl
> >         force group = expl
> >         # The following to avoid file system lockings
> >         locking = Yes
> >         strictlocking = No
> >         posixlocking = Yes
>
> Did you try "posix locking = no"? That is mostly criticial
> if you are exporting files from a file system with
> unreliable locking like for example NFS.
>
> >         oplocks = No
> >         level2oplocks = No
> >         fakeoplocks = No
> >         blockinglocks = Yes
> >
> > $  df /opt/srv007/app/
> > Filesystem           1K-blocks      Used Available Use% Mounted on
> > /dev/asm/vpdona07-390
> >                       68157440  13112864  55044576  20% /opt/srv007/app
> >
> > /dev/asm/vpdona07-390 /opt/srv007/app acfs rw,relatime,device,rootsuid 0
> 0
> >
> > Has anybody got a clue?
>
> Can you see what the smbd hosting such a blocked client does?
> If it is in D state (according to ps u), it sits in the
> kernel. If not, you could try stracing the process (strace
> -ttT -p <pid>) and see what it does. gstack <pid> also helps
> often.
>
> With best regards,
>
> Volker Lendecke
>
> --
> SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
> phone: +49-551-370000-0, fax: +49-551-370000-9
> AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
> http://www.sernet.de, mailto:kontakt at sernet.de
>


More information about the samba mailing list