{"id":3129,"date":"2012-11-16T12:01:34","date_gmt":"2012-11-16T10:01:34","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=3129"},"modified":"2025-05-20T16:01:20","modified_gmt":"2025-05-20T13:01:20","slug":"%d1%80%d0%b0%d1%81%d1%88%d0%b8%d1%80%d0%b5%d0%bd%d0%b8%d0%b5-%d0%ba%d0%be%d1%80%d0%bd%d0%b5%d0%b2%d0%be%d0%b3%d0%be-%d0%bf%d1%83%d0%bb%d0%b0-zfs","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=3129","title":{"rendered":"\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043f\u0443\u043b\u0430 zfs"},"content":{"rendered":"<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0437\u0430\u043c\u0435\u043d\u044b \u0434\u0438\u0441\u043a\u043e\u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043f\u0443\u043b\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0438 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0451\u043c\u043a\u043e\u0441\u0442\u0438. \u0414\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043a\u0430\u043a \u0434\u043b\u044f <strong>Solaris-family<\/strong> \u0442\u0430\u043a \u0438 \u0434\u043b\u044f <strong>FreeBSD<\/strong>.<\/p>\n<p><!--more--><\/p>\n<p><strong><span style=\"color: #ff0000;\">1) \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0443\u043b\u0430 \u0434\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f:<\/span><\/strong><\/p>\n<pre># zpool list\r\nNAME \u00a0 \u00a0SIZE \u00a0ALLOC \u00a0 FREE \u00a0CAP \u00a0DEDUP \u00a0HEALTH \u00a0ALTROOT\r\nrpool \u00a015.3G \u00a012.5G \u00a0 2.8G \u00a078% \u00a01.00x \u00a0ONLINE \u00a0-\r\n# zpool status\r\n  pool: rpool\r\n state: ONLINE\r\n  scan: resilvered 12.5G in 0h28m with 0 errors on Thu Nov 15 21:06:22 2012\r\nconfig:\r\n\r\n        NAME        STATE     READ WRITE CKSUM\r\n        rpool       ONLINE       0     0     0\r\n          c3t0d0s0  ONLINE       0     0     0\r\n\r\nerrors: No known data errors<\/pre>\n<p><strong><span style=\"color: #ff0000;\">2) \u0424\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u0443\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0434\u0438\u0441\u043a<\/span><\/strong><\/p>\n<p>\u041d\u043e\u0432\u044b\u0439 \u0434\u0438\u0441\u043a \u0443 \u043d\u0430\u0441 \u043e\u043f\u043e\u0437\u043d\u0430\u043b\u0441\u044f \u043a\u0430\u043a <strong>c3t2d0<\/strong>. \u0424\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u0443\u0435\u043c \u0435\u0433\u043e <strong>Solaris2 100%<\/strong> (\u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"\/?p=2027\" target=\"_blank\">\u0437\u0434\u0435\u0441\u044c<\/a>) \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u043d\u0430\u0448\u0435\u0433\u043e \u0434\u0438\u0441\u043a\u0430:<\/p>\n<pre>#prtvtoc \/dev\/c3t2d0s2\r\n* \/dev\/dsk\/c3t2d0s2 partition map\r\n*\r\n* Dimensions:\r\n*     512 bytes\/sector\r\n*      63 sectors\/track\r\n*     255 tracks\/cylinder\r\n*   16065 sectors\/cylinder\r\n*    5315 cylinders\r\n*    5313 accessible cylinders\r\n*\r\n* Flags:\r\n*   1: unmountable\r\n*  10: read-only\r\n*\r\n*                          First     Sector    Last\r\n* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory\r\n       2      5    01          0  85353345  85353344\r\n       8      1    01          0     16065     16064<\/pre>\n<p>\u0432\u0441\u0451 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0442 \u043c\u0435\u0441\u0442\u0430 \u043f\u043e\u0434 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u044b\u0439 \u0440\u0430\u0437\u0434\u0435\u043b. \u0415\u0441\u043b\u0438 \u0435\u0433\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043f\u0443\u043b \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0430 \u043d\u0435\u0433\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a &#8211; \u0442\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0442\u0440\u0451\u0442 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0438\u0435 \u0441\u0435\u043a\u0442\u043e\u0440\u0430 \u0438 \u043f\u0443\u043b \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043d\u0435\u043a\u043e\u043d\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043d\u044b\u043c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u0442\u044c \u0434\u0438\u0441\u043a, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u0443\u044e \u043e\u0431\u043b\u0430\u0441\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0437\u0430\u043f\u0438\u0448\u0435\u043c \u0432\u044b\u0432\u043e\u0434 <strong>prtvtoc\u00a0<\/strong><strong>\/dev\/c3t2d0s2<\/strong> \u0432 \u0444\u0430\u0439\u043b, \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \u0438 \u0437\u0430\u043f\u0438\u0448\u0435\u043c \u043d\u043e\u0432\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043d\u0430 \u0434\u0438\u0441\u043a.<\/p>\n<p><code>#prtvtoc \/dev\/c3t2d0s2 &gt; \/tmp\/c3t2d0s2.dsk<\/code><\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0442\u0430\u043a\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0444\u0430\u0439\u043b <strong>\/tmp\/c3t2d0s2.dsk<\/strong><\/p>\n<pre>       0      2    00      16065  X  Y<\/pre>\n<p>\u0432 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u0430\u043a\u043e\u0435:<\/p>\n<pre>...\r\n* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory\r\n       0      2    00      16065         X         Y\r\n       2      5    01          0  85353345  85353344\r\n       8      1    01          0     16065     16064\r\n...<\/pre>\n<p>\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <strong>X<\/strong> \u0438 <strong>Y<\/strong>. \u0412\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0442\u0430\u043a:<\/p>\n<p><code>X=85353345+32131 (\u0442\u043e \u0435\u0441\u0442\u044c \u0431\u0435\u0440\u0451\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 Count \u0438\u0437 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441 Partition=2)<br \/>\nY=X-16064<\/code><\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre>...\r\n* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory\r\n       0      2    00      16065  85305150  85321214\r\n       2      5    01          0  85353345  85353344\r\n       8      1    01          0     16065     16064\r\n...<\/pre>\n<p>\u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0437\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043d\u0430 \u0434\u0438\u0441\u043a:<\/p>\n<p><code>#cat \/tmp\/c3t2d0s2.dsk | fmthard -s - \/dev\/rdsk\/c3t2d0s2<\/code><\/p>\n<p><strong><span style=\"color: #ff0000;\">3) \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u043f\u0443\u043b\u043e\u043c<\/span><\/strong><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0434\u0438\u0441\u043a \u043a \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u043c\u0443 \u043f\u0443\u043b\u0443, \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0437\u0435\u0440\u043a\u0430\u043b\u0438\u0440\u0443\u0435\u043c \u0435\u0433\u043e:<\/p>\n<p><code>#zpool attach -f rpool c3t0d0s0 c3t2d0s0<\/code><\/p>\n<p>\u0438 \u0437\u0430\u043f\u0438\u0448\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a:<\/p>\n<p><code>#installgrub -m \/boot\/grub\/stage1 \/boot\/grub\/stage2 \/dev\/rdsk\/c3t2d0s0<\/code><\/p>\n<p>\u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u043f\u0443\u043d\u043a\u0442\u0443, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435\u0441\u044c \u0441 \u043d\u043e\u0432\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430 \u0438 \u0435\u0441\u043b\u0438 \u0432\u0441\u0451 \u0443\u0434\u0430\u0447\u043d\u043e, \u0442\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u0435 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u043f\u0443\u043d\u043a\u0442\u0443<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0441\u0438\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0443\u043b\u0430, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0439\u0442\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043f\u0443\u0442\u044f\u043c\u0438:<\/p>\n<p><em><span style=\"color: #ff6600;\">&#8211; \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u044b\u0439 \u0434\u0438\u0441\u043a \u0438\u0437 \u043f\u0443\u043b\u0430 (zpool detach)<\/span><\/em><br \/>\n<em><span style=\"color: #ff6600;\"> &#8211; \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u0443\u043b (zpool splitt)<\/span><\/em><\/p>\n<p>\u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u0443\u043b\u0430 <strong>autoexpand=on<\/strong> (\u043f\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u0443 \u043e\u043d\u043e <strong>off<\/strong>):<\/p>\n<p><code>#zpool set autoexpand=on<\/code><\/p>\n<p>\u0415\u0441\u043b\u0438 <strong>zpool list<\/strong> \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0441\u0440\u0430\u0437\u0443 \u043d\u043e\u0432\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440, \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f. \u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0442\u043e\u0436\u0435 \u0440\u0430\u0437\u043c\u0435\u0440 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f, \u0442\u043e\u0433\u0434\u0430 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0441\u044f \u0441 <strong>LiveCD<\/strong> \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c import\/export \u043f\u0443\u043b\u0430. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0443\u043b\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u0441\u044f. \u0421\u0442\u0430\u0440\u044b\u0439 \u0434\u0438\u0441\u043a \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043d\u0443\u0442\u044c.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0437\u0430\u043c\u0435\u043d\u044b \u0434\u0438\u0441\u043a\u043e\u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u043f\u0443\u043b\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0438 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0451\u043c\u043a\u043e\u0441\u0442\u0438. \u0414\u0430\u043d\u043d\u044b\u0439 \u043c\u0435\u0442\u043e\u0434 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043a\u0430\u043a \u0434\u043b\u044f Solaris-family \u0442\u0430\u043a \u0438 \u0434\u043b\u044f FreeBSD.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-3129","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3129","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=3129"}],"version-history":[{"count":5,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3129\/revisions"}],"predecessor-version":[{"id":6604,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/3129\/revisions\/6604"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}