[Drbd-dev] 答复： Re: [PATCH] drbd: Support zeroout device instead of initial full sync
nwang at suse.com
Fri Aug 21 05:26:09 CEST 2015
> I still think this does not belong into the kernel at all.
> I may not yet have properly explained why.
Thanks for your information.
I tried blkdiscard on my test machine, but unfortunately the
underlying block device i used doesn't support discard...
(/sys/block/<dev>/queue/discard_max_bytes == 0)
However, i think blkscard could work well for SSDs and
thinly-provisioned support storage as a workaround.
> This is a lot of stuff to add to the DRBD module,
> introducing write protocol incompatibility/protocol version bump.
> For no good reason.
Yes, it is not a mandatory feature, more like a enhancement
"convenience patch" for some edge cases. User can choose
zeroout/discard devices via drbd tools, in case the storage
does not support discard, it will using zeroout instead of only
throw an "not support" error to output.
Implement this function to drbd also help to sync the status
between nodes, convenience for auto deploy or monitor by admin.
Also have the possibility to implement a resume broken
zeroout/discard in future.
And i can understand your concern and any decision, many thanks
for your and Philipp's help and review:)
More information about the drbd-dev