<br><br><div class="gmail_quote">On Sat, Jan 8, 2011 at 7:17 PM, Johan Martinez <span dir="ltr"><<a href="mailto:jmartiee@gmail.com">jmartiee@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sat, Jan 8, 2011 at 3:50 PM, Lamar Owen <span dir="ltr"><<a href="mailto:lowen@pari.edu" target="_blank">lowen@pari.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Saturday, January 08, 2011 04:27:39 pm Johan Martinez wrote:<br>
<br>
> Now I am booting of CentOS live cd for system restore. I recreated<br>
> partitions like previous system using fdisk and then used dd to dump all the<br>
> data onto it. I would like to mount sda2 as LVM, but I don't know how to do<br>
> that. Any steps or howto mount LVM manually would be really helpful. I think<br>
> I can recover the system once I am able to access sda1 and sda2. Any help?<br>
<br>
</div>pvscan<br>
vgscan<br>
vgchange -ay<br>
lvscan<br>
<br>
(It has been awhile since I have done this; I know the vgchange -ay is required, but I don't recall if pvscan and lvscan were required or if I just used them for information....but I do think the vgscan was required.)<br>


<br>
In the lvscan output you should see the logical volumes; mount to the desired mountpoint with<br>
mount  /dev/VOLUMEGROUP/LOGICALVOLUME MOUNTPOINT<br>
<br>
Or you can reboot the CentOS disk in rescue mode and have it find your system as part of its bootup.  In that case your system will be mounted under /mnt/sysimage and you can do a 'chroot /mnt/sysimage' and essentially get a command line inside that system.<br>


<br>
Hope that helps.<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org" target="_blank">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</blockquote></div><br><div><br></div></div></div><div>Thanks for the reply Lamar and Robert. </div><div><br></div><div><div>I had tried pvscan and vgscan before sending out my first mail, but it didn't show up any physical volumes and vol grpups. </div>

<div><br></div><div>I didn't do lvscan though. </div></div><div><br></div><div>I will try again and see how it goes. </div><div><br></div><font color="#888888"><div>jM. </div><div><br></div></font></blockquote><div><br>
</div><div>I can see PVs sda1 and sda2 with pvscan, but they are not getting mounted as lvm. Also, I see sda2 listed as LVM although I didn't partition it that way. e.g. fdisk shows it as Linux type and pvscan is showing it as lvm2. That's somewhat confusing me. </div>
<div><br></div><div>Also, the real problem for me is recovery. I don't see LVM mounted after doing vgscan and lvscan. Am I missing something here? Any help?</div><div><br></div><div>Thanks you..</div><div>jM</div><div>
<br></div><div><br></div><div> </div></div><br>