[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] Trouble with /var/lib/libvirt/qemu/save mount



On Wed, Jul 12, 2017 at 10:11:34AM -0600, Orion Poplawski wrote:
> I'm trying to get libvirt-guests ON_SHUTDOWN=suspend to work on EL7 with a
> separate mount point for /var/lib/libvirt/qemu/save.  It appears that during
> host shutdown that /var/lib/libvirt/qemu/save gets unmounted before
> libvirt-guests gets run, resulting in the save images running out of space on
> my system and being mounted over on boot.
> 
> I've tried adding:
> 
> RequiresMountsFor=/var/lib/libvirt/qemu/save
> 
> to /usr/lib/systemd/system/libvirt-guests.service, but that does not appear to
> help.  Any other ideas?

Each mount point has a corresponding unit file. eg

 /mnt/Downloads corresponds to  mnt-Downloads.mount

so you can put a dependancy between the lbivirt-guests.service
and the mount unit, that ought to prevent it being unmounted

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]