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