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?
_______________________________________________
Star us on GITHUB: https://github.com/LINBIT
drbd-user mailing list
drbd-user@lists.linbit.com
https://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to