Quantcast
Channel: Proxmox Support Forum
Viewing all articles
Browse latest Browse all 170625

DRBD in HA

$
0
0
Hello,

I have two nodes in DRBD cluster.

The configuration is :

/etc/drbd.conf :

Code:

# You can find an example in  /usr/share/doc/drbd.../drbd.conf.example
 
include "drbd.d/global_common.conf";
include "drbd.d/*.res";

Global_common.conf:

Code:

global { usage-count no; }
common {
    protocol C;
    startup {
        degr-wfc-timeout 120;
#        become-primary-on proxmox001;
        become-primary-on both;
    }
    disk {
    }
    net {
        allow-two-primaries;
        after-sb-0pri discard-zero-changes;
        after-sb-1pri discard-secondary;
        after-sb-2pri disconnect;
    }
    syncer {
        verify-alg md5;
        rate 30M;
    }
}

R0.res :
Code:


resource r0 {
        protocol C;
        on proxmox001 {
                device /dev/drbd0;
                disk /dev/mapper/pve-lv_data;
                address 192.168.0.1:7788;
                meta-disk internal;
        }
        on proxmox002 {
                device /dev/drbd0;
                disk /dev/mapper/pve-lv_data;
                address 192.168.0.2:7788;
                meta-disk internal;
        }
}

When a physical host have a instability, I lost the drbd link.

In normal time, /proc/drbd :

Code:

GIT-hash: 83ca112086600faacab2f157bc5a9324f7bd7f77 build by root@proxmox001, 2013-04-24 12:55:32
 0: cs:Connected ro:Primary/Primary ds:UpToDate/UpToDate C r-----
    ns:421142 nr:55715 dw:8498959 dr:10994034 al:1144 bm:420 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b oos:0


And while an instability, /proc/drbd return :

Code:

cs:Standalone or cs:WFConnection st:Secondary/Unknown
And when I would restart DRBD Sync, I have an error with UpToDate or
Code:

ERROR: Module drbd is in use proxmox
For instant, the solution is to stop the running VM, restart the drbd services for each nodes and to do a sync. After this, Start the VMs which are stopped before.

Thanks per advance for your help !

Viewing all articles
Browse latest Browse all 170625

Trending Articles