[DRBD-user] problem with more than 1 resource

thebet at tin.it thebet at tin.it
Fri Sep 30 10:34:34 CEST 2005

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


Hi, i have set up drbd 0.7.13.  When i try to start it i cannot start 
more than 1 resource, then i got the message:

Starting DRBD 
resources:    [ d0 d1 ioctl(,SET_DISK_CONFIG,) failed: Device or 
resource busy
cmd /sbin/drbdsetup /dev/drbd1 disk /dev/md3 /dev/md9 0 --
on-io-error=detach  failed!

Here's my drbd.conf:


resource r0 {
  
protocol C;
  incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; 
sleep 60 ; halt -f";
  startup {
   wfc-timeout  30;
   degr-wfc-
timeout 120;    # 2 minutes
  }
  disk {
   on-io-error   detach;
  }
  
net {
   # sndbuf-size 512k;
   # timeout       60;  # 6 secondi
   # 
connect-int   10;
   # ping-int      10;
   # max-buffers     2048;
   
# max-epoch-size  2048;
   # ko-count 4;
   # on-disconnect reconnect;
  }
  syncer {
    rate 100M;  # espresso in MegaByte al sec, per cui 
800Mbit/sec
    group 1;
    al-extents 257;  # circa 1Gb di active 
size
  }
  on netsrv-master {
    device   /dev/drbd0;
    disk     
/dev/md5;
    address  10.0.2.1:7788;
    meta-disk /dev/md7 [0];
  }

  on netsrv-slave {
    device   /dev/drbd0;
    disk     /dev/md5;
    
address  10.0.2.2:7788;
    meta-disk  /dev/md7 [0];
  }
}

resource r1 
{
  protocol C;
  incon-degr-cmd "echo '!DRBD! pri on incon-degr' | 
wall ; sleep 60 ; halt -f";
  startup {
   wfc-timeout  30; 
   degr-
wfc-timeout 120;    # 2 minutes
  }
  disk {
   on-io-error   detach;
  
}
  net {
   # sndbuf-size 512k;  
   # timeout       60;  # 6 secondi
   # connect-int   10;
   # ping-int      10;
   # max-buffers     
2048;
   # max-epoch-size  2048;
   # ko-count 4;
   # on-disconnect 
reconnect;
  }
  syncer {
    rate 100M;  # espresso in MegaByte al 
sec, per cui 800Mbit/sec
    group 1;
    al-extents 257;  # circa 1Gb 
di active size
  }
  on netsrv-master {
    device   /dev/drbd1;
    
disk     /dev/md3;
    address  10.0.2.1:7789;
    meta-disk  /dev/md9 
[0];
  }
  
  on netsrv-slave {
    device   /dev/drbd1;
    disk     
/dev/md3;
    address  10.0.2.2:7789;
    meta-disk  /dev/md9 [0];
  }
}

resource r2 {
  protocol C;
  incon-degr-cmd "echo '!DRBD! pri on 
incon-degr' | wall ; sleep 60 ; halt -f";
  startup {
   wfc-timeout  
30;
   degr-wfc-timeout 120;    # 2 minutes
  }
  disk {
   on-io-
error   detach;
  }
  net {
   # sndbuf-size 512k;
   # timeout       
60;  # 6 secondi
   # connect-int   10;
   # ping-int      10;
   # max-
buffers     2048;
   # max-epoch-size  2048;
   # ko-count 4;
   # on-
disconnect reconnect;
  }
  syncer {
    rate 100M;  # espresso in 
MegaByte al sec, per cui 800Mbit/sec
    group 1;
    al-extents 29;  # 
circa 120Mb di active size
  }
  on netsrv-master {
    device   
/dev/drbd2;
    disk     /dev/md6;
    address  10.0.2.1:7790;
    meta-
disk /dev/md10 [0];
  }

  on netsrv-slave {
    device   /dev/drbd2;
    disk     /dev/md6;
    address  10.0.2.2:7790;
    meta-disk  
/dev/md10 [0];
  }
}

resource r3 {
  protocol C;
  incon-degr-cmd 
"echo '!DRBD! pri on incon-degr' | wall ; sleep 60 ; halt -f";
  
startup {
   wfc-timeout  30;
   degr-wfc-timeout 120;    # 2 minutes
  
}
  disk {
   on-io-error   detach;
  }
  net {
   # sndbuf-size 512k;
   # timeout       60;  # 6 secondi
   # connect-int   10;
   # ping-
int      10;
   # max-buffers     2048;
   # max-epoch-size  2048;
   # 
ko-count 4;
   # on-disconnect reconnect;
  }
  syncer {
    rate 
100M;  # espresso in MegaByte al sec, per cui 800Mbit/sec
    group 1;
    al-extents 29;  # circa 120Mb di active size
  }
  on netsrv-master 
{
    device   /dev/drbd3;
    disk     /dev/md8;
    address  10.0.2.1:
7791;
    meta-disk /dev/md11 [0];
  }

  on netsrv-slave {
    
device   /dev/drbd3;
    disk     /dev/md8;
    address  10.0.2.2:7791;
    meta-disk  /dev/md11 [0];
  }
}

Thanks in advance



More information about the drbd-user mailing list