{"id":728,"date":"2019-10-03T02:11:58","date_gmt":"2019-10-02T16:11:58","guid":{"rendered":"https:\/\/blog.hegars.com\/?p=728"},"modified":"2019-10-04T00:26:47","modified_gmt":"2019-10-03T14:26:47","slug":"crazy-disk-layout","status":"publish","type":"post","link":"https:\/\/blog.hegars.com\/?p=728","title":{"rendered":"Crazy Disk Layout"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1018\" height=\"803\" src=\"https:\/\/blog.hegars.com\/wp-content\/uploads\/2019\/10\/image-29.png\" alt=\"\" class=\"wp-image-732\" srcset=\"https:\/\/blog.hegars.com\/wp-content\/uploads\/2019\/10\/image-29.png 1018w, https:\/\/blog.hegars.com\/wp-content\/uploads\/2019\/10\/image-29-300x237.png 300w, https:\/\/blog.hegars.com\/wp-content\/uploads\/2019\/10\/image-29-768x606.png 768w\" sizes=\"(max-width: 1018px) 100vw, 1018px\" \/><\/figure>\n\n\n\n<p>Found a set of disk in my pile that came out of a Buffalo NAS<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nroot@debian:~# mdadm --detail \/dev\/md127\n\/dev\/md127:\n           Version : 1.2\n     Creation Time : Thu May 28 11:42:20 2015\n        Raid Level : raid5\n        Array Size : 1953259520 (1862.77 GiB 2000.14 GB)\n     Used Dev Size : 976629760 (931.39 GiB 1000.07 GB)\n      Raid Devices : 3\n     Total Devices : 3\n       Persistence : Superblock is persistent\n\n     Intent Bitmap : Internal\n\n       Update Time : Thu Oct  3 01:21:52 2019\n             State : active \n    Active Devices : 3\n   Working Devices : 3\n    Failed Devices : 0\n     Spare Devices : 0\n\n            Layout : left-symmetric\n        Chunk Size : 512K\n\nConsistency Policy : bitmap\n\n              Name : buffalo:0\n              UUID : 817c66c9:ab5aba3d:46cf3be0:c46fd224\n            Events : 11591\n\n    Number   Major   Minor   RaidDevice State\n       0       8       17        0      active sync   \/dev\/sdb1\n       1       8       49        1      active sync   \/dev\/sdd1\n       2       8       33        2      active sync   \/dev\/sdc1\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nroot@debian:~# pvdisplay \/dev\/md127          \n  --- Physical volume ---\n  PV Name               \/dev\/md127\n  VG Name               raid5\n  PV Size               &lt;1.82 TiB \/ not usable 4.00 MiB\n  Allocatable           yes \n  PE Size               4.00 MiB\n  Total PE              476869\n  Free PE               338357\n  Allocated PE          138512\n  PV UUID               2UPreL-vdQI-NdXn-xfhR-BxgN-FADg-UpYjVn\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nroot@debian:~# vgdisplay raid5               \n  --- Volume group ---\n  VG Name               raid5\n  System ID             \n  Format                lvm2\n  Metadata Areas        1\n  Metadata Sequence No  9\n  VG Access             read\/write\n  VG Status             resizable\n  MAX LV                0\n  Cur LV                7\n  Open LV               5\n  Max PV                0\n  Cur PV                1\n  Act PV                1\n  VG Size               &lt;1.82 TiB\n  PE Size               4.00 MiB\n  Total PE              476869\n  Alloc PE \/ Size       138512 \/ 541.06 GiB\n  Free  PE \/ Size       338357 \/ 1.29 TiB\n  VG UUID               ADkPZw-R27s-6FUZ-3LW7-JUOV-oPyW-55pWu4\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nroot@debian:~# lvdisplay raid5               \n  --- Logical volume ---\n  LV Path                \/dev\/raid5\/root\n  LV Name                root\n  VG Name                raid5\n  LV UUID                CRKUp4-a5lj-QeI2-mdiX-ifxY-3OH5-wVWGOw\n  LV Write Access        read\/write\n  LV Creation host, time buffalo, 2015-05-28 11:50:46 +1000\n  LV Status              available\n  # open                 1\n  LV Size                37.25 GiB\n  Current LE             9536\n  Segments               1\n  Allocation             inherit\n  Read ahead sectors     auto\n  - currently set to     4096\n  Block device           253:2\n   \n  --- Logical volume ---\n  LV Path                \/dev\/raid5\/swap\n  LV Name                swap\n  VG Name                raid5\n  LV UUID                iGclU8-Fm3T-GSgD-L8AP-UJDk-Y5H3-iiQmWo\n  LV Write Access        read\/write\n  LV Creation host, time buffalo, 2015-05-28 11:51:00 +1000\n  LV Status              available\n  # open                 0\n  LV Size                3.81 GiB\n  Current LE             976\n  Segments               1\n  Allocation             inherit\n  Read ahead sectors     auto\n  - currently set to     4096\n  Block device           253:3\n   \n  --- Logical volume ---\n  LV Path                \/dev\/raid5\/zpool1\n  LV Name                zpool1\n  VG Name                raid5\n  LV UUID                clahFF-RXYF-QsQ3-xBgG-rMa9-y0Ac-8zDdit\n  LV Write Access        read\/write\n  LV Creation host, time buffalo, 2015-05-28 13:36:22 +1000\n  LV Status              available\n  # open                 1\n  LV Size                100.00 GiB\n  Current LE             25600\n  Segments               1\n  Allocation             inherit\n  Read ahead sectors     auto\n  - currently set to     4096\n  Block device           253:4\n   \n  --- Logical volume ---\n  LV Path                \/dev\/raid5\/zpool2\n  LV Name                zpool2\n  VG Name                raid5\n  LV UUID                3v95G3-Uev9-V3LI-PyYt-WzXu-kdch-fNMsjP\n  LV Write Access        read\/write\n  LV Creation host, time buffalo, 2015-05-28 13:36:26 +1000\n  LV Status              available\n  # open                 1\n  LV Size                100.00 GiB\n  Current LE             25600\n  Segments               1\n  Allocation             inherit\n  Read ahead sectors     auto\n  - currently set to     4096\n  Block device           253:5\n   \n  --- Logical volume ---\n  LV Path                \/dev\/raid5\/zpool3\n  LV Name                zpool3\n  VG Name                raid5\n  LV UUID                y4McZn-hLW3-jQR2-Pzkz-9QEc-Jd5p-TZ9idI\n  LV Write Access        read\/write\n  LV Creation host, time buffalo, 2015-05-28 13:36:29 +1000\n  LV Status              available\n  # open                 1\n  LV Size                100.00 GiB\n  Current LE             25600\n  Segments               1\n  Allocation             inherit\n  Read ahead sectors     auto\n  - currently set to     4096\n  Block device           253:6\n   \n  --- Logical volume ---\n  LV Path                \/dev\/raid5\/zpool4\n  LV Name                zpool4\n  VG Name                raid5\n  LV UUID                DOO9th-5B32-9kX6-NkwG-4Dbx-AKcN-83XiAT\n  LV Write Access        read\/write\n  LV Creation host, time buffalo, 2015-05-28 13:36:32 +1000\n  LV Status              available\n  # open                 1\n  LV Size                100.00 GiB\n  Current LE             25600\n  Segments               1\n  Allocation             inherit\n  Read ahead sectors     auto\n  - currently set to     4096\n  Block device           253:7\n   \n  --- Logical volume ---\n  LV Path                \/dev\/raid5\/macmini\n  LV Name                macmini\n  VG Name                raid5\n  LV UUID                XL6d9V-SGfH-6m16-WH8E-JobI-oGn9-HuGDjL\n  LV Write Access        read\/write\n  LV Creation host, time buffalo, 2015-06-01 13:46:25 +1000\n  LV Status              available\n  # open                 0\n  LV Size                100.00 GiB\n  Current LE             25600\n  Segments               1\n  Allocation             inherit\n  Read ahead sectors     auto\n  - currently set to     4096\n  Block device           253:8\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Upgrading ZFS\/zPool<\/h2>\n\n\n\n<p>Disks are now in a Debian 10 machine and the original version was v4 ZFS and v23 zPool created via &#8221; zfs-fuse 0.7.2 &#8220;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">ZFS<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nroot@debian:~# zfs list\nNAME   USED  AVAIL  REFER  MOUNTPOINT\ntank  57.3G   328G  57.3G  \/tank\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nroot@debian:~# zfs get version\nNAME  PROPERTY  VALUE    SOURCE\ntank  version   4        -\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nroot@debian:\/# zfs upgrade \nThis system is currently running ZFS filesystem version 5.\n\nThe following filesystems are out of date, and can be upgraded.  After being\nupgraded, these filesystems (and any 'zfs send' streams generated from\nsubsequent snapshots) will no longer be accessible by older software versions.\n\n\nVER  FILESYSTEM\n---  ------------\n 4   tank\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nroot@debian:\/# zfs upgrade tank\n1 filesystems upgraded\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\">zPool<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nroot@debian:~# zpool get version\nNAME  PROPERTY  VALUE    SOURCE\ntank  version   23       local\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nroot@debian:~# zpool list tank \nNAME   SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT\ntank   398G  73.2G   325G         -      -    18%  1.00x  ONLINE  -\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nroot@debian:~# zpool status\n  pool: tank\n state: ONLINE\nstatus: The pool is formatted using a legacy on-disk format.  The pool can\n        still be used, but some features are unavailable.\naction: Upgrade the pool using 'zpool upgrade'.  Once this is done, the\n        pool will no longer be accessible on software that does not support\n        feature flags.\n  scan: none requested\nconfig:\n\n        NAME        STATE     READ WRITE CKSUM\n        tank        ONLINE       0     0     0\n          zpool1    ONLINE       0     0     0\n          zpool2    ONLINE       0     0     0\n          zpool3    ONLINE       0     0     0\n          zpool4    ONLINE       0     0     0\n\nerrors: No known data errors\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nroot@debian:\/# zpool upgrade tank \nThis system supports ZFS pool feature flags.\n\nSuccessfully upgraded 'tank' from version 23 to feature flags.\nEnabled the following features on 'tank':\n  async_destroy\n  empty_bpobj\n  lz4_compress\n  multi_vdev_crash_dump\n  spacemap_histogram\n  enabled_txg\n  hole_birth\n  extensible_dataset\n  embedded_data\n  bookmarks\n  filesystem_limits\n  large_blocks\n  large_dnode\n  sha512\n  skein\n  edonr\n  userobj_accounting\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nroot@debian:\/# zpool get version  \nNAME  PROPERTY  VALUE    SOURCE\ntank  version   -        default\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nroot@debian:\/# zpool status\n  pool: tank\n state: ONLINE\n  scan: none requested\nconfig:\n\n        NAME        STATE     READ WRITE CKSUM\n        tank        ONLINE       0     0     0\n          zpool1    ONLINE       0     0     0\n          zpool2    ONLINE       0     0     0\n          zpool3    ONLINE       0     0     0\n          zpool4    ONLINE       0     0     0\n\nerrors: No known data errors\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Found a set of disk in my pile that came out of a Buffalo NAS Upgrading ZFS\/zPool Disks are now in a Debian 10 machine and the original version was v4 ZFS and v23 zPool created via &#8221; zfs-fuse 0.7.2 &#8220; ZFS zPool<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[12,4,6,16],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/728"}],"collection":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=728"}],"version-history":[{"count":11,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/728\/revisions"}],"predecessor-version":[{"id":745,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=\/wp\/v2\/posts\/728\/revisions\/745"}],"wp:attachment":[{"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hegars.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}