LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-08-2010, 08:16 AM   #1
azard
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Rep: Reputation: 0
Mounting lvm2


Hi,
I have just reinstalled Centos 5.3 on a new harddisk. I would like to copy some files from another harddisk which is also install with Centos 5.3. I have followed some guide in the internet but failed to mount the old harddisk. I got "unknown filesystem type 'lvm2pv'" error when trying to mount /dev/sdb2. Can anyone help me? Thanks



Details:

[root@ihqtmp ~]# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x35353535

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 514048+ 83 Linux
/dev/sda2 65 9729 77634112+ 8e Linux LVM

Disk /dev/dm-0: 76.3 GB, 76302778368 bytes
255 heads, 63 sectors/track, 9276 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 3154 MB, 3154116608 bytes
255 heads, 63 sectors/track, 383 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x35353535

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 64 514048+ 83 Linux
/dev/sdb2 65 9729 77634112+ 8e Linux LVM
[root@ihqtmp ~]#

[root@ihqtmp ~]# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
Found volume group "VolGroup00" using metadata type lvm2
[root@ihqtmp ~]#

[root@ihqtmp ~]# pvscan
PV /dev/sdb2 VG VolGroup00 lvm2 [74.03 GB / 0 free]
PV /dev/sda2 VG VolGroup00 lvm2 [74.03 GB / 32.00 MB free]
Total: 2 [148.06 GB] / in use: 2 [148.06 GB] / in no VG: 0 [0 ]
[root@ihqtmp ~]#
 
Old 03-08-2010, 08:45 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
You have two volume groups using the same name.
Have you tried booting from the old install and copying the files out of the LVM ?
Then you should be able to mount a normal drive and access the files.

or read this :
http://www.linuxquestions.org/questi...-to-do-375928/

Last edited by smoker; 03-08-2010 at 08:47 AM.
 
Old 03-08-2010, 09:26 PM   #3
azard
LQ Newbie
 
Registered: Jan 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for the reply smoker. Followed your second suggestion and it fine now. Thanks again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting LUKS encrypted drive from a failed pc: LVM2 error klearview Linux - Software 1 10-31-2008 03:34 AM
lvm2 sarhang Linux - Newbie 1 01-30-2008 05:23 PM
How To Lvm2 shahz Red Hat 2 04-22-2007 11:49 PM
Lvm2 fakie_flip Linux - Software 3 08-07-2006 08:05 AM
Using LVM2 chandru.in Linux - Hardware 0 08-30-2005 07:33 AM


All times are GMT -5. The time now is 02:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration