<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hello,</div><div><br></div><div>&nbsp; in our computing centre we have an infrastructure with a GlusterFS volume made of two bricks in replicated mode:</div><div><br></div><div><br></div><div><div>Volume Name: VmDir</div><div>Type: Replicate</div><div>Volume ID: 9aab85df-505c-460a-9e5b-381b1bf3c030</div><div>Status: Started</div><div>Number of Bricks: 1 x 2 = 2</div><div>Transport-type: tcp</div><div>Bricks:</div><div>Brick1: one-san-01:/bricks/VmDir01</div><div>Brick2: one-san-02:/bricks/VmDir02</div></div><div><br></div><div><br></div><div>We are using this volume to store running images of some KVM virtual machines and thought we could benefit from the replicated storage in order to achieve more robustness as well as the ability to live-migrate VMs.</div><div><br></div><div>Our GlusterFS volume VmDir is mounted on several (three at the moment) hypervisors.</div><div><br></div><div>However, in many cases (but it is difficult to reproduce: best way is to stress VM I/O), either when one brick becomes unavailable for some reason, or when we perform live migrations, virtual machines decide to remount filesystems from their virtual disks in read-only. At the same time, on the hypervisors mounting the GlusterFS partitions, we spot some kernel messages like:</div><div><br></div><div><br></div><div>&nbsp; INFO: task kvm:13560 blocked for more than 120 seconds.</div><div><br></div><div><br></div><div>By googling it I have found some "workarounds" to mitigate this problem, like mounting disks within virtual machines with barrier=0:</div><div><br></div><div>&nbsp;&nbsp;<a href="http://invalidlogic.com/2012/04/28/ubuntu-precise-on-xenserver-disk-errors/">http://invalidlogic.com/2012/04/28/ubuntu-precise-on-xenserver-disk-errors/</a></div><div><br></div><div>but I actually fear to damage my virtual machine disks by doing such a thing!</div><div><br></div><div>AFAIK from GlusterFS v3.3 self-healing should be performed server-side (and no self-healing at all is performed on the clients and by granularly locking big files). When I connect to my GlusterFS pool, if I monitor the self-healing status continuously:</div><div><br></div><div>watch -n1 'gluster volume heal VmDir info'</div><div><br></div><div>I obtain an output like:</div><div><br></div><div><br></div><div><div>Heal operation on volume VmDir has been successful</div><div><br></div><div>Brick one-san-01:/bricks/VmDir01</div><div>Number of entries: 2</div><div>/1814/images/disk.0</div><div>/1816/images/disk.0</div><div><br></div><div>Brick one-san-02:/bricks/VmDir02</div><div>Number of entries: 2</div><div>/1816/images/disk.0</div><div>/1814/images/disk.0</div></div><div><br></div><div><br></div><div>with a list of virtual machine disks healed by GlusterFS. Those and other files continuously appear and disappear from the list.</div><div><br></div><div>This is a behavior I don't understand at all: does this mean that those files continuously get corrupted and healed, and self-healing is just a natural part of the replication process?! Or some kind of corruption is actually happening on our virtual disks for some reason? Is this related to the "remount readonly" problem?</div><div><br></div><div>A more general question maybe would be: is GlusterFS v3.3 ready for storing running virtual machines (and is there some special configuration option needed on the volumes and clients for that)?</div><div><br></div>Thank you in advance for shedding some light...<div><br></div><div>Regards,<br><div apple-content-edited="true">

--<br>
: Dario Berzano<br>
: CERN PH-SFT &amp; Università di Torino (Italy)<br>
: Wiki: <a href="http://newton.ph.unito.it/~berzano">http://newton.ph.unito.it/~berzano</a><br>
: GPG: <a href="http://newton.ph.unito.it/~berzano/gpg">http://newton.ph.unito.it/~berzano/gpg</a></div></div></body></html>