Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   kenerl level cache flushing (http://www.linux-archive.org/debian-user/309414-kenerl-level-cache-flushing.html)

T o n g 01-14-2010 07:46 PM

kenerl level cache flushing
 
Hi,

I'm having problem flushing cache cleanly to disk -- I'm trying to have
KVM directly access my real HD. Theoretically speaking, if I only allow
one system (host or guest) to access the partition at a time, it would be
safe, right?

This is how I do:

- mount the partition in host
- update the partition in host
- umount the partition in host
- run 'sync; sync; sync' many times in host
- start kvm
- try access/update the partition in kvm guest

The procedure looks fine to me, but it never works. If launching windoze,
the windoze complains that the recently updated part is not accessible.
If using linux guests, the guest access/update the partition fine, but
after stopping kvm, I get a corrupted partition.

So I'm wondering if there is some kenerl level cache that I need to flush
as well, or something else?

Please help.
Thanks

--
Tong (remove underscore(s) to reply)
http://xpt.sourceforge.net/techdocs/
http://xpt.sourceforge.net/tools/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


All times are GMT. The time now is 10:28 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.