LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-06-2010, 04:00 AM   #1
Patric.F
LQ Newbie
 
Registered: Feb 2010
Posts: 24

Rep: Reputation: 0
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.

Last edited by Patric.F; 12-06-2010 at 04:07 AM.
 
Old 12-06-2010, 04:56 AM   #2
Patric.F
LQ Newbie
 
Registered: Feb 2010
Posts: 24

Original Poster
Rep: Reputation: 0
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?
 
Old 12-20-2010, 04:28 AM   #3
Patric.F
LQ Newbie
 
Registered: Feb 2010
Posts: 24

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Device already mounted or mount point busy with CentOS/corosync/pacemaker/DRBD aschoessler Linux - Server 1 04-02-2010 08:11 AM
how do I mount a new secondary IDE? sickwitted Linux - Hardware 3 08-30-2009 09:09 PM
Unable to mount a secondary HD Tom "Techno" Earl Linux - Hardware 12 10-19-2007 09:54 AM
Mount secondary HDD cdc5205 Linux - Newbie 11 01-25-2006 09:47 PM
mount secondary hdd martinez9049 Linux - Newbie 13 04-22-2005 09:59 PM


All times are GMT -5. The time now is 11:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration