[DRBD-user] FW: drbdsetup fails with 'out of memory'

Paul J. Smith pjsmith at mtgsy.net
Mon Jun 2 14:48:37 CEST 2008

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


Just FYI - Managed to get around this by adding the kernel option vmalloc=256m


-----Original Message-----
From: Paul J. Smith
Sent: 02 June 2008 12:20
To: 'drbd-user at lists.linbit.com'
Subject: drbdsetup fails with 'out of memory'

Hi,

I have DRDB setup and am trying to use it with LVM on ubuntu 8.04

I'm currently getting an error message when I try and bring up r0

/sbin/drbdsetup /dev/drbd0 disk /dev/sda5 /dev/sda4 0 --set-defaults --create-device --on-io-error=detach
Failure: (140) vmalloc() failed. Out of memory?

The following is in /var/messages.  Anyone know why this is failing?

My drbd.conf is standard except for

  on san1 {
    device     /dev/drbd0;
    disk       /dev/sda5;
    address    10.101.6.52:7788;
    meta-disk  /dev/sda4[0];
  }

  on san2 {
    device    /dev/drbd0;
    disk      /dev/sda5;
    address   10.101.6.53:7788;
    meta-disk /dev/sda4[0];
  }
}

Jun  2 12:15:10 san1 kernel: [  994.083960] drbd0: No usable activity log found.
Jun  2 12:15:10 san1 kernel: [  994.083977] drbd0: max_segment_size ( = BIO size ) = 32768
Jun  2 12:15:10 san1 kernel: [  994.083983] drbd0: drbd_bm_resize called with capacity == 7780462293
Jun  2 12:15:10 san1 kernel: [  994.083988] allocation failed: out of vmalloc space - use vmalloc=<size> to increase size.
Jun  2 12:15:10 san1 kernel: [  994.084073] drbd0: size = 0 KB (0 KB)
Jun  2 12:15:10 san1 kernel: [  994.084078] drbd0: disk( Attaching -> Diskless )
Jun  2 12:15:10 san1 kernel: [  994.084125] drbd0: drbd_bm_resize called with capacity == 0
Jun  2 12:15:10 san1 kernel: [  994.084129] drbd0: worker terminated
Jun  2 12:15:10 san1 kernel: [  994.084131] drbd0: Terminating worker thread
Jun  2 12:15:44 san1 kernel: [ 1027.800999] drbd0: disk( Diskless -> Attaching )
Jun  2 12:15:44 san1 kernel: [ 1027.801005] drbd0: Starting worker thread (from cqueue/1 [4295])
Jun  2 12:15:44 san1 kernel: [ 1027.802103] drbd0: No usable activity log found.
Jun  2 12:15:44 san1 kernel: [ 1027.802108] drbd0: max_segment_size ( = BIO size ) = 32768
Jun  2 12:15:44 san1 kernel: [ 1027.802112] drbd0: drbd_bm_resize called with capacity == 7780462293
Jun  2 12:15:44 san1 kernel: [ 1027.802116] allocation failed: out of vmalloc space - use vmalloc=<size> to increase size.
Jun  2 12:15:44 san1 kernel: [ 1027.802190] drbd0: size = 0 KB (0 KB)
Jun  2 12:15:44 san1 kernel: [ 1027.802203] drbd0: disk( Attaching -> Diskless )
Jun  2 12:15:44 san1 kernel: [ 1027.802243] drbd0: drbd_bm_resize called with capacity == 0
Jun  2 12:15:44 san1 kernel: [ 1027.802246] drbd0: worker terminated
Jun  2 12:15:44 san1 kernel: [ 1027.802249] drbd0: Terminating worker thread



More information about the drbd-user mailing list