[DRBD-user] Compilation problem

зоррыч zorro at megatrone.ru
Thu Mar 15 05:34:41 CET 2012

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Thank you, I created a version of the RPM packages 8,4,1.
However, the cluster is not going to drbd.
Node-1-
[root at noc-1-synt ~]# lsmod | grep drbd
drbd                  285171  1
libcrc32c               1204  1 drbd
[root at noc-1-synt ~]# cat /proc/drbd
version: 8.4.1 (api:1/proto:86-100)
GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by
root at noc-1-m77.rutube.ru, 2012-03-14 10:05:49
 0: cs:StandAlone ro:Secondary/Unknown ds:Inconsistent/DUnknown   r----s
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b
oos:512459460

logs:
Mar 14 19:16:40 noc-1-synt kernel: block drbd0: disk( Inconsistent -> Failed
)
Mar 14 19:16:40 noc-1-synt kernel: block drbd0: disk( Failed -> Diskless )
Mar 14 19:16:40 noc-1-synt kernel: block drbd0: drbd_bm_resize called with
capacity == 0
Mar 14 19:16:40 noc-1-synt kernel: d-con r0: Terminating worker thread
Mar 14 19:16:40 noc-1-synt kernel: drbd: module cleanup done.
Mar 14 19:16:40 noc-1-synt kernel: events: mcg drbd: 3
Mar 14 19:16:40 noc-1-synt kernel: drbd: initialized. Version: 8.4.1
(api:1/proto:86-100)
Mar 14 19:16:40 noc-1-synt kernel: drbd: GIT-hash:
91b4c048c1a0e06777b5f65d312b38d47abaea80 build by root at noc-1-synt.rutube.ru,
2012-03-14 10:05:49
Mar 14 19:16:40 noc-1-synt kernel: drbd: registered as block device major
147
Mar 14 19:16:40 noc-1-synt kernel: d-con r0: Starting worker thread (from
drbdsetup [1929])
Mar 14 19:16:40 noc-1-synt kernel: block drbd0: disk( Diskless -> Attaching
)
Mar 14 19:16:40 noc-1-synt kernel: d-con r0: Method to ensure write
ordering: barrier
Mar 14 19:16:40 noc-1-synt kernel: block drbd0: max BIO size = 4096
Mar 14 19:16:40 noc-1-synt kernel: block drbd0: drbd_bm_resize called with
capacity == 1024918920
Mar 14 19:16:40 noc-1-synt kernel: block drbd0: resync bitmap:
bits=128114865 words=2001795 pages=3910
Mar 14 19:16:40 noc-1-synt kernel: block drbd0: size = 489 GB (512459460 KB)
Mar 14 19:16:41 noc-1-synt kernel: block drbd0: bitmap READ of 3910 pages
took 112 jiffies
Mar 14 19:16:41 noc-1-synt kernel: block drbd0: recounting of set bits took
additional 13 jiffies
Mar 14 19:16:41 noc-1-synt kernel: block drbd0: 489 GB (128114865 bits)
marked out-of-sync by on disk bit-map.
Mar 14 19:16:41 noc-1-synt kernel: block drbd0: Suspended AL updates
Mar 14 19:16:41 noc-1-synt kernel: block drbd0: disk( Attaching ->
Inconsistent )
Mar 14 19:16:41 noc-1-synt kernel: block drbd0: attached to UUIDs
0000000000000004:0000000000000000:0000000000000000:0000000000000000
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: conn( StandAlone -> Unconnected
)
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: Starting receiver thread (from
drbd_w_r0 [1930])
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: receiver (re)started
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: conn( Unconnected ->
WFConnection )
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: Handshake successful: Agreed
network protocol version 100
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: conn( WFConnection ->
WFReportParams )
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: Starting asender thread (from
drbd_r_r0 [1933])
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: incompatible
allow-two-primaries settings
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: conn( WFReportParams ->
Disconnecting )
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: error receiving ReportProtocol,
e: -5 l: 1!
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: asender terminated
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: Terminating asender thread
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: Connection closed
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: conn( Disconnecting ->
StandAlone )
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: receiver terminated
Mar 14 19:16:41 noc-1-synt kernel: d-con r0: Terminating receiver thread

Node-2:
root at noc-1 ~]# lsmod | grep drbd
drbd                  285171  1
libcrc32c               1204  1 drbd

[root at noc-1-m77 ~]# cat /proc/drbd
version: 8.4.1 (api:1/proto:86-100)
GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by
root at noc-1-synt.rutube.ru, 2012-03-14 10:05:49
 0: cs:StandAlone ro:Secondary/Unknown ds:Inconsistent/DUnknown   r----s
    ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0 ep:1 wo:b
oos:512459460
[root at noc-1-m77 ~]#


Logs:
Jun 25 15:40:42 noc-1-m77 kernel: block drbd0: disk( Inconsistent -> Failed
)
Jun 25 15:40:42 noc-1-m77 kernel: block drbd0: disk( Failed -> Diskless )
Jun 25 15:40:42 noc-1-m77 kernel: block drbd0: drbd_bm_resize called with
capacity == 0
Jun 25 15:40:42 noc-1-m77 kernel: d-con r0: Terminating worker thread
Jun 25 15:40:42 noc-1-m77 kernel: drbd: module cleanup done.
Jun 25 15:40:42 noc-1-m77 kernel: events: mcg drbd: 3
Jun 25 15:40:42 noc-1-m77 kernel: drbd: initialized. Version: 8.4.1
(api:1/proto:86-100)
Jun 25 15:40:42 noc-1-m77 kernel: drbd: GIT-hash:
91b4c048c1a0e06777b5f65d312b38d47abaea80 build by root at noc-1-synt.rutube.ru,
2012-03-14 10:05:49
Jun 25 15:40:42 noc-1-m77 kernel: drbd: registered as block device major 147
Jun 25 15:40:42 noc-1-m77 kernel: d-con r0: Starting worker thread (from
drbdsetup [2165])
Jun 25 15:40:42 noc-1-m77 kernel: block drbd0: disk( Diskless -> Attaching )
Jun 25 15:40:42 noc-1-m77 kernel: d-con r0: Method to ensure write ordering:
barrier
Jun 25 15:40:42 noc-1-m77 kernel: block drbd0: max BIO size = 4096
Jun 25 15:40:42 noc-1-m77 kernel: block drbd0: drbd_bm_resize called with
capacity == 1024918920
Jun 25 15:40:42 noc-1-m77 kernel: block drbd0: resync bitmap: bits=128114865
words=2001795 pages=3910
Jun 25 15:40:42 noc-1-m77 kernel: block drbd0: size = 489 GB (512459460 KB)
Jun 25 15:40:42 noc-1-m77 kernel: block drbd0: bitmap READ of 3910 pages
took 88 jiffies
Jun 25 15:40:42 noc-1-m77 kernel: block drbd0: recounting of set bits took
additional 12 jiffies
Jun 25 15:40:42 noc-1-m77 kernel: block drbd0: 489 GB (128114865 bits)
marked out-of-sync by on disk bit-map.
Jun 25 15:40:42 noc-1-m77 kernel: block drbd0: Suspended AL updates
Jun 25 15:40:42 noc-1-m77 kernel: block drbd0: disk( Attaching ->
Inconsistent )
Jun 25 15:40:42 noc-1-m77 kernel: block drbd0: attached to UUIDs
0000000000000004:0000000000000000:0000000000000000:0000000000000000
Jun 25 15:40:42 noc-1-m77 kernel: d-con r0: conn( StandAlone -> Unconnected
)
Jun 25 15:40:42 noc-1-m77 kernel: d-con r0: Starting receiver thread (from
drbd_w_r0 [2166])
Jun 25 15:40:42 noc-1-m77 kernel: d-con r0: receiver (re)started
Jun 25 15:40:42 noc-1-m77 kernel: d-con r0: conn( Unconnected ->
WFConnection )
Jun 25 15:40:46 noc-1-m77 kernel: d-con r0: Handshake successful: Agreed
network protocol version 100
Jun 25 15:40:46 noc-1-m77 kernel: d-con r0: conn( WFConnection ->
WFReportParams )
Jun 25 15:40:46 noc-1-m77 kernel: d-con r0: Starting asender thread (from
drbd_r_r0 [2169])
Jun 25 15:40:46 noc-1-m77 kernel: d-con r0: incompatible allow-two-primaries
settings
Jun 25 15:40:46 noc-1-m77 kernel: d-con r0: conn( WFReportParams ->
Disconnecting )
Jun 25 15:40:46 noc-1-m77 kernel: d-con r0: error receiving ReportProtocol,
e: -5 l: 1!
Jun 25 15:40:46 noc-1-m77 kernel: d-con r0: asender terminated
Jun 25 15:40:46 noc-1-m77 kernel: d-con r0: Terminating asender thread
Jun 25 15:40:46 noc-1-m77 kernel: d-con r0: Connection closed
Jun 25 15:40:46 noc-1-m77 kernel: d-con r0: conn( Disconnecting ->
StandAlone )
Jun 25 15:40:46 noc-1-m77 kernel: d-con r0: receiver terminated
Jun 25 15:40:46 noc-1-m77 kernel: d-con r0: Terminating receiver thread



The servers at different times t to use the test circuit.

Config:
[root at noc-1-m77 ~]# cat /etc/drbd.d/r0.res
# create new
 resource r0 {
    protocol C;
    # DRBD device
    device /dev/drbd0;
    # phisical device
    disk /dev/vg_noc1m77/lv_home;
    meta-disk internal;
    on noc-1-synt.rutube.ru {
       # IP address:port
       address 10.1.20.10:7788;
    }
    on noc-1-m77.rutube.ru {
       address 10.2.20.9:7788;
    }
 }

In what may be the problem?


-----Original Message-----
From: drbd-user-bounces at lists.linbit.com
[mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of Matt Graham
Sent: Wednesday, March 14, 2012 7:58 PM
To: drbd-user at lists.linbit.com
Subject: Re: [DRBD-user] Compilation problem

> On Mar 14, 2012, at 7:07 AM, <zorro at megatrone.ru> wrote:
>> I want to compile drdb-8.3:
>> [root at noc-1-synt drbd-8.3]# ./configure --enable-spec --with-km
[snip]
>> config.status: creating drbd.spec
>> config.status: creating drbd-km.spec
>> fail:
>> [root at noc-1-synt drbd-8.3]# make tgz

As ./configure --help says, the --enable-spec option doesn't create a
Makefile.  It creates RPM spec files.  You don't want to run make after
creating RPM spec files.  You want to do something like "rpmbuild -ba
drbd.spec" , which will build RPMs for the userland part of DRBD.  Repeat
for drbd-km.spec to build the kernel module.  (Really, this is a bit more
trouble than it's worth unless you've got several DRBD-using machines.)

From: Marcelo Pereira <marcelops at gmail.com>
> If you're installing it, why don't you install the latest version (8.4)?

The bugs in 8.3 are well-known, while traffic on this here mailing list says
they're still finding new bugs in 8.4.

--
Matt G / Dances With Crows
The Crow202 Blog:  http://crow202.org/wordpress/ There is no Darkness in
Eternity/But only Light too dim for us to see

_______________________________________________
drbd-user mailing list
drbd-user at lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user




More information about the drbd-user mailing list