{"id":5724,"date":"2021-05-04T17:33:34","date_gmt":"2021-05-04T17:33:34","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=5724"},"modified":"2023-10-20T12:14:03","modified_gmt":"2023-10-20T12:14:03","slug":"restore-zfs-pool-and-storage-data-after-a-system-re-install","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2021\/05\/04\/restore-zfs-pool-and-storage-data-after-a-system-re-install\/","title":{"rendered":"Restore ZFS Pool and storage data after a system re-install"},"content":{"rendered":"\n<p>The original installation of zpool was from a POPOS 20 install. After Installing a new Ubuntu system over the top of POPOS, the zpool was not listed. Here are the steps to restore the zpool.<\/p>\n\n\n\n<p>Install zfsutils<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n sudo apt install zfsutils-linux\n<\/pre><\/div>\n\n\n<p>Make a directory<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n cd \/\nsudo mkdir myzpool\n<\/pre><\/div>\n\n\n<p>When trying to import, I received a notice:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo zpool import\nsudo zpool import\n   pool: myzpool\n     id: 13464327419314907931\n  state: ONLINE\nstatus: The pool was last accessed by another system.\n action: The pool can be imported using its name or numeric identifier and\n        the &#039;-f&#039; flag.\n   see: https:\/\/openzfs.github.io\/openzfs-docs\/msg\/ZFS-8000-EY\n config:\n\n        myzpool                                         ONLINE\n          mirror-0                                      ONLINE\n            ata-WDC_WD2002FFSX-68PF8N0_WD-WCC6N7PRY8JJ  ONLINE\n            ata-WDC_WD2002FFSX-68PF8N0_WD-WCC6N7PRY1VJ  ONLINE\n\n<\/pre><\/div>\n\n\n<p>Import using the -f flag and the pool name that was created originally.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo  zpool import -f myzpool\n<\/pre><\/div>\n\n\n<p>Resources:<\/p>\n\n\n\n<p><a href=\"https:\/\/openzfs.github.io\/openzfs-docs\/msg\/ZFS-8000-EY\/\">https:\/\/openzfs.github.io\/openzfs-docs\/msg\/ZFS-8000-EY\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The original installation of zpool was from a POPOS 20 install. After Installing a new Ubuntu system over the top of POPOS, the zpool was not listed. Here are the steps to restore the zpool. Install zfsutils Make a directory When trying to import, I received a notice: Import using the -f flag and the &#8230; <a title=\"Restore ZFS Pool and storage data after a system re-install\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2021\/05\/04\/restore-zfs-pool-and-storage-data-after-a-system-re-install\/\" aria-label=\"Read more about Restore ZFS Pool and storage data after a system re-install\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-5724","post","type-post","status-publish","format-standard","hentry","category-administration"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/5724","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=5724"}],"version-history":[{"count":2,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/5724\/revisions"}],"predecessor-version":[{"id":8952,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/5724\/revisions\/8952"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=5724"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=5724"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=5724"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}