{"id":205,"date":"2010-09-30T09:23:20","date_gmt":"2010-09-30T08:23:20","guid":{"rendered":"http:\/\/simkin.org\/wordpress\/?p=205"},"modified":"2010-10-03T18:25:43","modified_gmt":"2010-10-03T17:25:43","slug":"opportunity-locks","status":"publish","type":"post","link":"http:\/\/simkin.org\/wordpress\/?p=205","title":{"rendered":"Opportunity Locks"},"content":{"rendered":"<p>It seems Samba on the MyBook (fw             01.02.04) has trouble with big files. I haven&#8217;t hit this problem first-hand but have had the MyBook deciding to just not save files and throw-up &#8220;overload&#8221; warnings on the webgui even though nothing is going on on the box. The CIFS log reads:<\/p>\n<p>&#8220;read_data: read failure for 4 bytes to client 10.44.1.20. Error = Connection reset by peer&#8221;<\/p>\n<p>Apparently one possible cause is opportunistic locking. so I&#8217;ve turned it off by applying the registry key suggested <a href=\"http:\/\/mybookworld.wikidot.com\/forum\/t-55527\/large-file-copy-problem-solved\">here<\/a>. One other option is to get the NAS to power cycle every day to clear any issues bubbling under with the SAMBA daemon.<\/p>\n<p>Hopefully there will be a fix for this one soon.<\/p>\n<p>Turning off oplocks on the client just caused the error more often though. Maybe I need to turn it off on the server instead or as well as&#8230;<\/p>\n<p>For details on how to turn oplocks on or off on Windows 7, click <a href=\"http:\/\/support.microsoft.com\/kb\/296264\">here<\/a>.<\/p>\n<p>For details on how to do the same at the SAMBA\/MyBook end, click <a href=\"http:\/\/www.samba.org\/samba\/docs\/man\/Samba-HOWTO-Collection\/locking.html#id2616903\">here<\/a>.<\/p>\n<p>For an example of what Oplocks are and how they can barf, click <a href=\"http:\/\/blogs.technet.com\/b\/thenetworker\/archive\/2008\/01\/04\/of-oplock-lock-unlock-unopportunistic-lock.aspx\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It seems Samba on the MyBook (fw 01.02.04) has trouble with big files. I haven&#8217;t hit this problem first-hand but &hellip; <a class=\"more-link\" href=\"http:\/\/simkin.org\/wordpress\/?p=205\">More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3],"tags":[229,232],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/205"}],"collection":[{"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=205"}],"version-history":[{"count":0,"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/205\/revisions"}],"wp:attachment":[{"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=205"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=205"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=205"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}