Closed maxpain closed 1 month ago
It is expected, for thick LVM you can not assume that the copies are identical/read 0s, you get random old data, that is why a initial sync is necessary. LVM thin and both variants of ZFS give you 0s and there the initial sync can be skipped.
But default resync settings are very conservative so this may help to speed things up: https://kb.linbit.com/tuning-drbds-resync-controller
@rck Are there ways to wipe (fill with 0s) the block device on both sides instead of sending this garbage over the wire? It should be much faster.
as usual, "it depends". If you have local 0s, then this is rather efficient, then not every single 0 is sent, this is detected by DRBD and information is sent that there are that many 0s. and then there is trim and discard and what not.
with DRBD alone one could zero-out the local devices and intentionally skip initial sync, one might even have a use case where one is fine having different blocks in "uninteresting" areas. Unfortunately I don't know if LINSTOR has any properties to skip the initial sync on LVM thick or some strategies to locally wipe a LVM thick device and then skip. @rp- is there anything in that area?
No, there is currently no way to skip the initial LVM-thick sync
Hello. When I create a 1TB Persistent Volume backed by DRBD + LVM (thick), it takes about 2 hours to sync it to another replica. Is it expected behavior? I thought if this is a new empty volume, we don't need to sync it, right?
My configuration: