{"id":14,"date":"2012-04-22T16:04:56","date_gmt":"2012-04-22T14:04:56","guid":{"rendered":"http:\/\/esxi-v34\/wordpress\/?p=14"},"modified":"2013-01-27T00:08:50","modified_gmt":"2013-01-26T23:08:50","slug":"copying-a-volume-across-a-server","status":"publish","type":"post","link":"\/wordpress\/zfs-2\/copying-a-volume-across-a-server\/","title":{"rendered":"Copying a ZFS volume across a server"},"content":{"rendered":"<p>Take a snapshot of the volume on source server:<\/p>\n<pre><code>root@source# zfs snapshot zfs_dataset\/volume@now<\/code><\/pre>\n<p>Send the snapshot to the target server. Target zfs_dataset can be different:<\/p>\n<pre><code>root@source# zfs send zfs_dataset\/volume@now | ssh target zfs recieve zfs_dataset\/volume@now<\/code><\/pre>\n<p>Clone the snapshot with the supposed name of the new volume<\/p>\n<pre><code>zfs clone zfs_dataset\/volume@now zfs_dataset\/clone<\/code><\/pre>\n<p>Promote it, in effect switching place of the snapshot and the volume<\/p>\n<pre><code>zfs promote zfs_dataset\/clone<\/code><\/pre>\n<p>Clean up by removing the now snapshot<\/p>\n<pre><code>zfs destroy zfs_dataset\/volume<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Take a snapshot of the volume on source server: root@source# zfs snapshot zfs_dataset\/volume@now Send the snapshot to the target server. Target zfs_dataset can be different: root@source# zfs send zfs_dataset\/volume@now | ssh target zfs recieve zfs_dataset\/volume@now Clone the snapshot with the supposed name of the new volume zfs clone zfs_dataset\/volume@now zfs_dataset\/clone Promote it, in effect switching <span class=\"ellipsis\">&hellip;<\/span> <span class=\"more-link-wrap\"><a href=\"\/wordpress\/zfs-2\/copying-a-volume-across-a-server\/\" 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":[12,11,13,4,2],"_links":{"self":[{"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/posts\/14"}],"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=14"}],"version-history":[{"count":6,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":110,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/posts\/14\/revisions\/110"}],"wp:attachment":[{"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.strahlert.net\/wordpress\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}