{"id":8,"date":"2012-03-04T15:47:28","date_gmt":"2012-03-04T14:47:28","guid":{"rendered":"http:\/\/esxi-v34\/wordpress\/?p=8"},"modified":"2013-01-26T17:38:47","modified_gmt":"2013-01-26T16:38:47","slug":"adding-a-disk-to-an-existing-zpool","status":"publish","type":"post","link":"\/wordpress\/zfs-2\/adding-a-disk-to-an-existing-zpool\/","title":{"rendered":"Adding a disk to an existing zpool"},"content":{"rendered":"<pre><code>zpool attach &lt;zpool name&gt; &lt;existing device&gt; &lt;new device&gt;<\/code><\/pre>\n<p>Where <code>&lt;existing device&gt;<\/code> is <code>gpt\/disk0<\/code> in the zpool status output below.<\/p>\n<pre><code> pool: zroot\r\n state: ONLINE\r\n scrub: none requested\r\nconfig:\r\n\r\n    NAME         STATE     READ WRITE CKSUM\r\n    zroot        ONLINE       0     0     0\r\n      gpt\/disk0  ONLINE       0     0     0<\/code><\/pre>\n<p>The pool will create a 1-way mirror (essentially RAID1) using the now two devices and immediately resilver the data onto from the existing disk onto the new.<\/p>\n<pre><code> pool: zroot\r\n state: ONLINE\r\n scrub: resilver completed after 0h0m with 0 errors on Fri Jan 26 15:43:54 2013\r\nconfig:\r\n\r\n    NAME           STATE     READ WRITE CKSUM\r\n    zroot          ONLINE       0     0     0\r\n      mirror       ONLINE       0     0     0\r\n        gpt\/disk0  ONLINE       0     0     0\r\n        gpt\/disk1  ONLINE       0     0     0  592K resilvered<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>zpool attach &lt;zpool name&gt; &lt;existing device&gt; &lt;new device&gt; Where &lt;existing device&gt; is gpt\/disk0 in the zpool status output below. pool: zroot state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 gpt\/disk0 ONLINE 0 0 0 The pool will create a 1-way mirror (essentially RAID1) using the now two <span class=\"ellipsis\">&hellip;<\/span> <span class=\"more-link-wrap\"><a href=\"\/wordpress\/zfs-2\/adding-a-disk-to-an-existing-zpool\/\" class=\"more-link\"><span>Read More &rarr;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[7,8,2,9],"_links":{"self":[{"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/posts\/8"}],"collection":[{"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":7,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":52,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/posts\/8\/revisions\/52"}],"wp:attachment":[{"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}