Re: virtual machine won't autostart when using LVM with cache

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

 



thanks, but issue remains the same

vi /usr/lib/systemd/system/libvirtd.service

[Unit]
Description=Virtualization daemon
Before=libvirt-guests.service
After=network.target
After=dbus.service
After=iscsid.service
After=apparmor.service
After=local-fs.target
After=remote-fs.target
After=lvm2-monitor.service


Mar 21 21:08:11 brutus-coreos dnsmasq-dhcp[1168]: read /var/lib/libvirt/dnsmasq/default.hostsfile
Mar 21 21:08:11 brutus-coreos libvirtd[989]: Cannot access storage file '/dev/hdd/windata1' (as uid:107, gid:107): No such file or directory





David Hlacik
 
+420-777-307-745 | david@xxxxxxxxx

 View David Hlacik's profile on LinkedIn

On Mon, Mar 21, 2016 at 7:19 PM, Cole Robinson <crobinso@xxxxxxxxxx> wrote:
On 03/21/2016 12:28 PM, David Hlacik wrote:
> Hello guys,
>
> OS Fedora 23 with latest updates
>
> Recently I have switched to use LVM cache feature on logical volume
> /dev/hdd/windata1 to improve it performace using 32GB partition from SSD disk.
>
> However, when my computer will start, my virtual machine won't autostart
>
> Mar 21 10:48:57 brutus-coreos libvirtd[956]: Cannot access storage file
> '/dev/hdd/windata1' (as uid:107, gid:107): No such file or directory
> Mar 21 10:48:57 brutus-coreos libvirtd[956]: Failed to autostart VM 'winos1':
> Cannot access storage file '/dev/hdd/windata1' (as uid:107, gid:107): No such
> file or directory
> Mar 21 10:48:57 brutus-coreos libvirtd[956]: Cannot access storage file
> '/dev/hdd/windata1' (as uid:107, gid:107): No such file or directory
>
> It seems that when using LVM cache, one have to wait till it will inicialize?
>
> When I will manually start virtual machine afterwards, everything works OK :
>
> [root@brutus-coreos ~]# virsh start winos1
> Domain winos1 started
>
> I have tried to remove LVM cache from  /dev/hdd/windata1 and afterward
> autostart works! So it must be LVM cache related.
>
> Can you please help me to solve this ?
>
> Thanks in advance
>

Maybe override the system libvirtd unit file to wait for LVM. There's some
details here, but I didn't test it:

https://ask.fedoraproject.org/en/question/10419/how-to-start-a-systemd-unit-only-after-lvm-is-up/

- Cole


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]