[DRBD-user] syncing to disk

Lars Marowsky-Bree lmb at suse.de
Tue Mar 1 14:36:54 CET 2005

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On 2005-02-28T17:04:49, Scott Beck <sbeck at gossamer-threads.com> wrote:

> a. make partition primary, so /proc/drbd is in state Primary/Unknown
> b. mount partition
> c. copy linux src tree to partition
> d. hard reboot.

Nowhere in the steps a-c you are forcing the filesystem or buffer cache
to sync the data. Add a manual "sync" call, or modify cp to call fsync()
just before closing each file. Otherwise, the behaviour you are seeing
is perfectly legal, and has nothing to do with drbd - it's happening in
the layers above.


Sincerely,
    Lars Marowsky-Brée <lmb at suse.de>

-- 
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business




More information about the drbd-user mailing list