{"id":2840,"date":"2012-07-25T12:03:40","date_gmt":"2012-07-25T09:03:40","guid":{"rendered":"http:\/\/skeletor.org.ua\/?p=2840"},"modified":"2012-07-25T12:03:40","modified_gmt":"2012-07-25T09:03:40","slug":"%d1%83%d0%b7%d0%bd%d0%b0%d1%91%d0%bc-%d1%80%d0%b0%d0%b7%d0%bc%d0%b5%d1%80-%d0%b1%d0%bb%d0%be%d0%ba%d0%b0-%d0%ba%d0%be%d1%82%d0%be%d1%80%d1%8b%d0%bc-%d1%81%d0%be%d0%b7%d0%b4%d0%b0%d0%bd-%d1%84%d0%b0","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=2840","title":{"rendered":"\u0423\u0437\u043d\u0430\u0451\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u043e\u0437\u0434\u0430\u043d \u0444\u0430\u0439\u043b"},"content":{"rendered":"<p>\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043e\u043b\u044c\u043d\u044b\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c <a title=\"\u044d\u0442\u043e\u0439\" rel=\"nofollow\" href=\"http:\/\/www.c0t0d0s0.org\/archives\/7485-Find-out-in-depth-information-about-a-file-in-ZFS.html\" target=\"_blank\">\u044d\u0442\u043e\u0439<\/a><\/p>\n<p>\u0418 \u0442\u0430\u043a, \u043a\u0430\u043a \u0443\u0437\u043d\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0431\u044b\u043b \u0441\u043e\u0437\u0434\u0430\u043d \u0444\u0430\u0439\u043b? \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <strong>zfs<\/strong>? \u041d\u0435\u0442. \u0422\u0430\u043a \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0443\u0437\u043d\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u043d\u0430\u043b\u0435\u0442\u0443. \u0427\u0442\u043e \u0436\u0435 \u0434\u0435\u043b\u0430\u0442\u044c? \u041d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0434\u0435\u0431\u0430\u0433\u0433\u0435\u0440 <strong>zdb<\/strong>.<\/p>\n<p><!--more--><\/p>\n<p>\u0423\u0437\u043d\u0430\u0451\u043c <strong>inode number<\/strong> \u043d\u0430\u0448\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430:<\/p>\n<p><code>jmoekamp@hivemind:\/datapool\/bibliothek\/isos# ls -i sol-11-1111-text-x86.iso<br \/>\n<strong><span style=\"color: green;\">1614570<\/span><\/strong>\u00a0sol-11-1111-text-x86.iso<\/code><\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0434\u0435\u0431\u0430\u0433\u0433\u0435\u0440\u0430 <strong>zdb<\/strong> \u0443\u0437\u043d\u0430\u0451\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430 (\u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <strong>inode number&#8217;a<\/strong>, \u043a\u043e\u043b\u043e\u043d\u043a\u0430 <strong>dblk<\/strong>)<\/p>\n<pre># zdb -dddd datapool\/bibliothek <strong><span style=\"color: green;\">1614570<\/span><\/strong>\r\nDataset datapool\/bibliothek [ZPL], ID 72, cr_txg 45, 290G,\r\n 701819 objects, rootbp DVA[0]=&lt;0:8200183e00:200&gt; \r\n DVA[1]=&lt;0:c600022600:200&gt; [L0 DMU objset] fletcher4 lzjb\r\n LE contiguous unique double size=800L\/200P \r\n birth=26695605L\/26695605P fill=701819 \r\n cksum=1ba679a565:8fe1c27eed6:19759bef3e3c4:33579b07e80a94\r\n\r\n    Object  lvl   iblk   dblk  dsize  lsize   %full  type\r\n   1614570    3    16K   <span style=\"color: red;\"><strong>128K<\/strong><\/span>   425M   430M   99.97  ZFS plain file\r\n                                        264   bonus  ZFS znode\r\n        dnode flags: USED_BYTES USERUSED_ACCOUNTED\r\n        dnode maxblkid: 3436\r\n        path    \/isos\/sol-11-1111-text-x86.iso\r\n        uid     101\r\n        gid     10\r\n        atime   Fri Apr 27 16:25:02 2012\r\n        mtime   Tue Dec 20 18:58:43 2011\r\n        ctime   Wed Apr 25 15:00:01 2012\r\n        crtime  Wed Apr 25 14:59:12 2012\r\n        gen     26605871\r\n        mode    100000\r\n        size    450799616\r\n        parent  168872\r\n        links   1\r\n        xattr   1614571\r\n        rdev    0x0000000000000000<\/pre>\n<p>\u041a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c (\u043f\u043e \u043a\u043e\u043b\u043e\u043d\u043a\u0435 <strong>dblk<\/strong>) \u0440\u0430\u0437\u043c\u0435\u0440 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 128 \u041a\u0431. \u0418\u0437\u043c\u0435\u043d\u0438\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043a\u043e\u043f\u0438\u044e \u043d\u0430\u0448\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0438 \u0443\u0437\u043d\u0430\u0435\u043c <strong>innode number<\/strong>:<\/p>\n<p><code># zfs recordsize=8k datapool\/bibliothek<br \/>\n# cp sol-11-1111-text-x86.iso sol-11-1111-text-x86.iso.8kcopy<br \/>\n# ls -i sol-11-1111-text-x86.iso.8kcopy<br \/>\n<strong><span style=\"color: green;\">508011<\/span><\/strong> sol-11-1111-text-x86.iso.8kcopy<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c <strong>zdb<\/strong> \u0441 \u043d\u043e\u0432\u044b\u043c<strong> innode number&#8217;\u043e\u043c<\/strong> \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c:<\/p>\n<pre># zdb -dd datapool\/bibliothek <span style=\"color: green;\"><strong>508011<\/strong><\/span>\r\nDataset datapool\/bibliothek [ZPL], ID 72, cr_txg 45, 291G, 701820 objects\r\n\r\n    Object  lvl   iblk   dblk  dsize  lsize   %full  type\r\n    508011    4    16K     <span style=\"color: red;\"><strong>8K<\/strong><\/span>   429M   430M   99.90  ZFS plain file<\/pre>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430 \u0443 \u043d\u043e\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0443\u0436\u0435 16\u041a\u0431.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u0430\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043e\u043b\u044c\u043d\u044b\u043c \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u043c \u044d\u0442\u043e\u0439 \u0418 \u0442\u0430\u043a, \u043a\u0430\u043a \u0443\u0437\u043d\u0430\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0431\u044b\u043b \u0441\u043e\u0437\u0434\u0430\u043d \u0444\u0430\u0439\u043b? \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e zfs? \u041d\u0435\u0442. \u0422\u0430\u043a \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0443\u0437\u043d\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u043b\u043e\u043a\u0430, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u043d\u0430\u043b\u0435\u0442\u0443. \u0427\u0442\u043e \u0436\u0435 \u0434\u0435\u043b\u0430\u0442\u044c? \u041d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0434\u0435\u0431\u0430\u0433\u0433\u0435\u0440 zdb.<\/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-2840","post","type-post","status-publish","format-standard","hentry","category-solaris"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2840","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=2840"}],"version-history":[{"count":1,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2840\/revisions"}],"predecessor-version":[{"id":2841,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/2840\/revisions\/2841"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}