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

Re: [libvirt] Safe? /etc/libvirt/qemu on shared storage?



On Fri, Oct 02, 2009 at 10:15:09AM +0200, James Brackinshaw wrote:
> Hello,
> 
> I have a directory /mnt/shared-storage where the disk files for kvm
> live. Live migration works well, but I have a problem: after a
> migration I see two guests, one on the original host "shutoff" and one
> on the new host "running".
> 
> I'd like to see the guest only on the host it is running on.
> 
> Would it be safe/recommended to put the /etc/libvirt/qemu directory on
> shared storage? What would the best way of doing this be?
> Is this lock safe?

Absolutely NOT safe. It is only intended for single host use

If you're going to have a cluster of hosts between which you can move
guests, you should really aim to store all your master configs elsewhere
in shared storage, and either use transient guests (which have no 
config in /etc/libvirt), or persistent guests and only have configs in
/etc/libvirt for the guests which happens to be running on that node

Using some kind of cluster management software is a good idea to safely
deal with this

Regards,
Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|


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