[DRBD-user] drbd device

Milind Dumbare milind at linsyssoft.com
Wed Nov 29 15:03:52 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.


On Wednesday 29 November 2006 19:24, Kamran Nisar wrote:
> here's the drbd module path
>
> test2:~ #  find /lib/modules -name "drbd*"
> /lib/modules/2.6.16.13-smp/block/drbd.ko
> /lib/modules/2.6.16.13-4-smp/block/drbd.ko
> /lib/modules/2.6.16.21-0.25-smp/block/drbd.ko
>
> test2:~ # find /lib/modules/`uname -r` -name "drbd*"
> /lib/modules/2.6.16.13-4-smp/block/drbd.ko
>
>
> 2.6.16.13-4-smp was the standard kernel with the installation.. i couldn't
> find 2.16.13-4-smp source, so i compiled drbd against 2.6.16.13's source.
Ohh, you mean you compile drbd with 2.6.16.13 and put it 
in /lib/modules/2.6.16.13-4-smp/block ?   And trying to insert that module? 
That wont work. You can't mismatch the kernel version and module version. 
You can load module in kernel only when that module is compiled with that 
kernel version source.
>
>
> and yepsh.. still doesn't seem to be loaded :(

>
> On 11/29/06, Milind Dumbare <milind at linsyssoft.com> wrote:
> > On Wednesday 29 November 2006 18:49, Kamran Nisar wrote:
> > > they are as below
> > >
> > >
> > > test2:~# uname -a
> > > Linux test2 2.6.16.13-4-smp #1 SMP Wed May 3 04:53:23 UTC 2006 i686
> > > i686 i386 GNU/Linux
> >
> > So you are booting through 2.6.16.13-4-smp kernel.
> >
> > > test2:~# lsmod
> > > Module                  Size  Used by
> > > vfat                   16000  0
> > > fat                    51356  1 vfat
> > > ext3                  123528  0
> > > jbd                    63264  1 ext3
> > > parport_pc             39524  0
> > > parport                37192  1 parport_pc
> > > nls_utf8                6016  0
> > > edd                    12484  0
> > > af_packet              28296  0
> > > iptable_filter          6912  0
> > > ip_tables              16196  1 iptable_filter
> > > x_tables               16388  1 ip_tables
> > > ipv6                  242272  20
> > > joydev                 12992  0
> > > sg                     35996  0
> > > st                     38684  0
> > > sd_mod                 20352  0
> > > sr_mod                 18596  0
> > > scsi_mod              128008  4 sg,st,sd_mod,sr_mod
> > > button                 10640  0
> > > battery                13444  0
> > > ac                      8964  0
> > > apparmor               53144  0
> > > aamatch_pcre           17408  1 apparmor
> > > loop                   19080  0
> > > dm_mod                 57936  0
> > > i2c_viapro             11924  0
> > > via686a                19208  0
> > > via_agp                13440  1
> > > hwmon                   6916  1 via686a
> > > i2c_isa                 8576  1 via686a
> > > i2c_core               24064  3 i2c_viapro,via686a,i2c_isa
> > > agpgart                33352  1 via_agp
> > > e100                   37256  0
> > > mii                     9088  1 e100
> > > shpchp                 44000  0
> > > pci_hotplug            28860  1 shpchp
> > > ide_cd                 39840  0
> > > cdrom                  36512  2 sr_mod,ide_cd
> > > reiserfs              217856  2
> > > raid0                  11648  1
> > > fan                     8580  0
> > > thermal                17416  0
> > > processor              31208  1 thermal
> > > via82cxxx              12164  0 [permanent]
> > > ide_disk               19200  8
> > > ide_core              123340  3 ide_cd,via82cxxx,ide_disk
> >
> > Where is drbd module? its not in yet?
> >
> > > test2:~ # ls /lib/modules/
> > > 2.6.16.13-4-smp  2.6.16.13-smp  2.6.16.21-0.25-smp
> >
> > does /lib/modules/2.6.16.13-4-smp have drbd.ko anywhere?
> >
> > > test2:~/new # pwd
> > > /root/new
> > > test2:~/new # ls
> > > drbd-0.7.22  drbd-0.7.22.tar.gz
> >
> > Have you compiled drbd-0.7.22/drbd/ with 2.6.16.13-4-smp sources?
> >
> > > On 11/29/06, Milind Dumbare <milind at linsyssoft.com> wrote:
> > > > ok post following things here
> > > > 1. uname -a
> > > > 2. lsmod
> > > > 3. ls /lib/modules
> > > > 4. your drbd tarball's path.
> > > >
> > > > On Wednesday 29 November 2006 18:30, Kamran Nisar wrote:
> > > > > alrite, thank you all for you support :)
> > > > >
> > > > > done with that.. now i'm getting this when trying to start drbd
> > > > >
> > > > > test2:~/new/drbd-0.7.22/scripts # drbdadm up all
> > > > > can not open /dev/drbd0: No such device or address
> > > > >
> > > > > i created the device using mknod.. is there any speical that needs
> >
> > to
> >
> > > > > be done to these devices ?
> > > > >
> > > > > On 11/29/06, Milind Dumbare <milind at linsyssoft.com> wrote:
> > > > > > On Wednesday 29 November 2006 16:44, Kamran Nisar wrote:
> > > > > > > nopes. nuthing worked...same error..
> > > > > > >
> > > > > > > there are a few things, pls take a moment and let me know if
> >
> > that
> >
> > > > could
> > > >
> > > > > > be
> > > > > >
> > > > > > > cause of the problem
> > > > > > >
> > > > > > > my uname -r output shows version 2.6.16.13-4 , there was no
> >
> > source
> >
> > > > code
> > > >
> > > > > > > avaiblae so i compiled aginst the source od 2.6.16.13.. would
> >
> > that
> >
> > > > be
> > > >
> > > > > > > screwing up things ?
> > > > > >
> > > > > > Definitel, it will screw up If you insert 2.6.16.13's module into
> > > > > > 2.6.16.13-4.
> > > > > > Compile DRBD with 2.6.16.13-4 source or build bzImage for
> > > > > > 2.6.16.13boot into
> > > > > > it and then compile and install the drbd module for it
> > > > > >
> > > > > > > On 11/29/06, Leroy van Logchem <leroy.vanlogchem at wldelft.nl>
> >
> > wrote:
> > > > > > > > Kamran Nisar wrote:
> > > > > > > > > test2:~ # insmod drbd.ko
> > > > > > > >
> > > > > > > > Try modprobe. Did you depmod?



More information about the drbd-user mailing list