{"id":2996,"date":"2022-09-24T22:23:43","date_gmt":"2022-09-24T14:23:43","guid":{"rendered":"https:\/\/jir.idv.tw\/wordpress\/?p=2996"},"modified":"2022-09-24T22:23:43","modified_gmt":"2022-09-24T14:23:43","slug":"linux-samba-panic-action-script-usr-share-samba-panic-action%e7%9a%84%e4%bf%a1%e4%bb%b6%e4%b8%80%e7%9b%b4%e5%87%ba%e7%8f%be%e6%80%8e%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/jir.idv.tw\/wordpress\/?p=2996","title":{"rendered":"[LINUX] samba &#8216;panic action&#8217; script, \/usr\/share\/samba\/panic-action\u7684\u4fe1\u4ef6\u4e00\u76f4\u51fa\u73fe\u600e\u89e3"},"content":{"rendered":"<p>\u7b97\u662f\u500b\u7d93\u9a57\u7d00\u9304\u3002<br \/>\n\u524d\u9663\u5b50\u958b\u59cb\u628aRPi3B\u6539\u6210\u4e86NAS\uff0c\u5916\u639b\u786c\u789f\u4f86\u7576\u5099\u4efd\u548c\u5f71\u97f3\u7528\u9014\u3002<br \/>\n\u53ef\u662f\uff0c\u5f8c\u4f86\u767c\u73fe\u6703\u4e00\u76f4\u6536\u5230\u8b66\u544a\u4fe1\u4ef6\uff0c\u985e\u4f3c\u9019\u6a23\uff1asamba &#8216;panic action&#8217; script, \/usr\/share\/samba\/panic-action\u3002<br \/>\n\u627e\u4e0d\u5230\u539f\u56e0\u4e4b\u4e0b\uff0c\u4eca\u5929\u624d\u7559\u610f\u5230\uff0c\u53ea\u8981\u624b\u6a5f\u9023SAMBA\u904e\u53bb\uff0c\u6bcf\u958b\u4e00\u500b\u6a94\u6848\u5c31\u6703\u5bc4\u4e00\u4efd\u8b66\u544a\u4fe1\u4ef6~XD<br \/>\n\u5f8c\u4f86\u770b\/var\/log\/samba\/log.\u9019\u500b\u7d00\u9304\u6a94\u6848\uff0c\u4e5f\u6709\u770b\u5230\u932f\u8aa4\u8a0a\u606f\uff0c\u53ea\u662f\u8ddf\u4fe1\u4ef6\u8b66\u5831\u8a0a\u606f\u4e00\u6a23\uff0cGOOGLE\u627e\u4e0d\u5230\u500b\u6240\u4ee5\u7136\u3002<br \/>\n\u7136\u5f8c\u5c31\u9019\u6a23\u9670\u932f\u967d\u5dee\uff0c\u767c\u73fe\u61c9\u8a72\u662f\u6211\u8ffd\u52a0\u7684\u53c3\u6578\u554f\u984c\u9020\u6210\u7684\u3002<br \/>\n\u5982\u679c\u5404\u4f4d\u6709\u9047\u5230\uff0c\u4e5f\u8a31\u53ef\u4ee5\u7559\u610f\u662f\u4e0d\u662f\u9019\u500b\u53c3\u6578\u555f\u7528\u9020\u6210\u7684\uff1a<br \/>\n\/etc\/samba\/smb.conf<br \/>\n    server multi channel support = yes<br \/>\n    aio read size = 1<br \/>\n    aio write size = 1<br \/>\n\u7576\u521d\u60f3\u8aaa\uff0c\u6211\u7684RPi\u6709\u591a\u7db2\u5361(RJ45 + WIFI + USB WIFI)\uff0c\u61c9\u8a72\u53ef\u4ee5\u5617\u8a66\u7528\u770b\u770b\u6240\u8b02\u7a81\u7834\u983b\u5bec\u7684\u591a\u901a\u9053\u6027\u80fd\u3002<br \/>\n\u54ea\u77e5\u9053\u5f04\u5de7\u6210\u62d9\uff0c\u662f\u8b66\u5831\u7684\u4f86\u6e90\u4e3b\u56e0\u3002<br \/>\n\u6240\u4ee5\uff0c\u7de8\u8f2f\u628a\u9019\u4e09\u884c#\u8a3b\u89e3\u6389\u4e0d\u4f7f\u7528\u5f8c\uff0csudo \/etc\/init.d\/smbd restart\u91cd\u65b0\u555f\u52d5\u670d\u52d9\u3002<br \/>\n\u63a5\u8457\u518d\u4f86\u91cd\u8907\u539f\u4f86\u7684\u8b80\u53d6\u6a94\u6848\u52d5\u4f5c\uff0c\u4f86\u89f8\u767c\u4e4b\u524d\u767c\u73fe\u7684\u8b66\u5831\u3002<br \/>\n\u4e0d\u4f46\u89e3\u6c7a\u4e86\u4e00\u76f4\u5bc4\u932f\u8aa4\u4fe1\u4ef6\u8a0a\u606f\u4ee5\u5916\u3002<br \/>\n\u6700\u7d42\u9084\u767c\u73fe\u7db2\u8def\u82b3\u9f61\u9023\u7dda\u672c\u6a5f\u7db2\u8def\u958b\u6a94\u6848\u7684\u901f\u5ea6\uff0c\u6574\u500b\u8b8a\u6b63\u5e38\u8d85\u5feb\u7684\u7121\u5ef6\u9072\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b97\u662f\u500b\u7d93\u9a57\u7d00\u9304\u3002 \u524d\u9663\u5b50\u958b\u59cb\u628aRPi3B\u6539\u6210\u4e86NAS\uff0c\u5916\u639b\u786c\u789f\u4f86\u7576\u5099\u4efd\u548c\u5f71\u97f3\u7528\u9014\u3002 \u53ef\u662f\uff0c\u5f8c\u4f86\u767c\u73fe\u6703\u4e00\u76f4\u6536\u5230\u8b66\u544a\u4fe1\u4ef6\uff0c\u985e\u4f3c\u9019\u6a23\uff1asamba &#8216;panic action&#8217; script, \/usr\/share\/samba\/panic-action\u3002 \u627e\u4e0d\u5230\u539f\u56e0\u4e4b\u4e0b\uff0c\u4eca\u5929\u624d\u7559\u610f\u5230\uff0c\u53ea\u8981\u624b\u6a5f\u9023SAMBA\u904e\u53bb\uff0c\u6bcf\u958b\u4e00\u500b\u6a94\u6848\u5c31\u6703\u5bc4\u4e00\u4efd\u8b66\u544a\u4fe1\u4ef6~XD \u5f8c\u4f86\u770b\/var\/log\/samba\/log.\u9019\u500b\u7d00\u9304\u6a94\u6848\uff0c\u4e5f\u6709\u770b\u5230\u932f\u8aa4\u8a0a\u606f\uff0c\u53ea\u662f\u8ddf\u4fe1\u4ef6\u8b66\u5831\u8a0a\u606f\u4e00\u6a23\uff0cGOOGLE\u627e\u4e0d\u5230\u500b\u6240\u4ee5\u7136\u3002 \u7136\u5f8c\u5c31\u9019\u6a23\u9670\u932f\u967d\u5dee\uff0c\u767c\u73fe\u61c9\u8a72\u662f\u6211\u8ffd\u52a0\u7684\u53c3\u6578\u554f\u984c\u9020\u6210\u7684\u3002 \u5982\u679c\u5404\u4f4d\u6709\u9047\u5230\uff0c\u4e5f\u8a31\u53ef\u4ee5\u7559\u610f\u662f\u4e0d\u662f\u9019\u500b\u53c3\u6578\u555f\u7528\u9020\u6210\u7684\uff1a \/etc\/samba\/smb.conf server multi channel support = yes aio read size = 1 aio write size = 1 \u7576\u521d\u60f3\u8aaa\uff0c\u6211\u7684RPi\u6709\u591a\u7db2\u5361(RJ45 + WIFI + USB WIFI)\uff0c\u61c9\u8a72\u53ef\u4ee5\u5617\u8a66\u7528\u770b\u770b\u6240\u8b02\u7a81\u7834\u983b\u5bec\u7684\u591a\u901a\u9053\u6027\u80fd\u3002 \u54ea\u77e5\u9053\u5f04\u5de7\u6210\u62d9\uff0c\u662f\u8b66\u5831\u7684\u4f86\u6e90\u4e3b\u56e0\u3002 \u6240\u4ee5\uff0c\u7de8\u8f2f\u628a\u9019\u4e09\u884c#\u8a3b\u89e3\u6389\u4e0d\u4f7f\u7528\u5f8c\uff0csudo \/&#8230; <a href=\"https:\/\/jir.idv.tw\/wordpress\/?p=2996\" class=\"readmore\">Read more (\u5b8c\u6574\u6587\u7ae0\u5167\u5bb9)<span class=\"screen-reader-text\">[LINUX] samba &#8216;panic action&#8217; script, \/usr\/share\/samba\/panic-action\u7684\u4fe1\u4ef6\u4e00\u76f4\u51fa\u73fe\u600e\u89e3<\/span><span class=\"fa fa-angle-double-right\" aria-hidden=\"true\"><\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2996","post","type-post","status-publish","format-standard","hentry","category-4","content-layout-excerpt-thumb"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2996"}],"version-history":[{"count":1,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2996\/revisions"}],"predecessor-version":[{"id":2997,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/2996\/revisions\/2997"}],"wp:attachment":[{"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2996"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2996"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jir.idv.tw\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}