PDA

View Full Version : LVM on two disks



puttefnask
21st August 2009, 09:29 PM
After a motherboard crash I have a problem. i have a LVM2 partition that is placed on 2 different physical disks that i need to read.

Since I am pretty new to Linux/Fedora a friend helped me to install the system on my old system so i am not sure if the disk is formatted as ext2,ext3 or xfs

How do I mount these 2 disks to be able to read the files?

when i run fdisk -l I got:

Disk /dev/sdf: 120,0 GB, 120034123776 byte
255 huvuden, 63 sektorer/spår, 14593 cylindrar
Enheter = cylindrar av 16065 · 512 = 8225280 byte
Diskidentifierare: 0x17cfcbe2

Enhet Start Början **** Block Id System
/dev/sdf1 * 1 25 200781 83 Linux
/dev/sdf2 26 14593 117017460 8e Linux LVM

Gödel
22nd August 2009, 01:05 AM
you only have one disk listed there.

Usually you'd just run vgscan (as root), then 'vgchange -ay' to activate the lvm volume group, and mount it on /dev/mapper/VolGroupxx-LogVolyy, or /dev/VolGroupxx/LogVolyy

eg, I can do (as root)

mkdir /mnt/disk
mount /dev/mapper/VolGroup-LogVol00 /mnt/disk

puttefnask
24th August 2009, 08:07 PM
Thank to your answer I found out that one of my SATA to Usb converters didnt work. I borrowed another and problem solved.

I also needed the line

#vgchange -ay VolGroup00

:)