{"id":17,"date":"2014-10-10T12:25:57","date_gmt":"2014-10-10T15:25:57","guid":{"rendered":"http:\/\/init.net.br\/blog\/?p=17"},"modified":"2020-01-23T10:16:36","modified_gmt":"2020-01-23T13:16:36","slug":"mountando-particao-lvm","status":"publish","type":"post","link":"https:\/\/blog.init.net.br\/?p=17","title":{"rendered":"Mountando parti\u00e7\u00e3o LVM"},"content":{"rendered":"<p>1. Get a live cd, for example, Ubuntu. For this article, I use Ubuntu 6.06 (I cannot find any latest version of ubuntu at my place)<\/p>\n<p>2. Boot using the live cd. Search for these tools: lvm2. If the cd do not have it, install it.<\/p>\n<pre><span style=\"color: #ff0000;\"># apt-get install lvm2<\/span><\/pre>\n<p>3. To make sure the harddisk is recognised, you can use fdisk<\/p>\n<pre><span style=\"color: #ff0000;\"># fdisk -lu<\/span><\/pre>\n<p>4. Once installed, run pvscan to scan all disks for physical volume. this to make sure your LVM harddisk is detected by Ubuntu<\/p>\n<pre><span style=\"color: #ff0000;\"># pvscan <\/pre>\n<pre><span style=\"color: #000000;\">PV \/dev\/sda2 VG VolGroup00 lvm2 [74.41 GB \/ 32.00 MB free]<\/span>\r\n<span style=\"color: #000000;\">Total: 1 [74.41 GB] \/ in use: 1 [74.41 GB] \/ in no VG: 0 [0 ]<\/span><\/pre>\n<p><\/span><br \/>\n5. After that run vgscan to scan disks for volume groups.<\/p>\n<pre><span style=\"color: #ff0000;\"># vgscan<\/span>\r\nReading all physical volumes. This may take a while...\r\nFound volume group \"VolGroup00\" using metadata type lvm2<\/pre>\n<p>6. Activate all volume groups available.<\/p>\n<pre><span style=\"color: #ff0000;\"># vgchange -a y<\/span><\/pre>\n<p>2 logical volume(s) in volume group &#8220;VolGroup00&#8221; now active<\/p>\n<p>7. Run lvscan to scan all disks for logical volume. You can see partitions inside the hard disk now active.<\/p>\n<pre><span style=\"color: #ff0000;\"># lvscan<\/span>\r\nACTIVE '\/dev\/VolGroup00\/LogVol00' [72.44 GB] inherit\r\nACTIVE '\/dev\/VolGroup00\/LogVol01' [1.94 GB] inherit<\/pre>\n<p>8. Mount the partition to any directory you want, usually to \/mnt<\/p>\n<pre><span style=\"color: #ff0000;\"># mount \/dev\/VolGroup00\/LogVol00 \/mnt<\/span><\/pre>\n<p>9. You can access the partition in the \/mnt directory and can backup your data<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Get a live cd, for example, Ubuntu. For this article, I use Ubuntu 6.06 (I cannot find any latest version of ubuntu at my place) 2. Boot using the live cd. Search for these tools: lvm2. If the cd do not have it, install it. # apt-get install lvm2 3. To make sure the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[10],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.init.net.br\/index.php?rest_route=\/wp\/v2\/posts\/17"}],"collection":[{"href":"https:\/\/blog.init.net.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.init.net.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.init.net.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.init.net.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17"}],"version-history":[{"count":12,"href":"https:\/\/blog.init.net.br\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions"}],"predecessor-version":[{"id":238,"href":"https:\/\/blog.init.net.br\/index.php?rest_route=\/wp\/v2\/posts\/17\/revisions\/238"}],"wp:attachment":[{"href":"https:\/\/blog.init.net.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.init.net.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.init.net.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}