LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   DRBD can't mount on Secondary (http://www.linuxquestions.org/questions/linux-server-73/drbd-cant-mount-on-secondary-848611/)

Patric.F 12-06-2010 04:00 AM

DRBD can't mount on Secondary
 
Hi!

I'm gonna set up a HA-cluster with the help of DRBD.
I have installed DRBD and it's working on the Primary node, I synced them and formated it to ext3 and mounted it successfully on the Primary.

When I'm gonna mount it on the Secondary node it just tells me that I need to specify a filesystem.. so it looks like is hasn't been synced properly or something but both nodes are up to date.

This is my drbd.conf:

Code:

global {
        usage-count no;
}

resource dbcluster {
  protocol C;

  syncer {
    rate 50M;
  }

  on dbcluster1 {
    device    /dev/drbd0;
    disk      /dev/sda3;
    address  10.0.0.201:7789;
    meta-disk  internal;
  }

  on dbcluster2 {
    device    /dev/drbd0;
    disk      /dev/sda3;
    address  10.0.0.202:7789;
    meta-disk  internal;
  }

}


dbcluster1 /proc/drbd:

Code:

version: 8.0.14 (api:86/proto:86)
GIT-hash: bb447522fc9a87d0069b7e14f0234911ebdab0f7 build by phil@fat-tyre, 2008-11-12 16:40:33
 0: cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate C r---
    ns:16165844 nr:0 dw:280872 dr:15917417 al:114 bm:965 lo:0 pe:0 ua:0 ap:0
        resync: used:0/61 hits:0 misses:0 starving:0 dirty:0 changed:0
        act_log: used:0/127 hits:70104 misses:221 starving:0 dirty:107 changed:114

dbcluster2 /proc/drbd:

Code:

version: 8.0.14 (api:86/proto:86)
GIT-hash: bb447522fc9a87d0069b7e14f0234911ebdab0f7 build by phil@fat-tyre, 2008-11-12 16:40:33
 0: cs:Connected st:Secondary/Primary ds:UpToDate/UpToDate C r---
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
        resync: used:0/61 hits:0 misses:0 starving:0 dirty:0 changed:0
        act_log: used:0/127 hits:0 misses:0 starving:0 dirty:0 changed:0

After the installation I ran
Code:

drbdadm -- --overwrite-data-of-peer primary all
on dbcluster1 to make it primary.
I also ran:
Code:

drbdadm create-md dbcluster
on both nodes to create the meta-data.

After all this I ran this on dbcluster1:
Code:

mkfs.ext3 /dev/drbd0
and could mount it without any problems on dbcluster1, but it doesn't work on dbcluster2.. according to the documentation and various howtos I'm suppose to be able to use it, mount it on both nodes etc. unless I've missed something.

Does anyone know if there is something else I need to do to get it running properly on the Secondary?

Thanks,
-Patric

EDIT:

I run Debian Lenny and I installed it from source with the help of module-assistant.

Patric.F 12-06-2010 04:56 AM

I have tried to invalidate the disk on both nodes so they'd get synced again but I still can't mount it on the secondary.. Even if I disconnect the Primary I can't mount the Secondary.

I've rebooted and everything, nothing works.

Any ideas?

Patric.F 12-20-2010 04:28 AM

Turns out you're not suppose to be able to mout the secondary, you let the cluster take care of that, so it was right all along :p


All times are GMT -5. The time now is 06:27 PM.