Hi James,
your order rule seems to miss the action attribute (action="start")...
Try this rule:
<rsc_order from="*shared_filesystem*" action="start"
id="*order_shared_filesystem_after_shared_storage:promote*"
to="*shared_storage*" to_action="*promote*" />
Hope it helps...
Regards,
--
Kamil
James Oakley wrote:
I just updated from 2.1.0 to 2.1.2 and it appears that the rsc_order
constraint I was was using to mount a drbd filesystem after a drbd resource
is promoted is no longer working.
I have attached the CIB I am using.
It appears to attempt a start on 'shared_filesystem' *before* promoting
'shared_storage':
Aug 9 16:11:07 redun1 crmd: [19394]: info: do_lrm_rsc_op: Performing
op=shared_filesystem_start_0 key=34:3:c3ec3075-915c-4279-a45a-ec2fbe0d522f)
Aug 9 16:11:07 redun1 crmd: [19394]: info: do_lrm_rsc_op: Performing
op=prim_shared_storage:1_notify_0 key=44:3:c3ec3075-915c-4279-a45a-ec2fbe0d522
f)
Aug 9 16:11:07 redun1 drbd[19860]: [19874]: DEBUG: sip-shared notify: pre for
promote - counts: active 0 - starting 0 - stopping 0
Aug 9 16:11:07 redun1 crmd: [19394]: info: process_lrm_event: LRM operation
prim_shared_storage:1_notify_0 (call=8, rc=0) complete
Aug 9 16:11:07 redun1 Filesystem[19854]: [19895]: INFO: Running start for
/dev/drbd0 on /shared
Aug 9 16:11:07 redun1 lrmd: [19391]: info: RA output:
(shared_filesystem:start:stderr) mount: block device /dev/drbd0 is
write-protected, mounting
read-only
Aug 9 16:11:07 redun1 lrmd: [19391]: info: RA output:
(shared_filesystem:start:stderr) mount: /dev/drbd0 already mounted or /shared
busy
Aug 9 16:11:07 redun1 Filesystem[19854]: [19909]: ERROR: Couldn't mount
filesystem /dev/drbd0 on /shared
Aug 9 16:11:07 redun1 crmd: [19394]: ERROR: process_lrm_event: LRM operation
shared_filesystem_start_0 (call=7, rc=1) Error unknown error
Aug 9 16:11:07 redun1 crmd: [19394]: info: build_operation_update: Digest for
4:1;34:3:c3ec3075-915c-4279-a45a-ec2fbe0d522f (shared_filesystem_star
t_0) was 5858fd8b1fcc9107c71c24186f95f937
Aug 9 16:11:07 redun1 crmd: [19394]: info: log_data_element: build_operation_update:
digest:source <parameters directory="/shared" fstype="reiserfs
" device="/dev/drbd0"/>
Aug 9 16:11:09 redun1 crmd: [19394]: info: do_lrm_rsc_op: Performing
op=prim_shared_storage:1_promote_0 key=6:3:c3ec3075-915c-4279-a45a-ec2fbe0d522
f)
Aug 9 16:11:09 redun1 drbd[19917]: [19929]: DEBUG: sip-shared: Calling drbdadm
-c /etc/drbd.conf state sip-shared
Aug 9 16:11:09 redun1 drbd[19917]: [19936]: DEBUG: sip-shared: Exit code 0
Aug 9 16:11:09 redun1 drbd[19917]: [19937]: DEBUG: sip-shared: Command output:
Secondary/Secondary
Aug 9 16:11:09 redun1 drbd[19917]: [19945]: DEBUG: sip-shared: Calling drbdadm
-c /etc/drbd.conf cstate sip-shared
Aug 9 16:11:09 redun1 drbd[19917]: [19958]: DEBUG: sip-shared: Exit code 0
Aug 9 16:11:09 redun1 drbd[19917]: [19959]: DEBUG: sip-shared: Command output:
Connected
Aug 9 16:11:09 redun1 drbd[19917]: [19960]: DEBUG: sip-shared status:
Secondary/Secondary Secondary Secondary Connected
Aug 9 16:11:09 redun1 drbd[19917]: [19961]: DEBUG: sip-shared: Calling drbdadm
-c /etc/drbd.conf primary sip-shared
Aug 9 16:11:09 redun1 kernel: drbd0: Secondary/Secondary --> Primary/Secondary
Aug 9 16:11:09 redun1 drbd[19917]: [19968]: DEBUG: sip-shared: Exit code 0
Aug 9 16:11:09 redun1 drbd[19917]: [19969]: DEBUG: sip-shared: Command output:
Aug 9 16:11:09 redun1 lrmd: [19391]: info: RA output:
(prim_shared_storage:1:promote:stdout)
Aug 9 16:11:09 redun1 drbd[19917]: [19971]: DEBUG: sip-shared: Calling drbdadm
-c /etc/drbd.conf state sip-shared
Aug 9 16:11:09 redun1 drbd[19917]: [19978]: DEBUG: sip-shared: Exit code 0
Aug 9 16:11:09 redun1 drbd[19917]: [19979]: DEBUG: sip-shared: Command output:
Primary/Secondary
Aug 9 16:11:09 redun1 drbd[19917]: [19987]: DEBUG: sip-shared: Calling drbdadm
-c /etc/drbd.conf cstate sip-shared
Aug 9 16:11:09 redun1 drbd[19917]: [20000]: DEBUG: sip-shared: Exit code 0
Aug 9 16:11:09 redun1 drbd[19917]: [20001]: DEBUG: sip-shared: Command output:
Connected
Aug 9 16:11:09 redun1 drbd[19917]: [20002]: DEBUG: sip-shared status:
Primary/Secondary Primary Secondary Connected
Aug 9 16:11:09 redun1 drbd[19917]: [20003]: INFO: sip-shared promote: primary
succeeded
Any idea what's wrong here?
------------------------------------------------------------------------
_______________________________________________
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