-----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Thursday, January 16, 2014 8:58 PM To: Исаев Виталий Анатольевич Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] LVM mounting issue 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#) Be sure, that “unknown device” was not written by me :) I use libguestfs 1.16.34: [root@rhevh1 ~]# rpm -qa | grep guest libguestfs-1.16.34-2.el6.x86_64 libguestfs-winsupport-1.0-7.el6.x86_64 python-libguestfs-1.16.34-2.el6.x86_64 libguestfs-tools-c-1.16.34-2.el6.x86_64 Full trace of the guestfish session is attached to this message. Sincerely, Vitaly Isaev Software engineer Information security department Fintech JSC, Moscow, Russia