[Libguestfs] LVM mounting issue

Исаев Виталий Анатольевич isaev at fintech.ru
Thu Jan 16 15:57:50 UTC 2014


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 at rhevh1 integrity]#
[root at rhevh1 integrity]#
[root at rhevh1 integrity]#
[root at 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
><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
><fs>
><fs>

The actual information about VM's block devices can be seen on the screenshot attached to this message. I would be grateful for your help
Sincerely,

Vitaly Isaev
Software engineer
Information security department
Fintech JSC, Moscow, Russia

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20140116/421c6550/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvm_virtual_machine_is_running_OK.jpg
Type: image/jpeg
Size: 132692 bytes
Desc: lvm_virtual_machine_is_running_OK.jpg
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20140116/421c6550/attachment.jpg>


More information about the Libguestfs mailing list