Re: [Libguestfs] LVM mounting issue

Richard W.M. Jones
Thu, 16 Jan 2014 16:00:37 -0000

On Thu, Jan 16, 2014 at 03:57:50PM +0000, Исаев Виталий Анатольевич
wrote:
> Hello, It's me again with one more misunderstanding of libguestfs
usage...
> Guestfish (as well as python libguestfs module) refuse to mount logical
volume containing the root partition of the VM's filesystem.
> According to this short
guide<http://rwmj.wordpress.com/2009/04/07/libguestfs-lvm-support/> I am
trying to mount /dev/vg_kojit/lv_root as "/", but nothing works:
>
> [root@rhevh1 integrity]#
> [root@rhevh1 integrity]#
> [root@rhevh1 integrity]#
> [root@rhevh1 integrity]# guestfish
>
> Welcome to guestfish, the libguestfs filesystem interactive shell for
> editing virtual machine filesystems.
>
> Type: 'help' for help on commands
>       'man' to read the manual
>       'quit' to quit the shell
>
> ><fs> add /dev/dm-40
> ><fs> run
> ><fs> inspect_os
> ><fs> pvs
> /dev/vda2
> unknown device

Hang on, "unknown device" is literally printed here?

Which version of libguestfs?

> ><fs> lvs
> /dev/vg_kojit/lv_root
> /dev/vg_kojit/lv_swap
> ><fs> mount /dev/vg_kojit/lv_root /
> libguestfs: error: mount: mount_stub: /dev/vg_kojit/lv_root: No such file
or directory

This could be a bug.

Can you add the -v -x options to guestfish and show us the complete,
unedited messages.

Rich.

--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)