Jump to content

[6.9.2] smbd keeps file open, resulting in "Device or resource busy"


Howboys

Recommended Posts

I've had this issue for a while now. Basically, I have a single share mounted on my server with smb. After a large enough copy (and sporadically, not always), if I try to mutate the file (move, delete etc), I get "Device or resource busy". Today, I was able to find out what on the unraid box is keeping the file busy:

 

lsof $FILENAME
COMMAND   PID  USER   FD   TYPE DEVICE   SIZE/OFF               NODE NAME
smbd    25896 howbowz  443w   REG   0,45 7039913529 648799827760513201 $FILENAME

 

To be clear, I ran the above in unraid's terminal.

 

So now my questions:

 

  • What's going on here with smbd keeping the file open for a long, long time?
  • How do I prevent it?
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...