[linux-lvm] Mirror: write operations and consistency checking
lvmml at vinvin.dyndns.org
Thu Jun 2 23:56:21 UTC 2011
Greeting LVM developers and users,
I've been using the LVM mirror on several LVs and for some time now,
using a core log. I'm tired of the resource intensive initialization on
each boot, and I'm considering using a flash device as the third disk
for the mirror's log.
My question is thus: are there some write operations happening onto the
log while there is no activity on the mirror's files? Is there some kind
of periodic background thread checking for the consistency of the mirror
and writing the status to the log, or is it safe to use a flash disk for
low activity mirrors?
>From what I understood, a bit is used on the log for each region
(512k-default) on the mirror. Does It means that if a 100M file is
written on the mirror, the log will be written 200 times on the same
block? Or is there a queue that holds log write operations and syncs
them to the log disk periodically to prevent that? That would be nice,
and even nicer if it was adjustable.
More information about the linux-lvm