[DRBD-user] Can't shrink backing block device offline
Christophorus Reyhan
creyhanta at gmail.com
Fri Jul 16 10:53:10 CEST 2021
I appologize, I seem to made a big miscalculation on the size to
sectors, I think I should've divide size in Bytes (instead of KiB) with
512 Bytes to get the sectors.
So the correct calculation (if what I'm understanding is right) is this:
1.5 TiB = 1,610,612,736 KiB
1,610,612,736 KiB = 1,649,267,441,664 Bytes
1,649,267,441,664 Bytes / 512 bytes = 3,221,225,472 Sectors
Snet= 1,610,612,736 KiB - ((3,221,225,472 Sectors/32768 * 5 peers) +
1024KiB)
Snet= 1,610,612,736 KiB - (491,520 Sectors + 1024 KiB)
Snet= 1,610,612,736 KiB - (245,760 KiB + 1024 KiB)
Snet= 1,610,612,736 KiB - 246,784 KiB
Snet= 1,610,365,952 KiB = 1,608,793,329 MiB
Is this correct?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20210716/69a7363a/attachment.htm>
More information about the drbd-user
mailing list