[DRBD-user] Strange problem with output of /proc/drbd

Bram Klein Gunnewiek bram at shockmedia.nl
Fri Jun 12 13:33:29 CEST 2015

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Version info:
version: 8.4.3 (api:1/proto:86-101)
srcversion: 6551AD2C98F533733BE558C

When /proc/drbd shows resync progress the progress for disks that are 
bigger then "a few gb" don't display a newline character after the size 
denomination (M). Smaller disks do show the newline. I checked the 
source code (latest but also 8.4.1 and 8.4.3) and afaik it should print 
a newline character (in function drbd_syncer_progress).

Is this a known bug or something realy specific to the verion ubuntu 
compiled? We are parsing the output and its pretty difficult to do this 
properly without a newline and/or space between 'M' and 'finish'.

Correct output:

  0: cs:VerifyS ro:Secondary/Secondary ds:UpToDate/UpToDate C r-----
     ns:0 nr:0 dw:0 dr:40376 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:f oos:0
     [>...................] verified:  8.6% (483912/524288)K
     finish: 0:02:35 speed: 3,104 (3,104) want: 5,640 K/sec

Wrong output (missing a newline):

  1: cs:VerifyS ro:Primary/Secondary ds:UpToDate/UpToDate C r-----
     ns:0 nr:0 dw:0 dr:25250432 al:0 bm:0 lo:64 pe:6175 ua:129 ap:0 ep:1 
wo:f oos:0
     [=============>......] verified: 72.0% (4016/14336)Mfinish: 0:01:36 
speed: 42,620 (42,604) want: 57,560 K/sec

-- 
Met vriendelijke groet / Kind regards,
Bram Klein Gunnewiek | Shock Media B.V.

Tel: +31 (0)546 - 714360
Fax: +31 (0)546 - 714361
Web: https://www.shockmedia.nl/




More information about the drbd-user mailing list