[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] guestfish emergency extension



On Tue, May 18, 2021 at 09:36:12AM +0200, Gottschalk wrote:
> Hello Mr. Jones,
> 
> we use guestfish 1.4

This version was released 11 years ago??

> we have an emergency of Data Recovery. We restored a ESXi 6.7 VMware-Image and
> wanted to read the data inside with guestfish.
> 
> The structure of the vm is based on LVM.
> 
> The first disk with the os inside a LV can be mounted correctly.
> 
> Two disks a 400GB are covered in a Volumegroup. There is one logical Volume
> with 800GB in this VG.
> 
> Guestfish does not read the filesystem in this LV.
> 
> I tried
> 
> ><fs>add disk1.vmdk
> 
> ><fs>add disk2.vmdk
> 
> ><fs>add disk3.vmdk
> 
> ><fs>run
> 
> ><fs>list-devices
> /dev/sda
> /dev/sdb
> /dev/sdc
> 
> ><fs>list-partitions
> /dev/sda1
> On sdb and sdc there are no partitions. The LV resides directly on these disks.
> I simulated  this with partitioned disks and identically result.
> 
> behavior without partitions on sdb and sdc
> ><fs> list-filesystems
> /dev/mailxxx-vg/root: ext4
> /dev/mailxxx-vg/swap_1: swap
> /dev/vmail-vg/vmail-lv: unknown
> 
> behavior with partitions on sdb and sdc
> ><fs> list-filesystems
> libguestfs: error: list_filesystems: parted exited with status 1: Error: Can't
> have a partition outside the disk!
> ><fs>
> 
> 
> ><fs>mount /dev/mailxxx-vg/root /
> works fine
> ><fs>mount/dev/vmail-vg/vmail-lv /
> libguestfs: error: mount: mount_stub: /dev/vmail-vg/vmail-lv: expecting a
> device name
> 
> How can i get access to this LV?
> Can you help me please?
> Thank you very much.

I would suggest enabling debugging to start with, which should give
you more information about what is actually going on.  This section of
the FAQ will explain how to do that:

https://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]