View Single Post
  #8  
Old 12th August 2008, 17:33
Bart van Kleef Bart van Kleef is offline
Junior Member
 
Join Date: Aug 2008
Posts: 15
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Thanis, thanks again! The rare thing is, I get no error when I run "/etc/init.d/drbd start"

Code:
sproetjuh:~# /etc/init.d/drbd start
Starting DRBD resources:    [ ].
sproetjuh:~# /etc/init.d/drbd stop
Stopping all DRBD resources.
sproetjuh:~# /etc/init.d/drbd start
Starting DRBD resources:    [ d0 s0 n0 ].
Code:
kimmetjuh:~# /etc/init.d/drbd start
Starting DRBD resources:    [ ].
kimmetjuh:~# /etc/init.d/drbd stop
Stopping all DRBD resources.
kimmetjuh:~# /etc/init.d/drbd start
Starting DRBD resources:    [ d0 s0 n0 ].
And here are the configs:

Code:
sproetjuh:~# cat /etc/drbd.conf
resource vm1 {
  protocol C;
  incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f";
  startup {
    wfc-timeout  10;            # 10 seconds
    degr-wfc-timeout 30;    # 30 seconds
  }
  disk {
    on-io-error   detach;
  }
  net {
    max-buffers   20000;                # Play with this setting to achieve highest possible performance
    unplug-watermark   12000;           # Play with this setting to achieve highest possible performance
    max-epoch-size 20000;               # Should be the same as max-buffers
  }
  syncer {
    rate 10M;           # Use more if you have a Gigabit network. Speed is in Kylobytes. e.g.: 10M = 10Megabytes
    group 1;
    al-extents 257;
  }
  on sproetjuh {                # Use the EXACT hostname of your server as give by the command "uname -n"
    device     /dev/drbd0;              # drbd device ID
    disk       /dev/hda6;               # physical disk device , check your partitioning scheme !!
    address    192.168.1.13:7789;       # Fixed IP address of server1
    meta-disk  internal;                # I use internal metadata storage
  }
  on kimmetjuh {
    device     /dev/drbd0;
    disk       /dev/hda6;
    address    192.168.1.15:7789;
    meta-disk  internal;
  }
}
Code:
kimmetjuh:~# cat /etc/drbd.conf
resource vm1 {
  protocol C;
  incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f";
  startup {
    wfc-timeout  10;            # 10 seconds
    degr-wfc-timeout 30;    # 30 seconds
  }
  disk {
    on-io-error   detach;
  }
  net {
    max-buffers   20000;                # Play with this setting to achieve highest possible performance
    unplug-watermark   12000;           # Play with this setting to achieve highest possible performance
    max-epoch-size 20000;               # Should be the same as max-buffers
  }
  syncer {
    rate 10M;           # Use more if you have a Gigabit network. Speed is in Kylobytes. e.g.: 10M = 10Megabytes
    group 1;
    al-extents 257;
  }
  on sproetjuh {                # Use the EXACT hostname of your server as give by the command "uname -n"
    device     /dev/drbd0;              # drbd device ID
    disk       /dev/hda6;               # physical disk device , check your partitioning scheme !!
    address    192.168.1.13:7789;       # Fixed IP address of server1
    meta-disk  internal;                # I use internal metadata storage
  }
  on kimmetjuh {
    device     /dev/drbd0;
    disk       /dev/hda6;
    address    192.168.1.15:7789;
    meta-disk  internal;
  }
}
Code:
sproetjuh:~# cat /proc/drbd
version: 0.7.21 (api:79/proto:74)
SVN Revision: 2326 build by root@sproetjuh, 2008-08-11 23:40:44
 0: cs:Connected st:Secondary/Secondary ld:Consistent
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
Code:
kimmetjuh:~# cat /proc/drbd
version: 0.7.21 (api:79/proto:74)
SVN Revision: 2326 build by root@kimmetjuh, 2008-08-12 16:54:02
 0: cs:Connected st:Secondary/Secondary ld:Consistent
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
Code:
sproetjuh:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda5             4.5G  1.6G  2.7G  38% /
tmpfs                1015M     0 1015M   0% /lib/init/rw
udev                   10M   44K   10M   1% /dev
tmpfs                1015M     0 1015M   0% /dev/shm
/dev/hda1              92M   12M   75M  14% /boot
Code:
kimmetjuh:~# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda5             4.5G  1.6G  2.7G  38% /
tmpfs                1015M     0 1015M   0% /lib/init/rw
udev                   10M   44K   10M   1% /dev
tmpfs                1015M     0 1015M   0% /dev/shm
/dev/hda1              92M   12M   75M  14% /boot
Code:
sproetjuh:~# fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          12       96358+  83  Linux
/dev/hda2              13        9729    78051802+   5  Extended
/dev/hda5              13         596     4690948+  83  Linux
/dev/hda6             597        9483    71384796   83  Linux
/dev/hda7            9484        9729     1975963+  82  Linux swap / Solaris
Code:
kimmetjuh:~# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          12       96358+  83  Linux
/dev/hda2              13        9729    78051802+   5  Extended
/dev/hda5              13         596     4690948+  83  Linux
/dev/hda6             597        9483    71384796   83  Linux
/dev/hda7            9484        9729     1975963+  82  Linux swap / Solaris

Isn't this the problem:

Code:
sproetjuh:~# cat /proc/drbd
version: 0.7.21 (api:79/proto:74)
SVN Revision: 2326 build by root@sproetjuh, 2008-08-11 23:40:44
 0: cs:Connected st:Secondary/Secondary ld:Consistent
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0
And again you're my only hope..

Cordial greetings and thanks for your help,

Bart van Kleef

Last edited by Bart van Kleef; 12th August 2008 at 20:01.
Reply With Quote