Oracle VM VirtualBox: Ticket #10059: Potential data loss due to disrespect of disk sync (SQLite)https://www.virtualbox.org/ticket/10059
<p>
<a class="wiki" href="https://www.virtualbox.org/wiki/VirtualBox">VirtualBox</a> 4.1.2 being tested with SQLite tests discovered that it disobeys disk sync requests, which can result in data loss. Details here:
</p>
<p>
<a class="ext-link" href="http://www.phoronix.com/scan.php?page=article&amp;item=ubuntu_1110_xenkvm&amp;num=7"><span class="icon"> </span>http://www.phoronix.com/scan.php?page=article&amp;item=ubuntu_1110_xenkvm&amp;num=7</a>
</p>
<p>
-Technologov, 21.12.2011.
</p>
en-usOracle VM VirtualBox/graphics/vbox_logo2_gradient.pnghttps://www.virtualbox.org/ticket/10059
Trac 0.12aeichnerWed, 21 Dec 2011 11:51:24 GMTpriority changedhttps://www.virtualbox.org/ticket/10059#comment:1
https://www.virtualbox.org/ticket/10059#comment:1
<ul>
<li><strong>priority</strong>
changed from <em>critical</em> to <em>minor</em>
</li>
</ul>
<p>
That depends on the VM configuration the author used for the VM. With the default configuration for Linux guests the VM would have a SATA controller with the host I/O cache disabled which passes sync requests to the underlying disk.
If the author enabled the host I/O cache however VBox ignores flush requests but it is impossible to say what the author used because the article neither contains the complete configuration nor logs from the run and he didn't contact us as far as I know.
</p>
<p>
Btw. the behavior can be changed and is documented in the user manual:
<a href="https://www.virtualbox.org/manual/ch12.html#idp12758688">https://www.virtualbox.org/manual/ch12.html#idp12758688</a>
</p>
TicketklausWed, 21 Dec 2011 12:25:47 GMTstatus changed; resolution sethttps://www.virtualbox.org/ticket/10059#comment:2
https://www.virtualbox.org/ticket/10059#comment:2
<ul>
<li><strong>status</strong>
changed from <em>new</em> to <em>closed</em>
</li>
<li><strong>resolution</strong>
set to <em>invalid</em>
</li>
</ul>
<p>
This is behaving as documented in the manual. If the phoronix guys want different behavior they can get it, and they should have found it by now...
</p>
<p>
<a class="wiki" href="https://www.virtualbox.org/wiki/VirtualBox">VirtualBox</a> has a true advantage here, being a type 2 hypervisor. If one assumes that the host OS won't crash then the disk sync can be ignored without data loss.
</p>
Ticket