Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi ! I have update DRBD from 8.2.5 to 8.3.0, and now additional information appears with drbdadm {role|cstate|dstate} when synchronization is in progress. [root at rh4-2 libsh]# echo ROLE; drbdadm -c ../etc/drbd.conf role drbd_res0; echo CSTATE; drbdadm -c ../etc/drbd.conf cstate drbd_res0; echo DSTATE; drbdadm -c ../etc/drbd.conf dstate drbd_res0; ../sbin/pretty-proc-drbd.sh ROLE Secondary/Secondary # (43) sync_progress = (integer) 83 [len: 4] CSTATE SyncTarget # (43) sync_progress = (integer) 83 [len: 4] DSTATE Inconsistent/UpToDate # (43) sync_progress = (integer) 83 [len: 4] drbd_res0 0: cs:SyncTarget ro:Secondary/Secondary ds:Inconsistent/UpToDate C r--- [>...................] sync'ed: 8.3% (63721/69457)M finish: 0:25:43 speed: 42,260 (31,920) K/sec drbd_res1 1: cs:Connected ro:Secondary/Primary ds:UpToDate/UpToDate C r--- drbd_res2 2: cs:Connected ro:Secondary/Secondary ds:UpToDate/UpToDate C r--- Is it normal ? What are these new information ? It seems to be the synchronization percentage but what is the right way to use them ? Is it "integer * 100 / (10^(len-1)" ? len: 4 => 1000 (integer) 83 => 83 83 * 100 /1000 = 8.3 Regards, -- Hervé GAUTIER