i want to recover old files from server to new disk
http://www.chrysocome.net/explore2fs - use explore2fs to read data
reference: http://www.coderchris.com/linux/how-to-mount-a-linux-lvm2-partition-in-windows/2008/02/10 and google
updates: this software not works. i'm using vmware player with centos and mount using this
To mount xen guest image (with lvm)
1. Check the partition on the image
# fdisk -lu /path/to/image
2. You have to install kpartx to handle lvm partiton
# yum install kpartx
3. Run kpartx on the image
# kpartx -av /path/to/image
4. Run vgscan to scan volume group available
# vgscan
5. Run vgchange to activate the volume group in the image
# vgchange -ay VolGroup00
6. Use lvs to see what is the name of your low volume group
# lvs
7. Mount the low volume group
# mount /dev/VolGroup00/LogVol01 /mnt
8. You can access your lvm image at the mounted directory which is /mnt
9. To unmount it, a few commands have to be executed (umount for unmounting, vgchange -an to deactivate volume group, kpartx -d to delete device map and losetup -d to delete loop device used)
# umount /mnt/
reference: http://linuxwave.blogspot.com/2008/02/accessing-data-on-xen-lvm-guest-image.html
No comments:
Post a Comment