[DRBD-user] Low.dev. smaller than requested DRBD-dev. size.

Tim Hibbard hibbard at research.ohiou.edu
Sun Nov 19 03:59:52 CET 2006

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


I had to repartition my shared storage to make some new room and I can't 
figure this problem out.  The APACHE resource works fine and is 
syncing.  However every time I try to get the SAMBA resource up I run 
into problems.  Is there a way to clear any remaining metadata from 
/dev/sdb2?  Is this  a metadata problem?

console:
drbdadm up samba
ioctl(,SET_DISK_CONFIG,) failed: Invalid argument
Low.dev. smaller than requested DRBD-dev. size.
Command 'drbdsetup /dev/drbd1 disk /dev/sdb2 internal -1 
--on-io-error=detach' terminated with exit code 20

logfile:
Nov 18 21:50:49 my kernel: drbd1: drbdsetup [3021]: cstate WFConnection 
--> Unconnected
Nov 18 21:50:49 my kernel: drbd1: worker terminated
Nov 18 21:50:49 my kernel: drbd1: drbd1_receiver [2894]: cstate 
Unconnected --> UnconfiguredNov 18 21:50:49 my kernel: drbd1: Connection 
lost.
Nov 18 21:50:49 my kernel: drbd1: Discarding network configuration.
Nov 18 21:50:49 my kernel: drbd1: drbd1_receiver [2894]: cstate 
Unconfigured --> StandAlone
Nov 18 21:50:49 my kernel: drbd1: receiver terminated
Nov 18 21:50:49 my kernel: drbd1: drbdsetup [3021]: cstate StandAlone 
--> Unconfigured
Nov 18 21:50:54 my kernel: drbd1: Lower device smaller than last agreed 
size!
Nov 18 21:50:54 my kernel: drbd1: drbdsetup [3035]: cstate Unconfigured 
--> Unconfigured

/proc/drbd
version: 0.7.21 (api:79/proto:74)
SVN Revision: 2326 build by root at leo1-cs, 2006-11-18 20:39:50
 0: cs:SyncTarget st:Primary/Secondary ld:Inconsistent
    ns:0 nr:170491676 dw:170491672 dr:0 al:0 bm:10405 lo:319 pe:1308 
ua:479 ap:0
        [============>.......] sync'ed: 60.7% (107926/274420)M
        finish: 0:23:52 speed: 77,104 (72,888) K/sec
 1: cs:Unconfigured

/etc/drbd.conf
resource apache {
  protocol C;

  startup {
    wfc-timeout 20;
    degr-wfc-timeout 60;
  }
  disk {
    on-io-error detach;
  }
  net {
    on-disconnect reconnect;
  }
  syncer {
    rate 100M;
    group 0;
    al-extents 257;
  }

  on serverA {
    device    /dev/drbd0;
    disk      /dev/sdb1;
    address   192.168.1.1:7788;
    meta-disk internal;
  }

  on serverB {
    device     /dev/drbd0;
    disk       /dev/sdb1;
    address   192.168.1.2:7788;
    meta-disk internal;
  }
}

resource samba {
  protocol C;

  startup {
    wfc-timeout 20;
    degr-wfc-timeout 60;
  }
  disk {
    on-io-error detach;
  }
  net {
    on-disconnect reconnect;
  }
  syncer {
    rate 100M;
    group 1;
    al-extents 257;
  }

  on serverA {
    device    /dev/drbd1;
    disk      /dev/sdb2;
    address   192.168.1.1:7789;
    meta-disk internal;
  }
 
  on serverB {
    device     /dev/drdb1;
    disk       /dev/sdb2;
    address   192.168.1.2:7789;
    meta-disk internal;
  }
} 


I have two partitions identical on two different servers.

Server A:
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       35000   281137468+  83  Linux
/dev/sdb2           35001       60965   208563862+  83  Linux

Server B:
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       35000   281137468+  83  Linux
/dev/sdb2           35001       60965   208563862+  83  Linux


Any help is appreciated.  Looking to be a long night ...

Thanks,

Tim Hibbard



More information about the drbd-user mailing list