[Libguestfs] [PATCH 4/5] daemon: lvm: list PVs/VGs/LVs with --foreign

Richard W.M. Jones rjones at redhat.com
Tue Jul 26 15:59:34 UTC 2016


On Tue, Jul 26, 2016 at 05:41:28PM +0200, Pino Toscano wrote:
> The appliance has no LVM system ID set, which means that lvm commands
> will ignore VGs with a system ID set to anything.  Since we want to work
> with them, pass --foreign at least when listing them to see them.
> 
> See also lvmsystemid(7).

This is sort of a hack, if I'm understanding correctly.  Can we not
instead give the appliance a "system ID"?

Also, lvm(8) says:

       --foreign
              Cause the command to access foreign VGs, that would otherwise be
              skipped.  It can be used to report or display a VG that is owned
              by  another  host.   This  option can cause a command to perform
              poorly because lvmetad caching is not used and metadata is  read
              from disks.

which sounds bad.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top




More information about the Libguestfs mailing list