[DRBD-user] dont work limitation of drbd device size

DaLiV daliv at apollo.lv
Wed May 10 08:57:05 CEST 2006

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


dont work limitation of drbd device size.
that need for different sized disks on different nodes ....

Version: 0.7.18 (api:78)
SVN Revision: 2186 build by root at s02.flora.lv, 2006-05-10 09:16:05
older versions also report same error ...

# uname -a
Linux xx.xx.xx 2.6.16.14 #1 SMP Tue May 9 15:48:20 EEST 2006 x86_64 
x86_64 x86_64 GNU/Linux

#/etc/init.d/drbd start
Starting DRBD resources:    [ d0 ioctl(,SET_DISK_CONFIG,) failed: 
Invalid argument
Low.dev. smaller than requested DRBD-dev. size.

cmd /sbin/drbdsetup /dev/drbd0 disk /dev/sdb1 internal -1 
--on-io-error=pass_on --size=133G  failed!
# fdisk -l /dev/sdb

Disk /dev/sdb: 145.9 GB, 145999527936 bytes
255 heads, 63 sectors/track, 17750 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       17750   142576843+  83  Linux
# drbdadm dump
global {
     minor-count 1;
}

resource HAData {
     protocol               C;
     incon-degr-cmd       "echo '!DRBD! pri on incon-degr' | wall ; 
sleep 60 ; halt -f";
     on s02 {
         device           /dev/drbd0;
         disk             /dev/sdb1;
         address          10.0.2.2:7788;
         meta-disk        internal;
     }
     on s01 {
         device           /dev/drbd0;
         disk             /dev/md1;
         address          10.0.2.1:7788;
         meta-disk        internal;
     }
     net {
         sndbuf-size      512k;
         timeout           60;
         ping-int          10;
         max-buffers      2048;
         max-epoch-size   2048;
         ko-count           4;
         on-disconnect    reconnect;
     }
     disk {
         on-io-error      pass_on;
         size             133G;
     }
     syncer {
         rate             40M;
         group              1;
         al-extents       257;
     }
     startup {
         wfc-timeout       15;
         degr-wfc-timeout  60;
     }
}




More information about the drbd-user mailing list