{"id":12894,"date":"2022-12-25T16:37:10","date_gmt":"2022-12-25T21:37:10","guid":{"rendered":"https:\/\/jianmingli.com\/wp\/?p=12894"},"modified":"2022-12-25T16:37:10","modified_gmt":"2022-12-25T21:37:10","slug":"backup-replicate-vol1-pool-to-backup-pool","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=12894","title":{"rendered":"Backup\/replicate vol1 pool to backup pool"},"content":{"rendered":"<div class='toc wptoc'>\n<h2>Contents<\/h2>\n<ol class='toc-odd level-1'>\n\t<li>\n\t\t<a href=\"#Install_New_Disks\">Install New Disks<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Create_Backup_Pool\">Create Backup Pool<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Create_Snapshot\">Create Snapshot<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Replciate_Snapshot_to_New_Pool\">Replciate Snapshot to New Pool<\/a>\n\t<\/li>\n\t<li>\n\t\t<a href=\"#Destroy_Snapshot_if_Needed\">Destroy Snapshot if Needed<\/a>\n\t<\/li>\n<\/ol>\n<\/ol>\n<\/div>\n<div class='wptoc-end'>&nbsp;<\/div>\n<span id=\"Install_New_Disks\"><h2>Install New Disks<\/h2><\/span>\n<p>* Shutdown freenas<br \/>\n* Add 2 x 2tb drives:<br \/>\n\u2013 Hitachi 2TB, SN YGGXJ0EB<br \/>\n\u2013 Hitachi 2TB, SN BFGD31BF<\/p>\n<span id=\"Create_Backup_Pool\"><h2>Create Backup Pool<\/h2><\/span>\n<p>* Find new disk device name from Freenas UI, Storage > View disks,<br \/>\n\/dev\/ada1 YGGXJ0EB<br \/>\n\/dev\/ada3 BFGD31BF<\/p>\n<p>* Create mirrored zpool from new drives<\/p>\n<pre lang=\"bash\">\r\n\/\/ Lable disks\r\nglabel label -v HTYGGXJ0EB \/dev\/ada1\r\nglabel label -v HTBFGD31BF \/dev\/ada3\r\n\r\n\/\/ Create new backup pool\r\nzpool create bakpool mirror \/dev\/label\/HTYGGXJ0EB \/dev\/label\/HTBFGD31BF\r\n<\/pre>\n<span id=\"Create_Snapshot\"><h2>Create Snapshot<\/h2><\/span>\n<pre lang=\"bash\">\r\n\/\/ Create snapshot\r\nzfs snapshot -r vol1@bak122522\r\n<\/pre>\n<span id=\"Replciate_Snapshot_to_New_Pool\"><h2>Replciate Snapshot to New Pool<\/h2><\/span>\n<pre lang=\"bash\">\r\n\/\/ Replicate to new pool\r\nzfs send -R vol1@bak122522 | pv | zfs receive -dF bakpool\r\n\r\n\/\/ List bakpool\r\nzfs list bakpool                                                                                                  \r\nbakpool  1.16T   613G    96K  \/bakpool\r\n<\/pre>\n<span id=\"Destroy_Snapshot_if_Needed\"><h2>Destroy Snapshot if Needed<\/h2><\/span>\n<pre lang=\"bash\">\r\n\/\/ Destroy snapshot\r\nzfs destroy -r vol1@bak122522\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Install New Disks * Shutdown freenas * Add 2 x 2tb drives: \u2013 Hitachi 2TB, SN YGGXJ0EB \u2013 Hitachi 2TB, SN BFGD31BF Create Backup Pool * Find new disk device name from Freenas UI, Storage > View disks, \/dev\/ada1 YGGXJ0EB &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=12894\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[859,861],"tags":[821,862],"class_list":["post-12894","post","type-post","status-publish","format-standard","hentry","category-nas","category-truenas","tag-nas","tag-truenas"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-3lY","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/12894","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12894"}],"version-history":[{"count":1,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/12894\/revisions"}],"predecessor-version":[{"id":12895,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/12894\/revisions\/12895"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}