On 2008-09-15T17:06:08, Pan'ko Alexandr <[EMAIL PROTECTED]> wrote:
> Let's do commands:
>
> [EMAIL PROTECTED] /]# drbdadm primary repdata ; mount /dev/drbd0 /repdata
> [EMAIL PROTECTED] /]# dd if=/dev/urandom of=/repdata/test.file bs=1000000c
> count=1000; ip l set eth0 down;
> [EMAIL PROTECTED] /]# ls -l /repdata/test.file
> -rw-r--r-- 1 user users 1000000000 Sep 15 15:07 /repdata/test.file
There is no fsync() or fflush() call happening there. open/write/close
is not atomic, and may lag behind.
That's not a drbd issue, but the kernel caches are simply not flushed.
All applications which actually care about their data use fsync()
properly. The test case is not "valid" in that regard.
> SHOULD I turn off caching om ALL underling devices and filesystems to
> get HA cluster filesystem?
No. You should use proper test cases ;-)
Regards,
Lars
--
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems