Hi All,

I am facing some  problems regarding the DRBD (Distributed Replicated Block 
Device) setup on  linux.

  
I have attached the drbd.conf file.

  
Installation and Configuration Steps for the DRBD (Distributed Replicated Block 
Device)
   
  Operating System and Software Configuration Information: -
    Operating System: RHEL AS3
  Kernel Version: Kernel 2.4.21-15 -EL
  DRBD Version:  DRDB-0.7.0
     
DRBD requires the Kernel-Source RPM to add the new module and compile it.
  So, I have downloaded the Kernel-source 2.4.21-15 -EL.i386.rpm
    Shell> rpm -ivh Kernel-source 2.4.21-15 -EL.i386.rpm
    Shell> cd /usr/src/linux-version
      Shell> mrproper 

    Shell> cp /boot/config-2.4-somthing-whatever  .config 

      Shell> make -s oldconfig_nonint ; make -s oldconfig_nonint 

Shell> make dep
    Shell> make include/linux/version.h
    Shell> make modules_prepare
       /* Now next steps to add DRDB Module in the Kernel */ 

    Shell> cd /usr/src 

    Shell> tar -xvzf where/you/downloaded/it/drbd-0.7.0.tar.gz 

    Shell> cd drbd-0.7.0  # kernel module sub directory 

    Shell> vi drbd_config.h 

  /*
   Uncomment the following pre-processor
   #define SIGHAND_HACK
   #define REDHAT_HLIST_BACKPORT
   #define HAVE_FIND_NEXT_BIT
  */
    Shell> cd drbd-0.7.0/drbd
      Shell> make clean all 

    Shell> make menuconfig 

  /* Enable loadable module  and Save Settings
  This will enable module settings in kernel
   */ 
    Shell>make KDIR=/lib/modules/2.4.21-15.EL/build
    Shell>cd /usr/src/drbd-0.6.12/user
      Shell>make install 

    Shell>make install -tools 

  /* To create Same Size Partition */
       Shell>fdisk -l (check your disk) 

   Shell>fdisk /dev/hda
  (it will prompts for the options)
    First give "n" to create new partition
      give "l" to create logical partition 

    and  I have given its size to 2048MB 

    Shell>mkdir replicated (I have created this directory on both machine to 
store data) 

    Shell>vi /etc/fstab 

  I have made the below entry in fstab in both machine.
    (ex. /dev/hda              /replicated   ext3 defaults 0 0) 

  Shell> mount -a
    /* To create DRBD devices I have made the following script */
    Shell > vi MyNode.sh 

  for i in `seq 0 15`;
  do
        mknod -m 0660 /dev/drbd$i b 147 $i;
  done
      Shell> sh MyNode.sh

  Shell>lsmod
    Shell>make xconfig    ## this command not displayed the DRDB module in the 
Block Device  menu.
 
Shell>modprobe  drbd
 Can’t locate  module drbd
 Shell>insmod  drbd
 Drbd: no  module by that name found.
   When I am trying to  start the service it will gives me the error. 

  Shell>/etc/init.d/drbd  start
Starting DRBD  resources: Can not load the drbd module.
  Will you please give me  some suggestion for how to add module in the  Kernel?


Thanks & Regards,
Jugal Shah




 
       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

Attachment: drbd.conf
Description: 2041306112-drbd.conf

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to