O'Reilly logo

KVM Virtualization Cookbook by Konstantin Ivanov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

To migrate a KVM guest using a shared GlusterFS backend store, run the following:

  1. On both servers that will host the shared volumes, install GlusterFS:
root@glusterfs1/2:~# apt-get update && apt-get install glusterfs-server

 

 

  1. From one of the GlusterFS nodes, probe the other in order to form a cluster:
root@glusterfs1:~# gluster peer statuspeer status: No peers presentroot@glusterfs1:~# gluster peer probe glusterfs2peer probe: successroot@glusterfs1:~#
  1. Verify that the GlusterFS nodes are aware of each other:
root@glusterfs1:~# gluster peer statusNumber of Peers: 1Hostname: glusterfs2Port: 24007Uuid: 923d152d-df3b-4dfd-9def-18dbebf2b76aState: Peer in Cluster (Connected)root@glusterfs1:~#
  1. On both GlusterFS hosts, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required