Skip to contentSkip to conversation

Mirror: write operations and consistency checking

linux-lvm vincent 2 participants 2 messages Jun 2, 2011 – Jun 3, 2011

lore
Share & tools
lore

vincent

author
#0 lore raw

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.

Thanks,

Vincent

#1 lore raw

It is safe to use a flash drive. The first generation flash drives had an endurance of only about 50,000 writes, but current devices test better than magnetic disks, lasting for about 51 years of continuous writes. Part of that is better chips. Part is that even inexpensive flash devices now have wear leveling, so it rotates blocks, not writing to the same physical block even if you write to the same logical block.

Signature · 2 lines
Ray Morris
Http://bettercgi.com
Quoted 32 lines · vincent

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?

Quoted 1 line

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.

Thanks,

Vincent

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/