Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
> Date: Tue, 29 Jul 2008 07:59:26 -0700 > From: digolinopage at yahoo.com.br > Subject: Re: [DRBD-user] Create partitions from DRBD > To: drbd-user at lists.linbit.com > > Hello Lars, > > I readed all chapter five in the DRBD site. > All steps are successful, then i saw the result of /proc/drbd in both machines: > > root at ubuntu-cluster1:~# cat /proc/drbd > version: 8.0.5 (api:86/proto:86) > SVN Revision: 3011 build by root at ubuntu-cluster1, 2008-07-25 14:46:01 > 0: cs:WFConnection st:Primary/Unknown ds:UpToDate/DUnknown C r--- > ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 > resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0 > act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0 > > > root at ubuntu-cluster2:~# cat /proc/drbd > version: 8.0.5 (api:86/proto:86) > SVN Revision: 3011 build by root at ubuntu-cluster2, 2008-07-28 10:28:49 > 0: cs:WFConnection st:Secondary/Unknown ds:Inconsistent/DUnknown C r--- > ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 > resync: used:0/31 hits:0 misses:0 starving:0 dirty:0 changed:0 > act_log: used:0/257 hits:0 misses:0 starving:0 dirty:0 changed:0 > > I believe this allright. Then I added the drbd in /etc/modules, and reboot the machine. After reboot I'll see the result of the command cat /proc/drdb. > This is not correct: st:Primary/Unknown and st:Secondary/Unknown The correct is: st:Secondary/Secondary in both nodes. The partition is probably the problem. If now the data is not important do: Delete the partitions created for drbd. they should be create without file system (you can use gparted). Partition type primary, no format, without format (no ext3, ext2, etc)... in both nodes: drbdadm attach r0 drbdadm create-md r0 drbdadm connect r0 in one node: drbdadm -- --overwrite-data-of-peer primary r0 > root at ubuntu-cluster2:~# cat /proc/drbd > version: 8.0.5 (api:86/proto:86) > SVN Revision: 3011 build by root at ubuntu-cluster2, 2008-07-28 10:28:49 > > root at ubuntu-cluster1:~# cat /proc/drbd > version: 8.0.5 (api:86/proto:86) > SVN Revision: 3011 build by root at ubuntu-cluster1, 2008-07-25 14:46:0 > > Then I try run the daemon drbd : > > root at ubuntu-cluster2:~# /etc/init.d/drbd start > Starting DRBD resources: [ d0 n0 ]. > .......... > *************************************************************** > DRBD's startup script waits for the peer node(s) to appear. > - In case this node was already a degraded cluster before the > reboot the timeout is 0 seconds. [degr-wfc-timeout] > - If the peer was available before the reboot the timeout will > expire after 0 seconds. [wfc-timeout] > (These values are for resource 'r0'; 0 sec -> wait forever) > To abort waiting enter 'yes' [ 39]: > > I the two node this message happen. > > My drbd.conf is equal the example in five chapter. > > What's missing ? > > Att, > > Faria > > others logs: > > Jul 29 11:24:02 ubuntu-cluster1 kernel: [ 185.050000] drbd0: resync bitmap: bits=48176 words=1506 > Jul 29 11:24:02 ubuntu-cluster1 kernel: [ 185.050000] drbd0: size = 188 MB (192704 KB) > Jul 29 11:24:02 ubuntu-cluster1 kernel: [ 185.050000] drbd0: reading of bitmap took 0 jiffies > Jul 29 11:24:02 ubuntu-cluster1 kernel: [ 185.050000] drbd0: recounting of set bits took additional 0 jiffies > Jul 29 11:24:02 ubuntu-cluster1 kernel: [ 185.050000] drbd0: 188 MB marked out-of-sync by on disk bit-map. > Jul 29 11:24:02 ubuntu-cluster1 kernel: [ 185.050000] drbd0: disk( Attaching -> UpToDate ) > Jul 29 11:24:02 ubuntu-cluster1 kernel: [ 185.050000] drbd0: Writing meta data super block now. > Jul 29 11:24:02 ubuntu-cluster1 kernel: [ 185.060000] drbd0: conn( StandAlone -> Unconnected ) > Jul 29 11:24:02 ubuntu-cluster1 kernel: [ 185.060000] drbd0: receiver (re)started > Jul 29 11:24:02 ubuntu-cluster1 kernel: [ 185.060000] drbd0: conn( Unconnected -> WFConnection ) > > > > > > > > > > > > > > > > --- Em seg, 28/7/08, Lars Ellenberg <lars.ellenberg at linbit.com> escreveu: > > > De: Lars Ellenberg <lars.ellenberg at linbit.com> > > Assunto: Re: [DRBD-user] Create partitions from DRBD > > Para: drbd-user at lists.linbit.com > > Data: Segunda-feira, 28 de Julho de 2008, 18:35 > > On Mon, Jul 28, 2008 at 10:16:16AM -0700, Faria wrote: > > > Hello, > > > > > > I set the drbd.conf, then when in start drbd come this > > message : > > > cmd /sbin/drbdsetup /dev/drbd0 disk /dev/sda7 > > /dev/sda7 internal --set-defaults --create-device > > --on-io-error=panic failed - continuing! > > > > normally, there should be some more information as just > > this. > > have a look at your syslog or kernel log files, > > or try that command by itself. > > > > > I searched in web, then I found one message in forum > > say this : > > > "create the partition with size 192MB in your > > hard disk." > > > Ask: Do I must create this partition physically (in > > the hard disk) or logically ? > > > > what is the difference between a physical and a logical > > partition? > > all partitions are "logical", no? > > > > > Other ask : Is partition (drdb) have a type ? > > > > no. it does not care. > > > > note: > > to set up drbd, > > it is not enough > > to create a config file > > and say /etc/init.d/drbd start. > > > > you need to explicitly create the drbd meta data as well, > > and initiate the initial sync. > > > > you probably did neither of the latter yet. > > > > may I suggest that you have a look at the users guide > > http://www.drbd.org/doc/about > > > > read it. > > read it again. > > complain on this list about anything that still may seem > > unclear. > > > > then follow chapter 5. "configuring drbd", and > > experiment with > > the things in chapter 6. "common administrative > > tasks". > > > > -- > > : Lars Ellenberg > > http://www.linbit.com : > > : DRBD/HA support and consulting sales at > > linbit.com : > > : LINBIT Information Technologies GmbH Tel > > +43-1-8178292-0 : > > : Vivenotgasse 48, A-1120 Vienna/Europe Fax > > +43-1-8178292-82 : > > __ > > please don't Cc me, but send to list -- I'm > > subscribed > > _______________________________________________ > > drbd-user mailing list > > drbd-user at lists.linbit.com > > http://lists.linbit.com/mailman/listinfo/drbd-user > > > Novos endereços, o Yahoo! que você conhece. Crie um email novo com a sua cara @ymail.com ou @rocketmail.com. > http://br.new.mail.yahoo.com/addresses > _______________________________________________ > drbd-user mailing list > drbd-user at lists.linbit.com > http://lists.linbit.com/mailman/listinfo/drbd-user _________________________________________________________________ La última hora de tu ciudad en MSN Noticias http://noticias.es.msn.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20080729/3b5c8145/attachment.htm>