LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-16-2013, 05:04 AM   #1
labbyjoel
LQ Newbie
 
Registered: Jan 2013
Location: brussels
Distribution: fedora
Posts: 1

Rep: Reputation: Disabled
pacemaker ocf:heartbeat:anything issue with samba


Hi !

I'm trying to install for the first time a 2 nodes master/slave cluster with drbd.

I've installed ipaddr2; apache; drbd ressources on pacemaker without any issue, but i've got a problem with smbd.

The smbd process starts well and the shared folder is accessible through the network, but crm_mon reports me an error :

samba_start_0 (node=ccda_master, call=2028, rc=1, status=complete): unknown error

in the log, I can see cycling samba start/stop

Code:
Jan 16 10:53:28 ccda_master pengine[3941]:  warning: unpack_rsc_op: Processing failed op samba_last_failure_0 on ccda_master: unknown error (1)
Jan 16 10:53:28 ccda_master pengine[3941]:   notice: LogActions: Recover samba#011(Started ccda_master)
Jan 16 10:53:28 ccda_master crmd[3942]:   notice: do_state_transition: State transition S_POLICY_ENGINE -> S_TRANSITION_ENGINE [ input=I_PE_SUCCESS cause=C_IPC_MESSAGE origile_response ]
Jan 16 10:53:28 ccda_master crmd[3942]:     info: do_te_invoke: Processing graph 505 (ref=pe_calc-dc-1358330008-1565) derived from /var/lib/pengine/pe-input-1274.bz2
Jan 16 10:53:28 ccda_master crmd[3942]:     info: te_rsc_command: Initiating action 4: stop samba_stop_0 on ccda_master (local)
Jan 16 10:53:28 ccda_master lrmd: [3939]: info: rsc:samba:1031: stop
Jan 16 10:53:28 ccda_master lrmd: [3939]: info: RA output: (samba:stop:stderr) /usr/lib/ocf/resource.d//heartbeat/anything: line 60: kill: (28159) - No such process
Jan 16 10:53:28 ccda_master crmd[3942]:     info: process_lrm_event: LRM operation samba_stop_0 (call=1031, rc=0, cib-update=1566, confirmed=true) ok
Jan 16 10:53:28 ccda_master crmd[3942]:     info: te_rsc_command: Initiating action 47: start samba_start_0 on ccda_master (local)
Jan 16 10:53:28 ccda_master lrmd: [3939]: info: rsc:samba:1032: start
Jan 16 10:53:28 ccda_master pengine[3941]:   notice: process_pe_message: Transition 505: PEngine Input stored in: /var/lib/pengine/pe-input-1274.bz2
the process are running :

Code:
pf -ef | grep smb
root      5338     1  0 10:35 ?        00:00:00 /usr/sbin/smbd
root      5340  5338  0 10:35 ?        00:00:00 /usr/sbin/smbd
root     20427 20424  0 11:12 ?        00:00:00 su - root -c cd ; nohup /usr/sbin/smbd & echo $!
root     20464   897  0 11:12 pts/0    00:00:00 grep --color=auto smb


pf -ef | grep smb
root      5338     1  0 10:35 ?        00:00:00 /usr/sbin/smbd
root      5340  5338  0 10:35 ?        00:00:00 /usr/sbin/smbd
root     28190 28187  0 11:18 ?        00:00:00 su - root -c cd ; nohup /usr/sbin/smbd & echo $!
root     28208   897  0 11:18 pts/0    00:00:00 grep --color=auto smb
we see that the /usr/sbin/smbd are fixed and the /usr/lib/ocf/resource.d//heartbeat/anything start always retry.
Seems that the process /usr/sbin/smbd is not detected well after the first start.

Here is my configuration :

Code:
node $id="16777226" ccda_master \
        attributes standby="off"
node $id="33554442" ccda_slave \
        attributes standby="off"
primitive ClusterIP ocf:heartbeat:IPaddr2 \
        params ip="192.9.200.140" cidr_netmask="32" \
        op monitor interval="30s"
primitive apacheServer ocf:heartbeat:apache \
        params httpd="/usr/sbin/httpd" configfile="/etc/httpd/conf/httpd.conf" \
        op monitor interval="1min"
primitive fs_r0 ocf:heartbeat:Filesystem \
        params device="/dev/drbd0" directory="/CCDA" fstype="ext4"
primitive r0 ocf:linbit:drbd \
        params drbd_resource="r0" \
        op monitor interval="10" role="Master" \
        op monitor interval="30" role="Slave"
primitive samba ocf:heartbeat:anything \
        params binfile="/usr/sbin/smbd"
ms ms_r0 r0 \
        meta master-max="1" master-node-max="1" clone-max="2" clone-node-max="1" notify="true"
colocation fs_ms_r0 inf: fs_r0 ms_r0:Master
colocation samba_ms_r0 inf: samba ms_r0:Master
colocation webserver inf: ClusterIP apacheServer
order fs_after_ms_r0 inf: ms_r0:promote fs_r0:start
order samba_after_ms_r0 inf: ms_r0:promote samba:start
property $id="cib-bootstrap-options" \
dc-version="1.1.7-2.fc17-ee0730e13d124c3d58f00016c3376a1de5323cff" \
        cluster-infrastructure="corosync" \
        stonith-enabled="false" \
        no-quorum-policy="ignore" \
        last-lrm-refresh="1358271489"
has anybody an idea on this issue.. I've googgled all the day on this without any response...

thanks

joe

Linux ccda_master 3.6.11-1.fc17.x86_64
pacemaker-1.1.7-2.fc17.x86_64
corosync-2.0.3-1.fc17.x86_64
drbd-8.3.13-1.fc17.x86_64
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba cluster and load balancing with pacemaker? mlfuuma Linux - Server 0 10-30-2012 04:44 PM
[SOLVED] heartbeat/pacemaker (from source): where is mgmtd? eantoranz Linux - Software 1 10-10-2012 04:35 PM
Heartbeat / Pacemaker failover when process dies fantasygoat Linux - Server 0 08-18-2011 04:50 PM
DRBD/Heartbeat Setup for Postgres/httpd/Samba/etc. halo14 Linux - Server 0 04-16-2010 03:02 PM
High availability Samba cluster DRBD + Heartbeat djalex Linux - Networking 3 09-05-2006 01:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration