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 ~]# |
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/ |
Thanks for the reply smoker. Followed your second suggestion and it fine now. Thanks again
|
All times are GMT -5. The time now is 06:43 AM. |