Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
Hi All I'm newcomer of heartbeat + DRBD.I don't clear drbddisk option in /etc/ha.d/haresources,It can't automatic mount and start service postfix but manual (typing command) is started It auto mount and start serive postfix when before I started service drbd and heartbeat, When node1 is primary dead,node 2 is secondary must auto mount and start service postfix Can you hep me !!! Thanks on node1 (/etc/ha.d/haresources) node1 \ drbddisk::postfix \ Filesystem::/dev/drbd0::/opt::/ext3::defaults postfix on node2 (/etc/ha.d/haresources) node2 \ drbddisk::postfix \ Filesystem::/dev/drbd0::/opt::/ext3::defaults postfix on node1 and node2 /etc/drbd.conf global { # we want to be able to use up to 2 drbd devices minor-count 2; dialog-refresh 1; # 5 seconds } resource postfix { protocol C; incon-degr-cmd "echo '!DRBD! pri on incon-degr' | wall ; sleep 2 ; exit 1"; on node1 { device /dev/drbd0; disk /dev/hda3; address 172.33.34.248:7788; meta-disk internal; } on node2 { device /dev/drbd0; disk /dev/hda2; address 172.33.34.250:7788; meta-disk internal; } disk { on-io-error detach; } net { max-buffers 2048; ko-count 4; on-disconnect reconnect; } syncer { rate 10M; group 1; al-extents 257; # must be a prime number } startup { wfc-timeout 0; degr-wfc-timeout 10; # 2 minutes. } } ----- Original Message ----- From: <drbd-user-request at lists.linbit.com> To: <drbd-user at lists.linbit.com> Sent: Wednesday, July 25, 2007 5:24 PM Subject: drbd-user Digest, Vol 36, Issue 23 > Send drbd-user mailing list submissions to > drbd-user at lists.linbit.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.linbit.com/mailman/listinfo/drbd-user > or, via email, send a message with subject or body 'help' to > drbd-user-request at lists.linbit.com > > You can reach the person managing the list at > drbd-user-owner at lists.linbit.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of drbd-user digest..." > > > Today's Topics: > > 1. _drbd_send_page error then weird state (Xn Nooby) > 2. Re: ServerForDLess (Lars Ellenberg) > 3. Re: ServerForDLess (Mike Tewner) > 4. Can't automatic mount /dev/drbd0 into directory (Nguy Tan Phuc) > 5. drbd module params fails (alex) > 6. Kernel oops with 2.6.14 kernel (Barbaro Maurizio) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 24 Jul 2007 11:40:38 -0400 > From: "Xn Nooby" <xnooby at gmail.com> > Subject: [DRBD-user] _drbd_send_page error then weird state > To: drbd-user at lists.linbit.com > Message-ID: > <bdf25fde0707240840j276e058ek2cdab8fa82a35ccf at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > I have two machines (92A & 92B) that are conencted via a 3ft patch cable > and > dedicated NICs, so I would not expect there to be a connection failure > between the two. It seems I had one. I had a similar error on another > pair > of machines a few weeks ago. Is there anything obvious from these two > abbreviated logs, or does it just look like they lost contact with > eachother? Something happened at 15:23:58. > > 92A was in the state of Primary/Unknown > 92B was in the state of Primary/Secondary > The machines were fine after being rebooted. > > > 92A: > > Jul 23 15:18:04 ispa092 sshd[24458]: Accepted publickey for root from > ::ffff:10.55.2.1 port 35275 ssh2 > Jul 23 15:23:58 ispa092 kernel: drbd0: _drbd_send_page: size=4096 len=1432 > sent=-4 > Jul 23 15:23:58 ispa092 kernel: drbd0: /usr/src/packages/BUILD/kernel- > smp-2.6.5/modules-2.6.5/drbd/drbd_main.c:1077: Connec > ted flags=0x120a > Jul 23 15:23:58 ispa092 kernel: klogd 1.4.1, ---------- state change > ---------- > Jul 23 15:23:58 ispa092 kernel: drbd0: kwpupd [5993]: cstate Connected --> > NetworkFailure > Jul 23 15:23:58 ispa092 kernel: drbd0: drbd0_receiver [3904]: cstate > NetworkFailure --> BrokenPipe > Jul 23 15:23:58 ispa092 kernel: drbd0: short read expecting header on > sock: > r=-512 > Jul 23 15:23:58 ispa092 kernel: drbd0: worker terminated > Jul 23 15:23:58 ispa092 kernel: drbd0: asender terminated > Jul 23 15:23:58 ispa092 kernel: drbd0: drbd0_receiver [3904]: cstate > BrokenPipe --> Unconnected > Jul 23 15:23:59 ispa092 kernel: drbd0: Connection lost. > Jul 23 15:23:59 ispa092 kernel: drbd0: drbd0_receiver [3904]: cstate > Unconnected --> WFConnection > > 92B: > > Jul 23 15:20:29 ispb092 -- MARK -- > Jul 23 15:23:58 ispb092 kernel: drbd0: meta connection shut down by peer. > Jul 23 15:23:58 ispb092 kernel: drbd0: drbd0_asender [4119]: cstate > Connected --> NetworkFailure > Jul 23 15:23:58 ispb092 kernel: drbd0: asender terminated > Jul 23 15:23:58 ispb092 kernel: drbd0: drbd0_receiver [3901]: cstate > NetworkFailure --> BrokenPipe > Jul 23 15:23:58 ispb092 kernel: drbd0: short read receiving data block: > read > 3992 expected 4096 > Jul 23 15:23:58 ispb092 kernel: drbd0: error receiving Data, l: 4112! > Jul 23 15:23:58 ispb092 kernel: drbd0: worker terminated > Jul 23 15:23:59 ispb092 kernel: drbd0: drbd0_receiver [3901]: cstate > BrokenPipe --> Unconnected > Jul 23 15:23:59 ispb092 kernel: drbd0: Connection lost. > Jul 23 15:23:59 ispb092 kernel: drbd0: drbd0_receiver [3901]: cstate > Unconnected --> WFConnection > Jul 23 15:23:59 ispb092 kernel: drbd0: drbd0_receiver [3901]: cstate > WFConnection --> WFReportParams > Jul 23 15:23:59 ispb092 kernel: drbd0: Handshake successful: DRBD Network > Protocol version 74 > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.linbit.com/pipermail/drbd-user/attachments/20070724/743cef14/attachment-0001.html > > ------------------------------ > > Message: 2 > Date: Tue, 24 Jul 2007 20:32:49 +0200 > From: Lars Ellenberg <lars.ellenberg at linbit.com> > Subject: Re: [DRBD-user] ServerForDLess > To: drbd-user at lists.linbit.com > Message-ID: <20070724183248.GC4214 at mail.linbit.com> > Content-Type: text/plain; charset=us-ascii > > please, when posting to mailing lists, > do use text/plain mail. > > On Tue, Jul 24, 2007 at 09:07:23AM +0200, caubert wrote: >> >> Hi list, >> I have got a serious problem with drbd-0.7.21-1 between two server >> installed with Suse Linux Enterprise Server 9 SP3. >> Sometime synchronization is down and `cat /proc/drbd`show this errors >> : "ServerForDLess" and "DiskForDLess" > > if you had looked into the kernel log, > you had seen the io subsystem report io errors. > > your hard drive is broken. > > unfortunatley, sometimes it cannot > cope with failing hardware gracefully, and gets stuck... > > one typical operating system behaviour in presence of io errors > is to become unresponsive... linux does not too bad, though. > > drbd 8 has much improvements in coping with hardware > (well, lower-layer) errors. but still, > drbd cannot fix hardware. > > you should have a raid1 (raid5, ...) below drbd. > you should have monitoring in place to alert you > when there are io errors, e.g. SMART monitor your disks, > monitor your hardware raid status. at minimum have a logcheck > that scans for certain patterns in log files. > > -- > : Lars Ellenberg Tel +43-1-8178292-0 : > : LINBIT Information Technologies GmbH Fax +43-1-8178292-82 : > : Vivenotgasse 48, A-1120 Vienna/Europe http://www.linbit.com : > __ > please use the "List-Reply" function of your email client. > > > ------------------------------ > > Message: 3 > Date: Wed, 25 Jul 2007 09:07:32 +0300 > From: "Mike Tewner" <tewner at gmail.com> > Subject: Re: [DRBD-user] ServerForDLess > To: drbd-user at lists.linbit.com > Message-ID: > <34337f660707242307y321bced5k85436e6599639a6c at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > On 7/24/07, Lars Ellenberg <lars.ellenberg at linbit.com> wrote: >> >> please, when posting to mailing lists, >> do use text/plain mail. >> >> On Tue, Jul 24, 2007 at 09:07:23AM +0200, caubert wrote: >> > >> > Hi list, >> > I have got a serious problem with drbd-0.7.21-1 between two server >> > installed with Suse Linux Enterprise Server 9 SP3. >> > Sometime synchronization is down and `cat /proc/drbd`show this >> > errors >> > : "ServerForDLess" and "DiskForDLess" >> >> if you had looked into the kernel log, >> you had seen the io subsystem report io errors. > > > What in his /proc/drbd output specifically points that out? > > BTW - I'm following your thread on the linux kernel list - Though I don't > have any pull there, I did plug drbd on kerneltrap :-) > > > your hard drive is broken. >> >> unfortunatley, sometimes it cannot >> cope with failing hardware gracefully, and gets stuck... >> >> one typical operating system behaviour in presence of io errors >> is to become unresponsive... linux does not too bad, though. >> >> drbd 8 has much improvements in coping with hardware >> (well, lower-layer) errors. but still, >> drbd cannot fix hardware. >> >> you should have a raid1 (raid5, ...) below drbd. >> you should have monitoring in place to alert you >> when there are io errors, e.g. SMART monitor your disks, >> monitor your hardware raid status. at minimum have a logcheck >> that scans for certain patterns in log files. >> >> -- >> : Lars Ellenberg Tel +43-1-8178292-0 : >> : LINBIT Information Technologies GmbH Fax +43-1-8178292-82 : >> : Vivenotgasse 48, A-1120 Vienna/Europe http://www.linbit.com : >> __ >> please use the "List-Reply" function of your email client. >> _______________________________________________ >> drbd-user mailing list >> drbd-user at lists.linbit.com >> http://lists.linbit.com/mailman/listinfo/drbd-user >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.linbit.com/pipermail/drbd-user/attachments/20070725/30f79fca/attachment.html > > ------------------------------ > > Message: 4 > Date: Wed, 25 Jul 2007 15:25:08 +0700 > From: "Nguy Tan Phuc" <phucnt at atvn.com.vn> > Subject: [DRBD-user] Can't automatic mount /dev/drbd0 into directory > To: <drbd-user at lists.linbit.com> > Message-ID: <003801c7ce95$4fe51290$072921ac at itntphuc> > Content-Type: text/plain; charset="iso-8859-1" > > Hi All > I works on heartbeat intergrate DRBD,everything is good,but on primary > heartbeat and DRBD are startup success,It can't auto mount /dev/drbd0 > /opt,service mail don't startup.Why??? > Thanks > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.linbit.com/pipermail/drbd-user/attachments/20070725/2bb8708d/attachment.htm > > ------------------------------ > > Message: 5 > Date: Wed, 25 Jul 2007 11:29:38 +0300 > From: alex <alshu at tut.by> > Subject: [DRBD-user] drbd module params fails > To: drbd-user at lists.linbit.com > Message-ID: <web-364019039 at speedy.tutby.com> > Content-Type: text/plain; charset="windows-1251"; format="flowed" > > Hello all! > I try to use last SVN snapshot of DRBD and found one bug. In 'drbd' > init script there is follow string: > > $MODPROBE -s drbd `$DRBDADM sh-mod-parms` $ADD_MOD_PARAM || { > echo "Can not load the drbd module."$'\n'; exit 20 > } > > 'drbdadmin sh-mod-parms' return 'minor-count 32'. But with this > parameter 'drbd' module don't loads and 'modprobe' return '1'. When i > remove 'drbdadmin' call, all started fine. > I have commented 'minor-count 5;' string in my 'drbd.conf' file. > > With 'drbd-8.0.4' i haven't this problem. > > Aleksandr Shubnik (Alex) > > > ------- > Ñîáðàëèñü â îòïóñê? Ïîèñê òóðîâ - ÒÓÒ: http://tourism.tut.by > > > ------------------------------ > > Message: 6 > Date: Wed, 25 Jul 2007 11:36:08 +0200 > From: "Barbaro Maurizio" <Maurizio.Barbaro at italtel.it> > Subject: [DRBD-user] Kernel oops with 2.6.14 kernel > To: <drbd-user at lists.linbit.com> > Message-ID: <47F792F8B9380249AD789203F4C0CF10FC5316 at BESTWO.corp.dom> > Content-Type: text/plain; charset="us-ascii" > > Good morning everybody. > > I'm new in the list, so forgive me if topic is outdated. > > I'm using drbd 8.0.4 with 2.6.14 kernel from WindRiver. When I try to > setup drbd (drdbadm up all) the userland tools cannot communicate with > driver, as the kernel module drbd.ko generates an oops: > How can I verify if my kernel configuration is suitable for drbd? > Thanks in advance, > Maurizio > > Unable to handle kernel NULL pointer dereference at virtual address > 00000000 > printing eip: > f8a33860 > *pde = 00000000 > Oops: 0000 [#1] > SMP > LTT NESTING LEVEL : 0 > Modules linked in: drbd > CPU: 1 > EIP: 0060:[<f8a33860>] Not tainted VLI > EFLAGS: 00010217 (2.6.14.7-selinux1) > EIP is at drbd_nl_net_conf+0x507/0x618 [drbd] > eax: 0000003b ebx: f7d4d800 ecx: c311f100 edx: 00000000 > esi: f703c4c0 edi: 00000078 ebp: f7d27f10 esp: f7d27eb4 > ds: 007b es: 007b ss: 0068 > Process cqueue/1 (pid: 761, threadinfo=f7d27000 task=f7cc23b0) > Stack: f7d27ee4 00000014 f8a3d422 f6c42d4c f7d27eed 00000000 00000000 > 00000000 > f6c42c00 00000020 f6c19694 f6c42e24 63616d68 61687328 c3002931 > f7cc23b0 > f7cc24d8 fffffffb f7cc23b0 00000003 f6c19680 f6c42e24 f8a45248 > f7d27f34 > Call Trace: > [<c0103fad>] show_stack+0x7a/0x90 > [<c010412b>] show_registers+0x14f/0x1c7 > [<c010516b>] die+0x11a/0x195 > [<c03a6c53>] do_page_fault+0xa77/0x360d > [<c0103cdb>] error_code+0x4f/0x54 > [<f8a345ec>] drbd_connector_callback+0xb5/0x1b2 [drbd] > [<c02b359c>] cn_queue_wrapper+0xc/0x23 > [<c013db0e>] worker_thread+0x197/0x219 > [<c0140d5b>] kthread+0x96/0xc3 > [<c010105d>] kernel_thread_helper+0x5/0xb > Code: f0 48 31 d2 85 c0 89 45 b4 74 0b 29 f8 83 f8 05 0f 8f db 00 00 00 > 81 fa 18 > fc ff ff 89 55 c0 bf 78 00 00 00 2e 0f 87 36 fb ff ff <8b> 02 66 bf 79 > 00 8b 40 > 28 80 78 08 02 0f 84 4a fd ff ff 8b 45 > <1> > > > Internet Email Confidentiality Footer > ----------------------------------------------------------------------------------------------------- > La presente comunicazione, con le informazioni in essa contenute e ogni > documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' > indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non > siete i destinatari/autorizzati siete avvisati che qualsiasi azione, > copia, comunicazione, divulgazione o simili basate sul contenuto di tali > informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., > D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se > avete ricevuto questa comunicazione per errore, vi preghiamo di darne > immediata notizia al mittente e di distruggere il messaggio originale e > ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il > contenuto. > > This e-mail and its attachments are intended for the addressee(s) only and > are confidential and/or may contain legally privileged information. If you > have received this message by mistake or are not one of the addressees > above, you may take no action based on it, and you may not copy or show it > to anyone; please reply to this e-mail and point out the error which has > occurred. > ----------------------------------------------------------------------------------------------------- > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.linbit.com/pipermail/drbd-user/attachments/20070725/d34fee95/attachment.html > > ------------------------------ > > _______________________________________________ > drbd-user mailing list > drbd-user at lists.linbit.com > http://lists.linbit.com/mailman/listinfo/drbd-user > > > End of drbd-user Digest, Vol 36, Issue 23 > ***************************************** >