Richard W.M. Jones c8601acae1 daemon: Move lvmetad to early in the appliance boot process.
When the daemon starts up it creates a fresh (empty) LVM configuration
and starts up lvmetad (which depends on the LVM configuration).

However this appears to cause problems: Some types of PV seem to
require lvmetad and don't work without it
(https://bugzilla.redhat.com/show_bug.cgi?id=1581810).  If we don't
start lvmetad earlier, the device nodes are not created.

Therefore move the whole initialization step into appliance/init.

Two further changes had to be made:

Now we are using lvmetad all the time, using vgchange is incorrect.
With lvmetad activated early we must use ‘pvscan --cache --activate ay’
to scan all disks for PVs and activate any VGs on them (although the
documentation is complex, confusing and contradictory so I'm not
completely sure about this).

The ‘lvm_system_dir’ local variable in ‘daemon/lvm-filter.c’
previously contained the path of the directory above $LVM_SYSTEM_DIR
(eg. $LVM_SYSTEM_DIR = "/etc/lvm", lvm_system_dir = "/etc").  As this
was highly confusing, I have changed it so the local variable and the
environment variable have identical contents.  This involved removing
the ‘lvm/’ component from a couple of paths since it is now included
in the local variable.

(cherry picked from commit dd162d2cd5)
2018-06-29 10:33:38 +01:00
2018-01-04 15:30:10 +00:00
2018-01-04 15:30:10 +00:00
2018-01-04 15:30:10 +00:00
2018-01-04 15:30:10 +00:00
2018-02-07 18:38:13 +00:00
2018-05-01 17:45:20 +01:00
2018-01-04 15:30:10 +00:00
2018-01-04 15:30:10 +00:00
2018-01-04 15:30:10 +00:00
2018-01-04 15:30:10 +00:00
2018-01-04 15:30:10 +00:00
2018-01-04 15:30:10 +00:00
2018-05-15 09:07:59 +01:00
2018-01-04 15:30:10 +00:00
2018-01-04 15:30:10 +00:00
2018-01-04 15:30:10 +00:00
2018-05-15 14:26:25 +01:00
2018-05-15 14:26:25 +01:00
2018-01-04 15:30:10 +00:00
2018-01-04 15:30:10 +00:00
2018-01-04 15:30:10 +00:00
2018-05-01 17:45:02 +01:00
2018-01-04 15:30:10 +00:00
2018-01-04 15:30:10 +00:00
2013-01-24 15:00:49 +00:00
2018-05-15 14:26:25 +01:00
2017-01-26 15:05:46 +00:00
2018-05-15 14:26:25 +01:00
2018-02-09 09:39:00 +00:00
2018-01-04 15:30:10 +00:00
2018-01-04 15:30:10 +00:00
2018-05-15 14:26:25 +01:00
2018-01-04 15:30:10 +00:00
2016-02-10 14:15:05 +01:00

Libguestfs is tools and a library for accessing and modifying guest
disk images.  For more information see the home page:

  http://libguestfs.org/

For discussion, development, patches, etc. please use the mailing
list:

  http://www.redhat.com/mailman/listinfo/libguestfs

To find out how to build libguestfs from source, read:

  docs/guestfs-building.pod
  http://libguestfs.org/guestfs-building.1.html
  man docs/guestfs-building.1

Copyright (C) 2009-2018 Red Hat Inc.

The library is distributed under the LGPLv2+.  The programs are
distributed under the GPLv2+.  Please see the files COPYING and
COPYING.LIB for full license information.  The examples are under a
very liberal license.
Languages
C 42.7%
OCaml 35.5%
Shell 7.1%
Makefile 4%
Perl 2.6%
Other 8%