]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Configure write cache option of tgtd iscsi driver
authorMitsuhiro Tanino <mitsuhiro.tanino@hds.com>
Tue, 8 Jul 2014 19:52:11 +0000 (15:52 -0400)
committerMitsuhiro Tanino <mitsuhiro.tanino@hds.com>
Tue, 8 Jul 2014 22:10:05 +0000 (18:10 -0400)
commit617e59bde660f919df0818611b911ae35f8b7247
tree7d6f9ee09fcbdedb32717600bfdc722090bc5d09
parent27536de4e03dbd6aa5415bf7c29b8db2629597e5
Configure write cache option of tgtd iscsi driver

Cinder LVMiSCSI driver is using default value of write-cache parameter
of tgtd iscsi driver. In this setting, write I/O from guest instance is
cached on dirty cache of a host.(write-back mode)

In this case, data lost may be occurred if the host crashes before
flushing dirty cache. This may cause a lot of instances to lose
their data.

In order to avoid this issue, it is better to turn off the write cache.
(write-through mode)

This patch adds "iscsi_write_cache" parameter to configure a behavior of
write cache. The default value is "iscsi_write_cache=on".(write-back mode)

Closes-Bug: 1336568
DocImpact

Change-Id: I7a495bc6118d4254576bdf1620a04ac537b3078d
Signed-off-by: Mitsuhiro Tanino <mitsuhiro.tanino@hds.com>
cinder/brick/iscsi/iscsi.py
cinder/tests/test_iscsi.py
cinder/volume/driver.py
cinder/volume/drivers/lvm.py
cinder/volume/iscsi.py
etc/cinder/cinder.conf.sample