[DRBD-user] drbd 0.7 kernel patch with kernel 2.6.6-mm5

Fűrész Péter webmaster at srv.hu
Sat May 22 18:40:41 CEST 2004

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 am trying to  install drbd-0.7 to debian with kernel 2.6.6-mm5.
After I have downloaded the
http://www.drbd.org/uploads/media/drbd-0.7_pre7_20040519.tar.gz
and I extracted it.
I did make and make kernel-patch. I have patched the kernel and compile drbd
as a module.
After reboot the modprobe drbd works great.
- The first problem:
    I just try to install drbd-tools, but get this error:

        make[2]: Entering directory
`/home/install/drbd/drbd-0.7_pre7_20040519/documentation/ja'
        make[2]: *** No rule to make target `install'.  Stop.
        make[2]: Leaving directory
`/home/install/drbd/drbd-0.7_pre7_20040519/documentation/ja'
        make[1]: *** [install] Error 2
        make[1]: Leaving directory
`/home/install/drbd/drbd-0.7_pre7_20040519/documentation'
        make: *** [install-tools] Error 2

    But the drbdadm drbd.conf and drbdsetup is installed and working.
- Next step:
    Now, I have the drbd module loaded and I can see with lsmod. I have
(maybe) installed the drbd-tools.
    This time my /proc/drbd file show this:
        version: 0.7-pre7 cvs $Date: 2004/05/19 19:53:20 $ (api:72/proto:72)

         0: cs:Unconfigured
         1: cs:Unconfigured

    I think this is ok. I am tried to run drbdadm up all, but I get an error
again.

        can not open device: No such file or directory
        Command line was '/sbin/drbdsetup /dev/nb0 disk /dev/hda3
internal -1 --on-io-error=detach'
        drbdsetup exited with code 20

    Ok, I don't have any /dev/nb0 device. I make two with this commands:

        cluster2:/dev# mknod -m 0600 /dev/nb0 b 43 0
        cluster2:/dev# mknod -m 0600 /dev/nb1 b 43 1

    Try to run again drbdadm up all, and it's work :) My /proc/drbd show
this now:

        version: 0.7-pre7 cvs $Date: 2004/05/19 19:53:20 $ (api:72/proto:72)
         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
         1: cs:Unconfigured

- FINALLY:
    When I do /etc/init.d/drbd start

        Starting DRBD resources:    ioctl() failed: Device or resource busy
        Command line was '/sbin/drbdsetup /dev/nb0 disk /dev/hda3
internal -1 --on-io-error=detach'
        drbdsetup exited with code 20

         Failed setting up r1

        When I run this: /sbin/drbdsetup /dev/nb0 disk /dev/hda3
internal -1 --on-io-error=detach
        ioctl() failed: Device or resource busy

What is the problem? Thank you for any help.

My drbd.conf is the following:

resource "r1" {
  protocol C;
  incon-degr-cmd "halt -f";
  startup {
    wfc-timeout         0;  ## Infinite!
    degr-wfc-timeout  120;  ## 2 minutes.
  }
  disk {
    on-io-error detach;
  }
  net {
    # timeout           60;
    # connect-int       10;
    # ping-int          10;
    # max-buffers     2048;
    # max-epoch-size  2048;
  }
  syncer {
    rate   4M;
    # group   1; # sync concurently with r0
  }

  on cluster2 {
    device      /dev/nb0;
    disk        /dev/hda3;
    address     10.0.0.2:7789;
    meta-disk   internal;
  }

  on cluster1 {
    device     /dev/nb0;
    disk       /dev/hda3;
    address    10.0.0.1:7789;
    meta-disk  internal;
  }
}




More information about the drbd-user mailing list