On 11/18/06, <b class="gmail_sendername">Florin Iucha</b> <<a href="mailto:florin@iucha.net">florin@iucha.net</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>/dev/sda3 is a LVM physical module, so you cannot mount it directly.<br><br>Have you tried running "vgscan" first? It should scan the disks and<br>rebuild the device nodes.<br></blockquote></div><br>I agree with Florin. Once you run vgscan, you may need to activate the volume group:
<br><br># vgscan<br># vgchange -a y <volumegroup name><br># mount /dev/<VGname>/<lvolname> /mnt/dir<br><br>Then you should be able to access your filesystem(s).<br><br><br>For future reference, you might want to consider a layout such as this:
<br><br>/dev/[hs]da1 /boot (primary partition)<br>/dev/[hs]da2 swap (primary partition)<br>/dev/[hs]da3 / (primary partition)
<br>/dev/[hs]da4 LVM (primary partition)<br><br><br>/dev/[hs]da4 Consists of the following:<br><br>/dev/vg00<br>/dev/vg00/lvol1 /usr<br>/dev/vg00/lvol2 /var
<br>/dev/vg00/lvol3 /opt<br>/dev/vg00/lvol4 /tmp<br>/dev/vg00/lvol5 /home<br><br><br><br>A layout such as this allows you to mount your / partition via a rescue CD without having to perform all the vgscan/vgchange/etc steps mentioned above. Most times, you only need to access the / partition. But, if you need to access the others, then you can activate the VG.
<br><br>Your /boot and / paritions are not going to change over the life of the system, thus putting them and swap on primaries. After that, allocate the rest of your drive to LVM.<br><br>This is how I prefer to do my systems, and I haven't had an issue yet with this configuration.
<br clear="all"><br>-- <br>-Shawn<br><br>-Nemo me impune lacessit. Ne Obliviscaris.. <br>