[DRBD-user] Setting Status in DRBD

Faria digolinopage at yahoo.com.br
Mon Aug 18 18:48:13 CEST 2008

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


Hello,

I have two servers :

#master
eth0 : 192.168.1.2
eth1 : 10.0.0.1 (crossover)

#slave
eth0 : 192.168.1.3
eth1 : 10.0.0.2  (crossover)

root at ubuntu-cluster1:~# cat /etc/drbd.conf
global {
  usage-count yes;
}
common {
  protocol C;
}
resource r0 {
  on ubuntu-cluster1 {
    device    /dev/drbd0;
    disk      /dev/sda4;
    address   10.0.0.1:7789;
    meta-disk internal;
  }
  on ubuntu-cluster2 {
    device    /dev/drbd0;
    disk      /dev/sdb4;
    address   10.0.0.2:7789;
    meta-disk internal;
  }
}

Step by step:

root at ubuntu-cluster2:~# cat /proc/drbd 
version: 8.2.6 (api:88/proto:86-88)
GIT-hash: 3e69822d3bb4920a8c1bfdf7d647169eba7d2eb4 build by root at ubuntu-cluster2, 2008-08-15 11:04:48

root at ubuntu-cluster2:~# drbdadm up all

root at ubuntu-cluster2:~# cat /proc/drbd 
version: 8.2.6 (api:88/proto:86-88)
GIT-hash: 3e69822d3bb4920a8c1bfdf7d647169eba7d2eb4 build by root at ubuntu-cluster2, 2008-08-15 11:04:48
 0: cs:StandAlone st:Secondary/Unknown ds:UpToDate/DUnknown   r---
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 oos:3799220

root at ubuntu-cluster1:~# cat /proc/drbd 
version: 8.2.6 (api:88/proto:86-88)
GIT-hash: 3e69822d3bb4920a8c1bfdf7d647169eba7d2eb4 build by root at ubuntu-cluster1, 2008-08-15 11:03:03

root at ubuntu-cluster1:~# drbdadm up all

root at ubuntu-cluster1:~# cat /proc/drbd 
version: 8.2.6 (api:88/proto:86-88)
GIT-hash: 3e69822d3bb4920a8c1bfdf7d647169eba7d2eb4 build by root at ubuntu-cluster1, 2008-08-15 11:03:03
 0: cs:WFConnection st:Secondary/Unknown ds:Inconsistent/DUnknown C r---
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 oos:3606444

Reading http://www.linux-ha.org/DRBD/FAQ, I learned 
the WFConnection means the device is waiting a configuration in other side, and StandAlone means the host not try the other host.

How I can to change this status ?

Ps : my network cable  (crossover )is Ok.

[]'s

Faria



      Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com.
http://br.new.mail.yahoo.com/addresses



More information about the drbd-user mailing list