FYI:

parts of my config:
   <primitive id="fs_main_www" class="ocf" type="Filesystem" 
provider="heartbeat">
     <instance_attributes id="fs_main_www_instance_attrs">
       <attributes>
         <nvpair id="c4decac4-d1c8-487b-b522-9149982418cd" name="device" 
value="/dev/drbd0"/>
         <nvpair id="a5d1545d-860b-4183-9b1c-f9e99f2b0451" name="directory" 
value="/www"/>
         <nvpair id="ad6c97a2-6641-4b0c-ad80-db8bc85a4076" name="fstype" 
value="ext3"/>
         <nvpair id="fs_main_www_target_role" name="target_role" 
value="stopped"/>
       </attributes>
     </instance_attributes>
   </primitive>
   <master_slave id="drbd0">
     <instance_attributes id="drbd0_instance_attrs">
       <attributes>
         <nvpair id="drbd0_clone_max" name="clone_max" value="2"/>
         <nvpair id="drbd0_clone_node_max" name="clone_node_max" value="1"/>
         <nvpair id="drbd0_master_max" name="master_max" value="1"/>
         <nvpair id="drbd0_master_node_max" name="master_node_max" value="1"/>
       </attributes>
     </instance_attributes>
     <primitive id="drbd_main_www" class="ocf" type="drbd" provider="heartbeat">
       <instance_attributes id="drbd_main_www_instance_attrs">
         <attributes>
           <nvpair id="d302e4a1-6325-4fb6-8086-31918973d6b9" 
name="drbd_resource" value="drbd0"/>
         </attributes>
       </instance_attributes>
     </primitive>
   </master_slave>


   <rsc_order id="order_drbd_fs" from="fs_main_www" to="drbd0" action="start" 
to_action="promote"/>


A part of my /var/log/syslog:

Oct 22 00:09:30 dokeos01 drbd[31891]: [31930]: DEBUG: drbd0: Calling drbdadm -c 
/etc/drbd.conf up drbd0
Oct 22 00:09:30 dokeos01 kernel: drbd0: disk( Diskless -> Attaching ) 
Oct 22 00:09:31 dokeos01 kernel: drbd0: Found 6 transactions (324 active 
extents) in activity log.
Oct 22 00:09:31 dokeos01 kernel: drbd0: max_segment_size ( = BIO size ) = 32768
Oct 22 00:09:31 dokeos01 kernel: drbd0: drbd_bm_resize called with capacity == 
589904480
Oct 22 00:09:31 dokeos01 kernel: drbd0: resync bitmap: bits=73738060 
words=2304316
Oct 22 00:09:31 dokeos01 kernel: drbd0: size = 281 GB (294952240 KB)
Oct 22 00:09:31 dokeos01 haclient: on_event:evt:cib_changed
Oct 22 00:09:31 dokeos01 kernel: drbd0: reading of bitmap took 54 jiffies
Oct 22 00:09:31 dokeos01 kernel: drbd0: recounting of set bits took additional 
3 jiffies
Oct 22 00:09:31 dokeos01 kernel: drbd0: 0 KB marked out-of-sync by on disk 
bit-map.
Oct 22 00:09:31 dokeos01 kernel: drbd0: disk( Attaching -> UpToDate ) 
Oct 22 00:09:31 dokeos01 kernel: drbd0: Writing meta data super block now.
Oct 22 00:09:31 dokeos01 kernel: drbd0: conn( StandAlone -> Unconnected ) 
Oct 22 00:09:31 dokeos01 kernel: drbd0: receiver (re)started
Oct 22 00:09:31 dokeos01 kernel: drbd0: conn( Unconnected -> WFConnection ) 
Oct 22 00:09:31 dokeos01 kernel: drbd0: conn( WFConnection -> WFReportParams ) 
Oct 22 00:09:31 dokeos01 kernel: drbd0: Handshake successful: DRBD Network 
Protocol version 86
Oct 22 00:09:31 dokeos01 kernel: drbd0: Peer authenticated using 20 bytes of 
'sha1' HMAC
Oct 22 00:09:31 dokeos01 drbd[31891]: [31942]: DEBUG: drbd0: Exit code 0
Oct 22 00:09:31 dokeos01 drbd[31891]: [31943]: DEBUG: drbd0: Command output: 
Oct 22 00:09:31 dokeos01 drbd[31891]: [31945]: DEBUG: drbd0: Calling drbdadm -c 
/etc/drbd.conf state drbd0
Oct 22 00:09:31 dokeos01 drbd[31891]: [31952]: DEBUG: drbd0: Exit code 0
Oct 22 00:09:31 dokeos01 drbd[31891]: [31953]: DEBUG: drbd0: Command output: 
Secondary/Unknown
Oct 22 00:09:31 dokeos01 kernel: drbd0: peer( Unknown -> Secondary ) conn( 
WFReportParams -> Connected ) pdsk( DUnknown -> UpToDate ) 
Oct 22 00:09:31 dokeos01 kernel: drbd0: Writing meta data super block now.
Oct 22 00:09:31 dokeos01 lrmd: [31416]: info: RA output: 
(drbd_main_www:1:start:stdout)  
Oct 22 00:09:31 dokeos01 drbd[31891]: [31961]: DEBUG: drbd0: Calling drbdadm -c 
/etc/drbd.conf cstate drbd0
Oct 22 00:09:31 dokeos01 drbd[31891]: [31968]: DEBUG: drbd0: Exit code 0
Oct 22 00:09:31 dokeos01 drbd[31891]: [31969]: DEBUG: drbd0: Command output: 
Connected
Oct 22 00:09:31 dokeos01 drbd[31891]: [31970]: DEBUG: drbd0 status: 
Secondary/Unknown Secondary Unknown Connected
Oct 22 00:09:31 dokeos01 drbd[31891]: [31971]: DEBUG: drbd0 start: succeeded.
Oct 22 00:09:31 dokeos01 crmd: [31419]: info: process_lrm_event: LRM operation 
drbd_main_www:1_start_0 (call=14, rc=0) complete 
Oct 22 00:09:31 dokeos01 haclient: on_event: from message queue: evt:cib_changed
Oct 22 00:09:32 dokeos01 haclient: on_event:evt:cib_changed

<<<<<<<<< now I start the FS >>>>>>>

Oct 22 00:09:46 dokeos01 mgmtd: [31420]: info: (delete)xml:<nvpair 
id="fs_main_www_target_role">
Oct 22 00:09:46 dokeos01 crmd: [31419]: info: do_lrm_rsc_op: Performing 
op=fs_main_www_start_0 key=9:31:51aea931-91b7-4f33-ab06-e90080299469)
Oct 22 00:09:46 dokeos01 lrmd: [31416]: info: rsc:fs_main_www: start
Oct 22 00:09:46 dokeos01 cib: [31978]: info: retrieveCib: Reading cluster 
configuration from: /var/lib/heartbeat/crm/cib.xml (digest: 
/var/lib/heartbeat/crm/cib.xml.sig)
Oct 22 00:09:46 dokeos01 cib: [31978]: info: retrieveCib: Reading cluster 
configuration from: /var/lib/heartbeat/crm/cib.xml (digest: 
/var/lib/heartbeat/crm/cib.xml.sig)
Oct 22 00:09:46 dokeos01 cib: [31978]: info: retrieveCib: Reading cluster 
configuration from: /var/lib/heartbeat/crm/cib.xml.last (digest: 
/var/lib/heartbeat/crm/cib.xml.sig.last)
Oct 22 00:09:46 dokeos01 cib: [31978]: info: write_cib_contents: Wrote version 
0.81.1 of the CIB to disk (digest: af49985a56a809273e4d3a6072f018cb)
Oct 22 00:09:46 dokeos01 cib: [31978]: info: retrieveCib: Reading cluster 
configuration from: /var/lib/heartbeat/crm/cib.xml (digest: 
/var/lib/heartbeat/crm/cib.xml.sig)
Oct 22 00:09:46 dokeos01 cib: [31978]: info: retrieveCib: Reading cluster 
configuration from: /var/lib/heartbeat/crm/cib.xml.last (digest: 
/var/lib/heartbeat/crm/cib.xml.sig.last)
Oct 22 00:09:46 dokeos01 Filesystem[31972]: [32002]: INFO: Running start for 
/dev/drbd0 on /www
Oct 22 00:09:46 dokeos01 haclient: on_event:evt:cib_changed
Oct 22 00:09:46 dokeos01 lrmd: [31416]: info: RA output: 
(fs_main_www:start:stderr) /dev/drbd0: Wrong medium type 
Oct 22 00:09:46 dokeos01 lrmd: [31416]: info: RA output: 
(fs_main_www:start:stderr) mount: block device /dev/drbd0 is write-protected, 
mounting read-only 
Oct 22 00:09:46 dokeos01 lrmd: [31416]: info: RA output: 
(fs_main_www:start:stderr) mount: Wrong medium type 
Oct 22 00:09:46 dokeos01 Filesystem[31972]: [32015]: ERROR: Couldn't mount 
filesystem /dev/drbd0 on /www

<<<<<<<< I cannot mount the file system because of his Secondary/secondary 
status >>>>>>>>>

On Sun, 2007-10-21 at 23:31 +0200, Arnaud Ligot wrote:
> Hello,
> 
> I have just joined the mailing list. I have some problems with
> heartbeat. Like the problem described into this thread:
> http://marc.info/?l=linux-ha&m=119186344011877&w=2
> ([Linux-HA] Couldn't mount filesystem /dev/drbd0 on /shared)
> 
> Like on this thread, I'm using drbd8 and heartbeat V2. I'm using debian
> etch, drbd comes from backports-etch and heartbeat from opensuse.
> 
> I managed to make heartbeat works (with a simple ip address, an apache
> server,....). I also managed to make drbd works. I can mount, unmount,
> change primary, remount,... But I cannot manage drbd from heartbeat.
> I follow a lot of documentation and like Alejandro Rios both node start
> drbd successfully but none of them get primary status. I tried to add
> the constraints defined in howtoV2 with a rsc_order constraint with
> action="start" and to_action="promote" with no effect. It has the same
> result wether I add this constraints or not. 
> Due to the fact that none of the two node get primary status, none of
> them could mount /dev/drbd0. 
> 
> now, If I start drbd using heartbeat and then typed into a console the
> command which promote the current node to primary status, I can mount
> the filesystem through heartbeat... and it works. So it lacks only one
> command line for making things working.
> 
> Could you help me by pointing me some documentation or by sending
> cib.xml which describe a working cluster.
> 
> Best regards,
> 
> Arnaud Ligot.
> 
> PS: I just started with heartbeat/drbd so if my question seems to be too
> stupid please point me to a complete documentation.
> 
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to