[Samba] cifs migration locking issue

Doug Tucker tuckerd at lyle.smu.edu
Tue Apr 26 13:30:23 MDT 2011


All,

I am trying to migrate from one cifs server to another without taking a
hard outtage.  We have all of our users map their drives via a cname of
\\cifs.  We changed the dns and static wins entry from server1 to
server2 and allowed the clients to transition over.  It mostly went well
but for a few clients which I cannot draw any similarities too (same OS,
office version, etc).  For these few, they would not be able to open
files on the new server even after a reboot.  We are getting an
NT_STATUS_FILE_LOCK_CONFLICT yet smbstatus on the old server would show
no processes for them, but after being unable to open files on the new
server, remounting them to the old one the files would open right up.
Here is a snippet of the logs consistent for each user having the issue.
Any help you could provide would be greatly appreciated.

[2011/04/26 09:23:51, 3] smbd/error.c:error_packet_set(106)
  error packet at smbd/blocking.c(252) cmd=36 (SMBlockingX)
NT_STATUS_FILE_LOCK_CONFLICT
[2011/04/26 09:23:51, 3] smbd/process.c:process_smb(1083)
  Transaction 1265 of length 75
[2011/04/26 09:23:51, 3] smbd/process.c:switch_message(932)
  switch message SMBlockingX (pid 25251) conn 0x2b14e07049c0
[2011/04/26 09:23:51, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (7693, 100) - sec_ctx_stack_ndx = 0
[2011/04/26 09:23:51, 3] lib/util.c:fcntl_lock(2027)
  fcntl_lock: lock failed at offset 551 count 1 op 6 type 1 (Resource
temporarily unavailable)
[2011/04/26 09:23:51, 3] smbd/blocking.c:push_blocking_lock_request(172)
  push_blocking_lock_request: lock request length=75 blocked with expiry
time (1303827831 sec. 849433 usec) (+200 msec) for fnum = 13954, name =
My Documents/archive.pst
[2011/04/26 09:23:51, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2011/04/26 09:23:51, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (7693, 100) - sec_ctx_stack_ndx = 0
[2011/04/26 09:23:51, 3] lib/util.c:fcntl_lock(2027)
  fcntl_lock: lock failed at offset 551 count 1 op 6 type 1 (Resource
temporarily unavailable)
[2011/04/26 09:23:51, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2011/04/26 09:23:51, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2011/04/26 09:23:51, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (7693, 100) - sec_ctx_stack_ndx = 0
[2011/04/26 09:23:51, 3] lib/util.c:fcntl_lock(2027)
  fcntl_lock: lock failed at offset 551 count 1 op 6 type 1 (Resource
temporarily unavailable)
[2011/04/26 09:23:51, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2011/04/26 09:23:51, 3] smbd/error.c:error_packet_set(106)
  error packet at smbd/blocking.c(252) cmd=36 (SMBlockingX)
NT_STATUS_FILE_LOCK_CONFLICT
[2011/04/26 09:23:51, 3] smbd/process.c:process_smb(1083)
  Transaction 1266 of length 75
[2011/04/26 09:23:51, 3] smbd/process.c:switch_message(932)
  switch message SMBlockingX (pid 25251) conn 0x2b14e07049c0
[2011/04/26 09:23:51, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (7693, 100) - sec_ctx_stack_ndx = 0
[2011/04/26 09:23:51, 3] lib/util.c:fcntl_lock(2027)
  fcntl_lock: lock failed at offset 552 count 1 op 6 type 1 (Resource
temporarily unavailable)
[2011/04/26 09:23:51, 3] smbd/blocking.c:push_blocking_lock_request(172)
  push_blocking_lock_request: lock request length=75 blocked with expiry
time (1303827832 sec. 50943 usec) (+200 msec) for fnum = 13954, name =
My Documents/archive.pst
[2011/04/26 09:23:52, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2011/04/26 09:23:52, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (7693, 100) - sec_ctx_stack_ndx = 0
[2011/04/26 09:23:52, 3] lib/util.c:fcntl_lock(2027)
  fcntl_lock: lock failed at offset 552 count 1 op 6 type 1 (Resource
temporarily unavailable)


Sincerely,

Doug




More information about the samba mailing list