Table of Contents

Distributed file system

Using a distributed file system

A distributed file system can be used on the local hard disks of a KVM host. In connection with KVM Glusterfs is a useful candidate.

Using a distributed file system can have the following advantages:

The live migration based on Glusterfs was already successfully tested.

For a distributed file system the use of a dedicated storage network is also recommended. In contradiction to iSCSI one instead of two additional network interfaces per host is sufficient.

The use of a distributed file system can have the following disadvantages:

Especially because of the additionally needed storage capacity and the complexity a distributed file system is often not used.

Using iSCSI

An alternative for a distributed file system is iSCSI. With iSCSI several KVM hosts access a common storage via a storage network.

Without an additional distributed file system it is of course also not possible that several KVM hosts write to the same file on the same iSCSI storage. But for the aim of the use of distributed storage - the live migration of virtual hosts - common write access is not necessary.

It is only necessary that several KVM hosts can write to the same storage consecutively. This works best on iSCSI in combination with LVM: LVM can block and unblock the access to virtual host images and makes sure that only one KVM host can write to the same image at a time. This works perfectly without distributed file system.

The prerequisites for a live migration using iSCSI are:

We dedicated a complete chapter to the topic KVM and iSCSI.

previous chapter | contents