Default to virtio system disks
authorMartin Schwenke <martin@meltin.net>
Mon, 28 Jul 2014 01:37:41 +0000 (11:37 +1000)
committerMartin Schwenke <martin@meltin.net>
Mon, 28 Jul 2014 01:37:41 +0000 (11:37 +1000)
The qcow2 + virtio + writeback problem seems to be fixed.

Signed-off-by: Martin Schwenke <martin@meltin.net>
README
config.d/00base.defconf

diff --git a/README b/README
index 96c98403b0f8b710f26d7a2725622d02f79ed5f2..73fb7a717ca752d6ec87590d8a930227746f83c7 100644 (file)
--- a/README
+++ b/README
@@ -440,6 +440,19 @@ Keep it simple
   CTDB cluster.  It is just extra node that can be used as a test
   client or similar.
 
+Corrupt system disks
+====================
+
+Recent versions of KVM seem to have fixed problems where the
+combination of qcow2 file format, virtio block devices and writeback
+caching would cause result in corrupt.  This means the default system
+disk bus type (a.k.a. SYSTEM_DISK_TYPE) is now virtio.
+
+If using an older version of KVM or if you experience corruption of
+the system disk, try using IDE system disks:
+
+  SYSTEM_DISK_TYPE=ide
+
 iSCSI shared disks
 ==================
 
@@ -476,13 +489,12 @@ cluster will need to have a different setting for ISCSI_TID.
 Raw IDE system disks
 ====================
 
-RHEL versions of KVM do not support the SCSI block device emulation,
-so autocluster now defaults to using an IDE system disk instead of a
-SCSI one.  Therefore, you can use virtio or ide system disks.
-However, writeback caching, qcow2 and virtio are incompatible and
-result in I/O corruption.  So, you can use either virtio system disks
-without any caching, accepting reduced performance, or you can use IDE
-system disks with writeback caching, with nice performance.
+Older RHEL versions of KVM did not support the SCSI block device
+emulation, and produced corruption when virtio disks were used with
+qcow2 disk images and writeback caching.  In this case, you can use
+either virtio system disks without any caching, accepting reduced
+performance, or you can use IDE system disks with writeback caching,
+with nice performance.
 
 For IDE disks, here are the required settings:
 
index e380fa9e99e11efa8fdc996bf408a11eefa67195..c93b456ede749cbc667358efda2d6cead2d89f28 100644 (file)
@@ -77,7 +77,7 @@ defconf BASE_TEMPLATES "$installdir/base" \
 defconf BASE_FORMAT "qcow2" \
        "<fmt>" "format to use for the qemu base images"
 
-defconf SYSTEM_DISK_TYPE "ide" \
+defconf SYSTEM_DISK_TYPE "virtio" \
        "scsi|ide|virtio" "type of disks to use in nodes"
 
 rhel_disk_prefix ()