got the part about the status report..<br>still a bit confused about the filesystem access<br><br>i would be replicating the entire /dev/md0 .. as per the tutorials i read, i am not supposed to mount this device, and let drbd handle it. thats fine.. but why do i need to create a file system on /dev/drbd0, and how will I access the files on /dev/md0, since i can't mount it or anything..
<br><br><br>other than that.. I formatted /dev/drbd0 on one system using mkreiserfs, , completed successfully and i rebooted server, and the /dev/drbd0 has dissappeared..<br><br>On the other system it won't let me format the dev/drbd0 saying "could not open /dev/drbd0
<br><div><span class="gmail_quote">Read only filesystem"<br><br>On 11/30/06, <b class="gmail_sendername">Milind Dumbare</b> <<a href="mailto:milind@linsyssoft.com">milind@linsyssoft.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wednesday 29 November 2006 22:26, Kamran Nisar wrote:<br>> okie i got it to compile against the source of the kernel installed...<br>><br>> drbd is finally up :D<br>><br>> okie now, i have a couple of other concerns..
<br>> firstly after setting on as primary, the cat /proc/drbd on both machine is<br>> reflected as..<br>> test 1 is the primary<br>><br>> test1:~ # cat /proc/drbd<br>> version: 0.7.14 (api:77/proto:74)<br>
> SVN Revision: 1989 build by root@test1, 2005-11-11 14:50:53<br>> 0: cs:Connected st:Primary/Secondary ld:Consistent<br>> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0<br>> 1: cs:Unconfigured<br>st:Primary/Secondary means this node is primary and peer is secondary same for
<br>entry at other node in /proc/drbd<br>><br>><br>> test2:~ # cat /proc/drbd<br>> version: 0.7.18 (api:78/proto:74)<br>> SVN Revision: 2186 build by lmb@chip, 2006-05-04 17:08:27<br>> 0: cs:Connected st:Secondary/Primary ld:Consistent
<br>> ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0<br>> 1: cs:Unconfigured<br>><br>><br>> is the above correct ? should the st:/primary/Secondary should be same on<br>> both the machines ?<br>>
<br>> secondly i'm using the folling snip in my conf file<br>><br>> on test1 {<br>> device /dev/drbd0;<br>> disk /dev/md0;<br>> address <a href="http://192.168.2.61:7788">192.168.2.61:7788
</a>;<br>> meta-disk internal;<br>> }<br>><br>> on test2 {<br>> device /dev/drbd0;<br>> disk /dev/md0;<br>> address <a href="http://192.168.2.62:7788">192.168.2.62:7788</a>
;<br>> meta-disk internal;<br>> }<br>><br>><br>><br>> I have linux RAID0 on both the server under /dev/md0<br>><br>> now the thing i can't figure out, is where does the data actually goes on<br>
> the server1 is how to mount /dev/md0 to store some data on it.. because<br>> when i try to mount it, it says drive is busy, probably becuase of sumthing<br>> drbd is doing ..<br>You have now set up /dev/drbd0 on existing /dev/md0. Now when you create
<br>filesystem on /dev/drbd0 every block of /dev/md0 from test1 node will be<br>replicated to /dev/md0 of test2.<br><br>><br>><br>><br>> Thanks<br>><br>> On 11/29/06, Milind Dumbare <<a href="mailto:milind@linsyssoft.com">
milind@linsyssoft.com</a>> wrote:<br>> > On Wednesday 29 November 2006 19:41, Kamran Nisar wrote:<br>> > > right, so how do i get the exact 13-4 source code ? coz i blv these<br>> > > extension aren't supported for long and disappear quickly.. i can
<br>> > > either find a 16.13 or 16.14<br>> ><br>> > Thats SUSE's kernel I guess. Because <a href="http://kernel.org">kernel.org</a> doesn't give such<br>> > extensions.<br>> ><br>> >
<a href="http://www.rpmfind.net/linux/RPM/opensuse/10.1/i586/kernel-bigsmp-2.6.16.13-4.i5">www.rpmfind.net/linux/RPM/opensuse/10.1/i586/kernel-bigsmp-2.6.16.13-4.i5</a><br>> >86.html see here for the source RPM. Or google for it.
<br>> ><br>> > > On 11/29/06, Milind Dumbare <<a href="mailto:milind@linsyssoft.com">milind@linsyssoft.com</a>> wrote:<br>> > > > On Wednesday 29 November 2006 19:24, Kamran Nisar wrote:<br>
> > > > > here's the drbd module path<br>> > > > ><br>> > > > > test2:~ # find /lib/modules -name "drbd*"<br>> > > > > /lib/modules/2.6.16.13-smp/block/drbd.ko
<br>> > > > > /lib/modules/2.6.16.13-4-smp/block/drbd.ko<br>> > > > > /lib/modules/2.6.16.21-0.25-smp/block/drbd.ko<br>> > > > ><br>> > > > > test2:~ # find /lib/modules/`uname -r` -name "drbd*"
<br>> > > > > /lib/modules/2.6.16.13-4-smp/block/drbd.ko<br>> > > > ><br>> > > > ><br>> > > > > 2.6.16.13-4-smp was the standard kernel with the installation.. i
<br>> > > ><br>> > > > couldn't<br>> > > ><br>> > > > > find 2.16.13-4-smp source, so i compiled drbd against <a href="http://2.6.16.13">2.6.16.13</a>'s<br>> > > >
<br>> > > > source.<br>> > > > Ohh, you mean you compile drbd with <a href="http://2.6.16.13">2.6.16.13</a> and put it<br>> > > > in /lib/modules/2.6.16.13-4-smp/block ? And trying to insert that
<br>> > > > module?<br>> > > > That wont work. You can't mismatch the kernel version and module<br>> ><br>> > version.<br>> ><br>> > > > You can load module in kernel only when that module is compiled with
<br>> ><br>> > that<br>> ><br>> > > > kernel version source.<br>> > > ><br>> > > > > and yepsh.. still doesn't seem to be loaded :(<br>> > > > ><br>> > > > > On 11/29/06, Milind Dumbare <
<a href="mailto:milind@linsyssoft.com">milind@linsyssoft.com</a>> wrote:<br>> > > > > > On Wednesday 29 November 2006 18:49, Kamran Nisar wrote:<br>> > > > > > > they are as below
<br>> > > > > > ><br>> > > > > > ><br>> > > > > > > test2:~# uname -a<br>> > > > > > > Linux test2 2.6.16.13-4-smp #1 SMP Wed May 3 04:53:23 UTC 2006
<br>> ><br>> > i686<br>> ><br>> > > > > > > i686 i386 GNU/Linux<br>> > > > > ><br>> > > > > > So you are booting through 2.6.16.13-4-smp kernel.<br>
> > > > > ><br>> > > > > > > test2:~# lsmod<br>> > > > > > > Module Size Used by<br>> > > > > > > vfat 16000 0
<br>> > > > > > > fat 51356 1 vfat<br>> > > > > > > ext3 123528 0<br>> > > > > > > jbd 63264 1 ext3<br>
> > > > > > > parport_pc 39524 0<br>> > > > > > > parport 37192 1 parport_pc<br>> > > > > > > nls_utf8 6016 0<br>
> > > > > > > edd 12484 0<br>> > > > > > > af_packet 28296 0<br>> > > > > > > iptable_filter 6912 0<br>> > > > > > > ip_tables 16196 1 iptable_filter
<br>> > > > > > > x_tables 16388 1 ip_tables<br>> > > > > > > ipv6 242272 20<br>> > > > > > > joydev 12992 0
<br>> > > > > > > sg 35996 0<br>> > > > > > > st 38684 0<br>> > > > > > > sd_mod 20352 0<br>> > > > > > > sr_mod 18596 0
<br>> > > > > > > scsi_mod 128008 4 sg,st,sd_mod,sr_mod<br>> > > > > > > button 10640 0<br>> > > > > > > battery 13444 0
<br>> > > > > > > ac 8964 0<br>> > > > > > > apparmor 53144 0<br>> > > > > > > aamatch_pcre 17408 1 apparmor<br>
> > > > > > > loop 19080 0<br>> > > > > > > dm_mod 57936 0<br>> > > > > > > i2c_viapro 11924 0<br>> > > > > > > via686a 19208 0
<br>> > > > > > > via_agp 13440 1<br>> > > > > > > hwmon 6916 1 via686a<br>> > > > > > > i2c_isa 8576 1 via686a
<br>> > > > > > > i2c_core 24064 3 i2c_viapro,via686a,i2c_isa<br>> > > > > > > agpgart 33352 1 via_agp<br>> > > > > > > e100 37256 0
<br>> > > > > > > mii 9088 1 e100<br>> > > > > > > shpchp 44000 0<br>> > > > > > > pci_hotplug 28860 1 shpchp
<br>> > > > > > > ide_cd 39840 0<br>> > > > > > > cdrom 36512 2 sr_mod,ide_cd<br>> > > > > > > reiserfs 217856 2
<br>> > > > > > > raid0 11648 1<br>> > > > > > > fan 8580 0<br>> > > > > > > thermal 17416 0<br>> > > > > > > processor 31208 1 thermal
<br>> > > > > > > via82cxxx 12164 0 [permanent]<br>> > > > > > > ide_disk 19200 8<br>> > > > > > > ide_core 123340 3 ide_cd,via82cxxx,ide_disk
<br>> > > > > ><br>> > > > > > Where is drbd module? its not in yet?<br>> > > > > ><br>> > > > > > > test2:~ # ls /lib/modules/<br>> > > > > > >
2.6.16.13-4-smp 2.6.16.13-smp 2.6.16.21-0.25-smp<br>> > > > > ><br>> > > > > > does /lib/modules/2.6.16.13-4-smp have drbd.ko anywhere?<br>> > > > > ><br>> > > > > > > test2:~/new # pwd
<br>> > > > > > > /root/new<br>> > > > > > > test2:~/new # ls<br>> > > > > > > drbd-0.7.22 drbd-0.7.22.tar.gz<br>> > > > > ><br>> > > > > > Have you compiled
drbd-0.7.22/drbd/ with 2.6.16.13-4-smp sources?<br>> > > > > ><br>> > > > > > > On 11/29/06, Milind Dumbare <<a href="mailto:milind@linsyssoft.com">milind@linsyssoft.com</a>> wrote:
<br>> > > > > > > > ok post following things here<br>> > > > > > > > 1. uname -a<br>> > > > > > > > 2. lsmod<br>> > > > > > > > 3. ls /lib/modules
<br>> > > > > > > > 4. your drbd tarball's path.<br>> > > > > > > ><br>> > > > > > > > On Wednesday 29 November 2006 18:30, Kamran Nisar wrote:<br>> > > > > > > > > alrite, thank you all for you support :)
<br>> > > > > > > > ><br>> > > > > > > > > done with that.. now i'm getting this when trying to start<br>> ><br>> > drbd<br>> ><br>> > > > > > > > > test2:~/new/drbd-
0.7.22/scripts # drbdadm up all<br>> > > > > > > > > can not open /dev/drbd0: No such device or address<br>> > > > > > > > ><br>> > > > > > > > > i created the device using mknod.. is there any speical
<br>> > > > > > > > > that<br>> > > ><br>> > > > needs<br>> > > ><br>> > > > > > to<br>> > > > > ><br>> > > > > > > > > be done to these devices ?
<br>> > > > > > > > ><br>> > > > > > > > > On 11/29/06, Milind Dumbare <<a href="mailto:milind@linsyssoft.com">milind@linsyssoft.com</a>> wrote:<br>> > > > > > > > > > On Wednesday 29 November 2006 16:44, Kamran Nisar wrote:
<br>> > > > > > > > > > > nopes. nuthing worked...same error..<br>> > > > > > > > > > ><br>> > > > > > > > > > > there are a few things, pls take a moment and let me
<br>> ><br>> > know<br>> ><br>> > > > > > > > > > > if<br>> > > > > ><br>> > > > > > that<br>> > > > > ><br>> > > > > > > > could
<br>> > > > > > > ><br>> > > > > > > > > > be<br>> > > > > > > > > ><br>> > > > > > > > > > > cause of the problem
<br>> > > > > > > > > > ><br>> > > > > > > > > > > my uname -r output shows version 2.6.16.13-4 , there<br>> > > > > > > > > > > was
<br>> ><br>> > no<br>> ><br>> > > > > > source<br>> > > > > ><br>> > > > > > > > code<br>> > > > > > > ><br>> > > > > > > > > > > avaiblae so i compiled aginst the source od
<a href="http://2.6.16.13">2.6.16.13</a>..<br>> > > ><br>> > > > would<br>> > > ><br>> > > > > > that<br>> > > > > ><br>> > > > > > > > be
<br>> > > > > > > ><br>> > > > > > > > > > > screwing up things ?<br>> > > > > > > > > ><br>> > > > > > > > > > Definitel, it will screw up If you insert
<a href="http://2.6.16.13">2.6.16.13</a>'s<br>> ><br>> > module<br>> ><br>> > > > into<br>> > > ><br>> > > > > > > > > > 2.6.16.13-4.<br>> > > > > > > > > > Compile DRBD with
2.6.16.13-4 source or build bzImage for<br>> > > > > > > > > > 2.6.16.13boot into<br>> > > > > > > > > > it and then compile and install the drbd module for it<br>
> > > > > > > > > ><br>> > > > > > > > > > > On 11/29/06, Leroy van Logchem<br>> > > > > > > > > > > <<a href="mailto:leroy.vanlogchem@wldelft.nl">
leroy.vanlogchem@wldelft.nl</a>><br>> > > > > ><br>> > > > > > wrote:<br>> > > > > > > > > > > > Kamran Nisar wrote:<br>> > > > > > > > > > > > > test2:~ # insmod
drbd.ko<br>> > > > > > > > > > > ><br>> > > > > > > > > > > > Try modprobe. Did you depmod?<br></blockquote></div><br><br clear="all"><br>-- <br>Regards
<br>M Kamran Nisar,