{"id":174,"date":"2009-07-19T03:41:10","date_gmt":"2009-07-19T00:41:10","guid":{"rendered":"http:\/\/www.held.org.il\/blog\/?p=174"},"modified":"2009-07-19T03:41:10","modified_gmt":"2009-07-19T00:41:10","slug":"accessing-a-lvm-volumes-from-a-foreign-os","status":"publish","type":"post","link":"http:\/\/www.held.org.il\/blog\/2009\/07\/accessing-a-lvm-volumes-from-a-foreign-os\/","title":{"rendered":"Accessing a LVM volumes from a foreign OS"},"content":{"rendered":"<p>A lesson learned: in order to mount an <a href=\"http:\/\/en.wikipedia.org\/wiki\/Logical_Volume_Manager_(Linux)\">LVM<\/a> device on another machine or simply another OS (e.g., from within a live cd os, mount the local machine's volumes), the LVM volume group<strong> must be exported and then imported. <\/strong>This is done using the <em>vgexport \/ vgimport<\/em> commands.<\/p>\n<p>Another requirement, is to have lvm2 package installed (so <em>lvs<\/em> command actually sees the volumes), and device mapper module should be loaded (dm-mod) or builtin the kernel.<\/p>\n<p>Thanks for Amir who found that out.<\/p>\n<p>By the way, I've recently found the <em>dmsetup<\/em> command <strong>very<\/strong> useful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A lesson learned: in order to mount an LVM device on another machine or simply another OS (e.g., from within a live cd os, mount the local machine&#8217;s volumes), the LVM volume group must be exported and then imported. This is done using the vgexport \/ vgimport commands. Another requirement, is to have lvm2 package [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[75],"tags":[203,76,112],"_links":{"self":[{"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/posts\/174"}],"collection":[{"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/comments?post=174"}],"version-history":[{"count":0,"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/posts\/174\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/media?parent=174"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/categories?post=174"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.held.org.il\/blog\/wp-json\/wp\/v2\/tags?post=174"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}