{"id":3739,"date":"2013-09-03T15:54:17","date_gmt":"2013-09-03T12:54:17","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=3739"},"modified":"2013-09-03T15:54:17","modified_gmt":"2013-09-03T12:54:17","slug":"zpool-failmode","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=3739","title":{"rendered":"zpool failmode"},"content":{"rendered":"<p>\u0423 <strong>zpool<\/strong> \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u0430 \u0438\u0437 \u043e\u043f\u0446\u0438\u0439 &#8211; <strong>failmode<\/strong>. \u042d\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0430 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e\u0435 \u0438\u0441\u0447\u0435\u0437\u043d\u043e\u0432\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u043a\u0430 \u043f\u0443\u043b\u0430. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 &#8211; \u044d\u0442\u043e <strong>wait<\/strong>:<\/p>\n<pre># zpool get failmode dpool\r\nNAME   PROPERTY  VALUE     SOURCE\r\nrpool  failmode  continue  local<\/pre>\n<p>\u0411\u044b\u0432\u0430\u044e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0437\u0435\u0440\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0439\u0434\u0435 \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <strong>continue<\/strong>:<\/p>\n<p><!--more--><\/p>\n<pre># zpool set failmode=continue dpool\r\n# zpool get failmode dpool\r\nNAME   PROPERTY  VALUE     SOURCE\r\nrpool  failmode  continue  local<\/pre>\n<p>\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0438\u0436\u0435:<\/p>\n<pre>failmode=wait | continue | panic\r\n\r\n    Controls the system behavior  in  the  event  of  catas-\r\n    trophic  pool  failure.  This  condition  is typically a\r\n    result of a  loss  of  connectivity  to  the  underlying\r\n    storage device(s) or a failure of all devices within the\r\n    pool. The behavior of such an  event  is  determined  as\r\n    follows:\r\n\r\n    wait        Blocks all I\/O access until the device  con-\r\n                nectivity  is  recovered  and the errors are\r\n                cleared. This is the default behavior.\r\n\r\n    continue    Returns EIO to any new  write  I\/O  requests\r\n                but  allows  reads  to  any of the remaining\r\n                healthy devices.  Any  write  requests  that\r\n                have  yet  to  be committed to disk would be\r\n                blocked.\r\n\r\n    panic       Prints out a message to the console and gen-\r\n                erates a system crash dump.<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0423 zpool \u0435\u0441\u0442\u044c \u043e\u0434\u043d\u0430 \u0438\u0437 \u043e\u043f\u0446\u0438\u0439 &#8211; failmode. \u042d\u0442\u043e \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0430 \u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e\u0435 \u0438\u0441\u0447\u0435\u0437\u043d\u043e\u0432\u0435\u043d\u0438\u0435 \u0434\u0438\u0441\u043a\u0430 \u043f\u0443\u043b\u0430. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 &#8211; \u044d\u0442\u043e wait: # zpool get failmode dpool NAME PROPERTY VALUE SOURCE rpool failmode continue local \u0411\u044b\u0432\u0430\u044e\u0442 \u043c\u043e\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0437\u0435\u0440\u043a\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0435\u0439\u0434\u0435 \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 continue:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,24],"tags":[],"class_list":["post-3739","post","type-post","status-publish","format-standard","hentry","category-freebsd","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3739","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3739"}],"version-history":[{"count":1,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3739\/revisions"}],"predecessor-version":[{"id":3740,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3739\/revisions\/3740"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}