[DRBD-user] Why "Diskless/UpToDate"? - But drbd works fine!

Ekkard Gerlach ekkardgerlach at aiai.de
Sun Sep 26 14:03:42 CEST 2010

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


Hi, 

haupt2:~# cat /proc/drbd
version: 8.0.11 (api:86/proto:86)
GIT-hash: b3fe2bdfd3b9f7c2f923186883eb9e2a0d3a5b1b build by phil at mescal, 2008-02-12 11:56:43
 0: cs:Connected st:Primary/Secondary ds:Diskless/UpToDate C r---
    ns:62936792 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
[...]

You see: Primary/Secondary ds:Diskless/UpToDate
Why is drbd0  "Diskless"? And why only on one machine? 

All works fine using heartbeat (since 2 years): takeover local, takeover all, etc.

haupt2:~# df
Dateisystem          1K-Blöcke   Benutzt Verfügbar Ben% Eingehängt auf
/dev/md0               9614052   1108888   8016796  13% /
tmpfs                  4089640         0   4089640   0% /lib/init/rw
udev                     10240       100     10140   1% /dev
tmpfs                  4089640         8   4089632   1% /dev/shm
[...]
/dev/drbd0            10320852   1868480   7928104  20% /var/lib/vservers/misc


After a takeover of first node "haupt1": 
=========================================

haupt1:~# cat /proc/drbd
version: 8.0.11 (api:86/proto:86)
GIT-hash: b3fe2bdfd3b9f7c2f923186883eb9e2a0d3a5b1b build by phil at mescal, 2008-02-12 11:56:43
 0: cs:Connected st:Primary/Secondary ds:UpToDate/Diskless C r---
    ns:49629890 nr:62940912 dw:67179264 dr:51649873 al:237 bm:492 lo:93 pe:0 ua:0 ap:93
        resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0
        act_log: used:16/257 hits:16794672 misses:237 starving:0 dirty:0 changed:237
[...]

haupt1:~# df
Dateisystem          1K-Blöcke   Benutzt Verfügbar Ben% Eingehängt auf
/dev/md0               9614052   1581568   7544116  18% /
tmpfs                  4089832         0   4089832   0% /lib/init/rw
udev                     10240        96     10144   1% /dev
tmpfs                  4089832         8   4089824   1% /dev/shm
/dev/mapper/vg--haupt1-var--cache
                       2064208    382552   1576800  20% /var/cache
/dev/mapper/vg--haupt1-var--log
                       5160576   2461376   2437056  51% /var/log
[...]
/dev/drbd0            10320852   1868508   7928076  20% /var/lib/vservers/misc


I looked in /var/lib/vservers/misc/var/spool/cups  . All recent files were there. 
Thats the proof  DRBD is working. 

Is "Diskless" a hoax? 

thx
Ekkard



More information about the drbd-user mailing list