Sunday, February 14, 2010

Accessing Fedora LVM in Ubuntu

Scenario:While trying to mount a LVM created in fedora on UBUNTU,you might get an error like"Unknown filesystem type"
STEP 1:
Install the following package,
[root@localhost ~]#apt-get install lvm2
STEP 2:
Load the necessary module,
[root@localhost ~]#modprobe dm-mod
STEP 3:
Scan your system for LVM volumes and identify in the output the volume group name that has your Fedora volume (mine proved to be VolGroup00):
[root@localhost ~]#vgscan
STEP 4:
Activate the volume
[root@localhost ~]#vgchange -ay VolGroup00
STEP 5:
Find the logical volume that has your Fedora root filesystem (mine proved to be LogVol00):
[root@localhost ~]#lvs
STEP 6:
Create a mount point for that volume:
[root@localhost ~]#mkdir /mnt/data
STEP 7:
Mount it:
[root@localhost ~]#mount /dev/VolGroup00/LogVol00 /mnt/data

Now copy the datas

No comments: