On Friday 27 April 2007 15:26:24 jugal shah wrote: > 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
There's no mrproper command, maybe "make mrproper"? But why if you only want to build the drbd module? > > 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 Why all of this? If you only want to add drbd to you running kernel all of this is quite unsusual. > /* 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 Er, you are on the drbd kernel directory, what will "make menuconfig" return there? > > /* 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 What do you want with drbd-0.6 tools? [...] > Shell>lsmod > Shell>make xconfig ## this command not displayed the DRDB module in > the Block Device menu. Did you patch in drbd? I don't think so, so how should it appear there? Btw, from all of the commands above you are in /usr/src/drbd-0.6.12/user, what will "make xconfig" return there? > > 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. Above you did run "KDIR=/lib/modules/2.4.21-15.EL/build", did you also install the drbd module? Did you then also run "depmod -a"? To sum it up, you provided a long history of partly useless shell code, which is partly wrong, partly inconsistent and has several missing commands. Sorry, but are you sure you know what you are doing? -- Bernd Schubert Q-Leap Networks GmbH _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
