I was able to make some tweaks and get it running for Samba.  Looks like
these could also apply to upstream Debian.

The service command is in a different path:

root@san1:/etc/ctdb# diff -u functions functions.orig 
--- functions   2014-12-19 11:24:12.660339600 -0500
+++ functions.orig      2014-12-19 10:53:29.247030923 -0500
@@ -161,8 +161,6 @@
 
   if [ -x /sbin/service ]; then
       $_nice /sbin/service "$_service_name" "$_op"
-  elif [ -x /usr/sbin/service ]; then
-      $_nice /usr/sbin/service "$_service_name" "$_op"
   elif [ -x $CTDB_ETCDIR/init.d/$_service_name ]; then
       $_nice $CTDB_ETCDIR/init.d/$_service_name "$_op"
   elif [ -x $CTDB_ETCDIR/rc.d/init.d/$_service_name ]; then

This might actually be a problem with the samba init script, but smbd
and nmbd seem to be controled by upstart and the scripts in /etc/init.d
don't actually do anything.  Maybe /etc/init.d/samba is being phased out
and the services are managed directly, which seems to work here:

root@san1:/etc/ctdb/events.d# diff -u 50.samba ~/50.samba.orig 
--- 50.samba    2014-12-19 11:22:05.522193976 -0500
+++ /root/50.samba.orig 2014-12-19 11:21:46.602468765 -0500
@@ -14,8 +14,8 @@
                CTDB_SERVICE_NMB=${CTDB_SERVICE_NMB:-nmb}
                ;;
        debian)
-               CTDB_SERVICE_SMB=${CTDB_SERVICE_SMB:-smbd}
-               CTDB_SERVICE_NMB=${CTDB_SERVICE_NMB:-nmbd}
+               CTDB_SERVICE_SMB=${CTDB_SERVICE_SMB:-samba}
+               CTDB_SERVICE_NMB=${CTDB_SERVICE_NMB:-""}
                ;;
        *)
                # Use redhat style as default:


root@san1:/etc/ctdb/events.d# ctdb status
Number of nodes:2
pnn:0 10.10.1.21       OK (THIS NODE)
pnn:1 10.10.1.22       UNHEALTHY
Generation:330683100
Size:2
hash:0 lmaster:0
hash:1 lmaster:1
Recovery mode:NORMAL (0)
Recovery master:1

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/722201

Title:
  CTDB port is not aware of Ubuntu-specific NFS Settings

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ctdb/+bug/722201/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to