Windows で Samba,NFS: unable to save files to the server due to files being in use or locked エラーが発生する
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
- Samba
Issue
- Windows で Samba,NFS: unable to save files to the server due to files being in use or locked が発生します。
- ファイルが別のユーザーまたはプロセスに使用されているかロックされているため、サーバーにファイルを保存できません。
Resolution
/etc/samba/smb.conf
ファイルのグローバルセクションに以下の行を追加します。
[global]
oplocks = no
level2 oplocks = no
strict locking = no
- samba のサービスを再起動します。
# service smb restart
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments