{"id":4637,"date":"2019-11-23T12:16:29","date_gmt":"2019-11-23T12:16:29","guid":{"rendered":"http:\/\/wiki.davelevy.info\/?p=4637"},"modified":"2025-04-28T17:11:23","modified_gmt":"2025-04-28T17:11:23","slug":"raspberry-pi-and-lvm","status":"publish","type":"post","link":"https:\/\/davelevy.info\/wiki\/raspberry-pi-and-lvm\/","title":{"rendered":"Raspberry Pi and LVM"},"content":{"rendered":"\n<p>My NAS Box Fan has failed, I need to decide to repair or replace. One obvious answer is to use my &#8220;Pi&#8221; to serve out a pair of mirrored USB connected disks. How to do that on a PI? Here are my notes which I never implemented; basically I am using one of the cloud providers &#8230;<\/p>\n\n\n\n<!--more-->\n\n\n\n<ol class=\"wp-block-list\">\n<li>A <a href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?f=91&amp;t=257470&amp;p=1570399#p1570399\">thread by me<\/a> on the &#8216;Pi&#8217; community forums, common wisdom is to use rsync but I&#8217;d prefer a synchronous solution; @swampdog mentions LVM.<\/li>\n\n\n\n<li>This <a href=\"https:\/\/raspberrypi.stackexchange.com\/questions\/7159\/can-the-raspberry-boot-to-an-lvm-root-partition\">thread at stack exchange<\/a> talks about building an LVM solutions for booting a &#8216;Pi&#8217;.<\/li>\n\n\n\n<li>This <a href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?t=114354\">thread<\/a> at\u00a0the &#8216;Pi&#8217; community forums documents the installation runes, the package is called lvm2. i.e. sudo apt-get install lvm2<\/li>\n\n\n\n<li>Here&#8217;s <a href=\"https:\/\/mithunkumr.wordpress.com\/2012\/09\/26\/what-is-lvm-mirroring-steps-to-create-lvm-mirror-in-linux\/\">an article on how to<\/a> make a mirrored volume, most resources seem to be aimed at Red Hat, <a href=\"https:\/\/lmgtfy.com\/?q=creating+a+mirrored+volume+with+LVM\">For more from Google, &#8230;<\/a><\/li>\n\n\n\n<li>Here is a <a href=\"https:\/\/blog.agungpratama.id\/post\/2020-02-05-how-to-backup-and-clone-your-raspberry-pi-image\/\">how to<\/a> which came to my attention because it talks about snapshots.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>My NAS Box Fan has failed, I need to decide to repair or replace. One obvious answer is to use my &#8220;Pi&#8221; to serve out a pair of mirrored USB connected disks. How to do that on a PI? Here are my notes which I never implemented; basically I am using one of the cloud&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2842,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_share_on_mastodon":"0"},"categories":[8,3],"tags":[257,916,1372,994,1286,1630,911],"class_list":["post-4637","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-technology","tag-external-disk","tag-linux","tag-lvm","tag-raspberry-pi","tag-raspbian","tag-snapshot","tag-technology"],"share_on_mastodon":{"url":"","error":""},"jetpack_featured_media_url":"https:\/\/davelevy.info\/wiki\/wp-content\/uploads\/2016\/03\/Raspberry-Pi-Logo-w650.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/4637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/comments?post=4637"}],"version-history":[{"count":1,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/4637\/revisions"}],"predecessor-version":[{"id":12317,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/posts\/4637\/revisions\/12317"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media\/2842"}],"wp:attachment":[{"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/media?parent=4637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/categories?post=4637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davelevy.info\/wiki\/wp-json\/wp\/v2\/tags?post=4637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}