Score:1

Files remaining locked after writing using mount.cifs

mx flag

We have a server running RHEL 8.3 and connecting to a backup server running windows server running windows server 2016. We connect from RHEL to server using the command: mount.cifs \\SMCFILE\SMC$\Data$\picksaves /mnt/smcbackups -o user=user,pass="pwd",uid=uidvalue,gid=gidvalue,file_mode=0777,dir_mode=0777

We use that same command for other server running the same os, but just copy files around.

When doing the backups, sometimes the file will remain locked. I suspect it has something to do with the file being held open.

If you log into the windows machine, it will say the file is locked by PID 4 or something. If I disconnect the mount, it does not release it, so there must be a service handling the transfer(smb?) or something locking the file and will not release it until we kill it.

Is what we are doing the current proper way to mount a windows server file system on linux?H

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.