[DRBD-user] secondary/secondary

Manuel Christen mc at schaeffer-ag.de
Mon Oct 5 20:13:59 CEST 2009

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


Hi Mark

1000 Thanks!!! Its the solution of my problem ;-)

:-)
Manuel

"Mark Watts" <m.watts at eris.qinetiq.com> schrieb:
> On Mon, 2009-10-05 at 17:28 +0200, Manuel Christen wrote:
>> Hello
>> 
>> I use DRBD 8.2.7  with OpenSuse and without hartbeath. Only an
>> replication of two data disk.
> 
> Heartbeat is traditionally used to manage drbddisk:: and Filesystem::
> resources, thus promoting the resource to Primary on a prefered cluster
> member and managing fail-over in the event of failure of the primary
> node.
> 
> You can, if you choose not to use heartbeat to automatically manage
> failover, use "become-primary-on <host>" in drbd.conf to allow the drbd
> init script to promote the resource on that node.
> Manual intervention would then be required to promote the other cluster
> member in the event of the Primary failing.
> 
> Mark.
> 
> 
>> I have only one problem: everytime when i restart the drbd service then
>> it falls to secondary/secondary on both ressources. With
>> "drbdadm primary all" I set it on the primary node to primary and
>> everythings looks ok.
>> 
>> The disk on the primary node is permanently mounted.
>> 
>> I attached the drbd.conf and the part of the messages log with the
>> drbd restart messages. The logs are from the primary node.
>> 
>> Has anyone an idea what is wrong with my configuration or has an idea
>> how I can find the problem?
>> 
>> thanks a lot
>> Manuel
>> 
>> 
>> ============= START DRBD.CONF ======================
>> global {
>>    dialog-refresh 1;
>>    usage-count no;
>> }
>> common {
>>    protocol C;
>>         syncer {
>>         rate 100M;
>>         }
>> }
>> resource netz {
>>    on zeus {
>>       device    /dev/drbd1;
>>       address   10.0.0.111:7788;
>>       meta-disk internal;
>>       disk      /dev/vol/net1;
>>    }
>>    on hades {
>>       device    /dev/drbd1;
>>       address   10.0.0.5:7788;
>>       meta-disk internal;
>>       disk      /dev/system/netz;
>>    }
>> }
>> resource netzdaten {
>>    on zeus {
>>       device    /dev/drbd2;
>>       address   10.0.0.111:7789;
>>       meta-disk internal;
>>       disk      /dev/vol/net2;
>>    }
>>    on hades {
>>       device    /dev/drbd2;
>>       address   10.0.0.5:7789;
>>       meta-disk internal;
>>       disk      /dev/system/netzdaten;
>>    }
>> }
>> ============= START VAR/LOG/MESSAGES DRBD restart ====
>> Oct  5 16:28:05 zeus kernel: drbd: initialised. Version: 8.2.6
>> (api:88/proto:86-88)
>> Oct  5 16:28:05 zeus kernel: drbd: GIT-hash:
>> 3e69822d3bb4920a8c1bfdf7d647169eba7d2eb4 build by phil at fat-tyre,
>> 2008-05-30 12:59:17
>> Oct  5 16:28:05 zeus kernel: drbd: registered as block device major 147
>> Oct  5 16:28:05 zeus kernel: drbd: minor_table @ 0xffff8803e6bd0880
>> Oct  5 16:28:05 zeus kernel: drbd1: disk( Diskless -> Attaching )
>> Oct  5 16:28:05 zeus kernel: drbd1: Starting worker thread (from cqueue
>> [38])
>> Oct  5 16:28:05 zeus kernel: klogd 1.4.1, ---------- state change
----------
>> Oct  5 16:28:05 zeus kernel: drbd1: No usable activity log found.
>> Oct  5 16:28:05 zeus kernel: drbd1: max_segment_size ( = BIO size ) =
32768
>> Oct  5 16:28:05 zeus kernel: drbd1: drbd_bm_resize called with capacity
>> == 307190552
>> Oct  5 16:28:05 zeus kernel: drbd1: resync bitmap: bits=38398819
>> words=599982
>> Oct  5 16:28:05 zeus kernel: drbd1: size = 146 GB (153595276 KB)
>> Oct  5 16:28:05 zeus kernel: drbd1: reading of bitmap took 8 jiffies
>> Oct  5 16:28:05 zeus kernel: drbd1: recounting of set bits took
>> additional 1 jiffies
>> Oct  5 16:28:05 zeus kernel: drbd1: 136 GB (35679075 bits) marked
>> out-of-sync by on disk bit-map.
>> Oct  5 16:28:05 zeus kernel: drbd1: disk( Attaching -> UpToDate ) pdsk(
>> DUnknown -> Outdated )
>> Oct  5 16:28:05 zeus kernel: drbd1: Writing meta data super block now.
>> Oct  5 16:28:05 zeus kernel: drbd1: Barriers not supported on meta data
>> device - disabling
>> Oct  5 16:28:05 zeus kernel: drbd2: disk( Diskless -> Attaching )
>> Oct  5 16:28:05 zeus kernel: drbd2: Starting worker thread (from cqueue
>> [38])
>> Oct  5 16:28:05 zeus kernel: drbd2: No usable activity log found.
>> Oct  5 16:28:05 zeus kernel: drbd2: max_segment_size ( = BIO size ) =
32768
>> Oct  5 16:28:05 zeus kernel: drbd2: drbd_bm_resize called with capacity
>> == 81917424
>> Oct  5 16:28:05 zeus kernel: drbd2: resync bitmap: bits=10239678
>> words=159995
>> Oct  5 16:28:05 zeus kernel: drbd2: size = 39 GB (40958712 KB)
>> Oct  5 16:28:05 zeus kernel: drbd2: reading of bitmap took 4 jiffies
>> Oct  5 16:28:05 zeus kernel: drbd2: recounting of set bits took
>> additional 0 jiffies
>> Oct  5 16:28:05 zeus kernel: drbd2: 10 GB (2600638 bits) marked
>> out-of-sync by on disk bit-map.
>> Oct  5 16:28:05 zeus kernel: drbd2: disk( Attaching -> UpToDate ) pdsk(
>> DUnknown -> Outdated )
>> Oct  5 16:28:05 zeus kernel: drbd2: Writing meta data super block now.
>> Oct  5 16:28:05 zeus kernel: drbd2: Barriers not supported on meta data
>> device - disabling
>> Oct  5 16:28:05 zeus kernel: drbd1: conn( StandAlone -> Unconnected )
>> Oct  5 16:28:05 zeus kernel: drbd1: Starting receiver thread (from
>> drbd1_worker [8428])
>> Oct  5 16:28:05 zeus kernel: drbd1: receiver (re)started
>> Oct  5 16:28:05 zeus kernel: drbd1: conn( Unconnected -> WFConnection )
>> Oct  5 16:28:05 zeus kernel: drbd2: conn( StandAlone -> Unconnected )
>> Oct  5 16:28:05 zeus kernel: drbd2: Starting receiver thread (from
>> drbd2_worker [8435])
>> Oct  5 16:28:05 zeus kernel: drbd2: receiver (re)started
>> Oct  5 16:28:05 zeus kernel: drbd2: conn( Unconnected -> WFConnection )
>> Oct  5 16:28:05 zeus kernel: drbd1: Handshake successful: Agreed network
>> protocol version 88
>> Oct  5 16:28:05 zeus kernel: drbd1: conn( WFConnection -> WFReportParams
)
>> Oct  5 16:28:05 zeus kernel: drbd1: Starting asender thread (from
>> drbd1_receiver [8444])
>> Oct  5 16:28:05 zeus kernel: drbd1: data-integrity-alg: <not-used>
>> Oct  5 16:28:05 zeus kernel: drbd1: max_segment_size ( = BIO size ) =
4096
>> Oct  5 16:28:05 zeus kernel: drbd1: Becoming sync source due to disk
states.
>> Oct  5 16:28:05 zeus kernel: drbd1: peer( Unknown -> Secondary ) conn(
>> WFReportParams -> WFBitMapS ) pdsk( Outdated -> Inconsistent )
>> Oct  5 16:28:05 zeus kernel: drbd1: Writing meta data super block now.
>> Oct  5 16:28:05 zeus kernel: drbd2: Handshake successful: Agreed network
>> protocol version 88
>> Oct  5 16:28:05 zeus kernel: drbd2: conn( WFConnection -> WFReportParams
)
>> Oct  5 16:28:05 zeus kernel: drbd2: Starting asender thread (from
>> drbd2_receiver [8446])
>> Oct  5 16:28:05 zeus kernel: drbd2: data-integrity-alg: <not-used>
>> Oct  5 16:28:05 zeus kernel: drbd2: max_segment_size ( = BIO size ) =
4096
>> Oct  5 16:28:05 zeus kernel: drbd2: Becoming sync source due to disk
states.
>> Oct  5 16:28:05 zeus kernel: drbd2: peer( Unknown -> Secondary ) conn(
>> WFReportParams -> WFBitMapS ) pdsk( Outdated -> Inconsistent )
>> Oct  5 16:28:05 zeus kernel: drbd2: Writing meta data super block now.
>> Oct  5 16:28:06 zeus kernel: drbd2: conn( WFBitMapS -> SyncSource )
>> Oct  5 16:28:06 zeus kernel: drbd2: Began resync as SyncSource (will
>> sync 10402552 KB [2600638 bits set]).
>> Oct  5 16:28:06 zeus kernel: drbd2: Writing meta data super block now.
>> Oct  5 16:28:07 zeus kernel: drbd1: conn( WFBitMapS -> SyncSource )
>> Oct  5 16:28:07 zeus kernel: drbd1: Began resync as SyncSource (will
>> sync 142716300 KB [35679075 bits set]).
>> Oct  5 16:28:07 zeus kernel: drbd1: Writing meta data super block now.
>> 
>> ============= START VAR/LOG/MESSAGES drbdadm primary all ====
>> Oct  5 16:28:23 zeus kernel: drbd1: role( Secondary -> Primary )
>> Oct  5 16:28:25 zeus kernel: drbd1: Writing meta data super block now.
>> Oct  5 16:28:25 zeus kernel: drbd2: role( Secondary -> Primary )
>> Oct  5 16:28:26 zeus kernel: drbd2: Writing meta data super block now.
>> _______________________________________________
>> drbd-user mailing list
>> drbd-user at lists.linbit.com
>> http://lists.linbit.com/mailman/listinfo/drbd-user
> -- 
> Mark Watts BSc RHCE MBCS
> Senior Systems Engineer, Managed Services Manpower
> www.QinetiQ.com
> QinetiQ - Delivering customer-focused solutions
> GPG Key: http://www.linux-corner.info/mwatts.gpg
> 

--------------------------------
 _______________________________________________
> 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