[DRBD-user] DRBD configuration

ejazahmad.khan at wipro.com ejazahmad.khan at wipro.com
Fri Mar 10 07:26:16 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.


Hi Ellenberg,

I will be very thankful if you please help me to resolve my query.

I have installed & configured drbd-0.7.16 on two systems. When trying to start the drbd by issuing command "/etc/init.d/drbd start" I am getting this "Starting DRBD resources: Can not load the drbd module." I have created the device node by command "for i in `seq 0 15` ; do mknod -m 0660 /dev/drbd$i b 147 $i; done". My only suspect why its not working is, if we can any way create device node perfectly then I hope we can resolve the problem.

Please find the configuration details below.

---------------
linux:/sbin # uname -a
linux linux 2.6.9 #2 Mon Feb 27 16:12:31 PST 2006 i686 i686 i386 GNU/Linux


vi /etc/fstab
-------------
/dev/hde3            /                    reiserfs   acl,user_xattr        1 1
/dev/hde1            /windows/C           ntfs       ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hde2            /windows/D           vfat       users,gid=users,umask=0002,iocharset=utf8 0 0
/dev/hde5            swap                 swap       pri=42                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
/dev/dvdrecorder     /media/dvdrecorder   subfs      fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/drbd0           /repl                ext2       defaults              0 0

---------------
linux:/etc/init.d # ls -a /dev/drbd*
/dev/drbd0  /dev/drbd10  /dev/drbd12  /dev/drbd14  /dev/drbd2  /dev/drbd4  /dev/drbd6  /dev/drbd8
/dev/drbd1  /dev/drbd11  /dev/drbd13  /dev/drbd15  /dev/drbd3  /dev/drbd5  /dev/drbd7  /dev/drbd9
---------------
linux:/usr/src/linux # df -ah
Filesystem            Size  Used Avail Use% Mounted on
/dev/hde3              12G  6.8G  5.0G  58% /
proc                     0     0     0   -  /proc
tmpfs                 220M   36K  220M   1% /dev/shm
devpts                   0     0     0   -  /dev/pts
none                     0     0     0   -  /proc/sys/fs/binfmt_misc
usbfs                    0     0     0   -  /proc/bus/usb
---------------
linux:/sbin # drbdadm up all
can not open /dev/drbd0: No such device or address
Command 'drbdsetup /dev/drbd0 disk /dev/hde3 internal -1 --on-io-error=panic' terminated with exit code 20

vi /etc/drbd.conf
-----------------
#
# please have a a look at the example configuration file in
# /usr/share/doc/packages/drbd.conf
#

resource wimax {
  protocol      B;
  incon-degr-cmd "halt -f";
  disk {
         on-io-error panic;
       }
  syncer {
    rate        10M;
  }
  on linux { 
    device      /dev/drbd0;
     disk       /dev/hde3;                               
    address     10.201.114.131:7788;
    meta-disk   internal;
  }
  on xyz {
    device      /dev/drbd0;
    disk        /dev/hda3;
    address     10.201.114.140:7788;
    meta-disk   internal;
  }
}
--------------
linux:/usr/src/drbd-0.7.16 # cat /proc/drbd
    cat: /proc/drbd: No such file or directory
--------------
linux:/etc/init.d # ./drbd start
Starting DRBD resources:    Can not load the drbd module.
--------------
linux:/etc/init.d # ./drbd force-reload
Restarting all DRBD resourcescan not open /dev/drbd0: No such device or address
Command '/sbin/drbdsetup /dev/drbd0 down' terminated with exit code 20
drbdsetup exited with code 20
ERROR: Module drbd does not exist in /proc/modules
Can not load the drbd module.
---------------
linux:/usr/src/linux # drbdsetup /dev/drbd0 disk /dev/hde3 internal -1
can not open /dev/drbd0: No such device or address
----------------
linux:/sbin # cat /proc/drbd
cat: /proc/drbd: No such file or directory


I have used command "for i in `seq 0 15` ; do mknod -m 0660 /dev/drbd$i b 147 $i; done" to create device node. but when I use "ls" it shows but when I use command "df -ah" or "lsmod" it is not showing. I need your help ...

      
Thanks & Regards      
Ejaz Ahmad
















The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20060310/611fc47b/attachment.htm>


More information about the drbd-user mailing list