{"id":664,"date":"2012-07-10T17:00:58","date_gmt":"2012-07-10T09:00:58","guid":{"rendered":"http:\/\/rmohan.com\/?p=664"},"modified":"2012-07-10T17:14:37","modified_gmt":"2012-07-10T09:14:37","slug":"how-to-make-livecd-detect-and-mount-lvm-partition","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=664","title":{"rendered":"How to make LiveCD detect and mount LVM partition?"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h2><span style=\"text-decoration: underline;\">Reestablish Volume Group<\/span><\/h2>\n<p>To tap into the volume group you wish to work with, make sure \/etc\/lvm\/lvm.conf filters are able to see the \/dev\/md? devices, and execute the following:<\/p>\n<p>[tempsrv] # vgscan<\/p>\n<p>Reading all physical volumes. This may take a while&#8230;<\/p>\n<p>Found volume group &#8220;rootvg&#8221; using metadata type lvm2<\/p>\n<p>&nbsp;<\/p>\n<p>which should display the volume group (here it is \u201crootvg\u201d)associated with an md device you enabled. Then, to make the logical volumes (LVs) available for mounting, execute the following:<\/p>\n<pre>[tempsrv] # vgchange -ay rootvg<\/pre>\n<h2><a name=\"Mount_the_Less_Mundane\"><\/a>Now Mount the Logical Volumes:<\/h2>\n<p>Now all you need do is mount the reestablished LVs. I find this an excellent time to make use of Bash:<\/p>\n<pre>[tempsrv] # for i in `ls \/dev\/rootvg`; do mount \/dev\/rootvg\/$i \/mnt\/$i; done;<\/pre>\n<p>Of course, you need to create the destination mount point before running the script.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;<\/p>\n<p> Reestablish Volume Group <\/p>\n<p>To tap into the volume group you wish to work with, make sure \/etc\/lvm\/lvm.conf filters are able to see the \/dev\/md? devices, and execute the following:<\/p>\n<p>[tempsrv] # vgscan<\/p>\n<p>Reading all physical volumes. This may take a while&#8230;<\/p>\n<p>Found volume group &#8220;rootvg&#8221; using metadata type lvm2<\/p>\n<p>&nbsp;<\/p>\n<p>which should display the [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/664"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=664"}],"version-history":[{"count":4,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/664\/revisions"}],"predecessor-version":[{"id":669,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/664\/revisions\/669"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}