TWSD-325: VA configuration wipeout when abrupt disruption of power

Review Request #653 — Created Feb. 13, 2025 and updated — Latest diff uploaded

wli
AVX2
avx_2_7_3
346
peteryeh, timlai

implement method to change vdisk cache mode. This will help to reduce unnecessary data lose during power outage.

sBb.DyyjFB(config)#va diskcache "va01" "system" "none"
The VA(va01) system disk cache type has been changed to none

sBb.DyyjFB(config)#va diskcache "va01" "system" "writeback"
The VA(va01) system disk cache type has been changed to writeback

sBb.DyyjFB(config)#

Check configure file under /var/array/va/conf/va01.xml. The cache attribute should be changed accrodingly.

<emulator>/usr/libexec/qemu-kvm</emulator>
<disk type="file" device="disk">
  <driver name="qemu" type="qcow2" cache="writeback"/>
  <source file="/var/array/va/images/va01/Rel_APV_10_7_0_16.qcow2"/>
  <target dev="hda" bus="ide"/>
</disk>
    Loading...