[Samba] ctdb issues

Christian M Ambach christian.ambach at de.ibm.com
Fri Oct 7 06:39:16 MDT 2011


Hi Lydia,

Lydia wrote on 10/07/2011 01:21:14 PM:

> it turns out that ctdb does not require kexec-tools. So with and without
> kexec-tool the errors are clocking ....
> 
> >> 2011/10/04 12:35:37.933801 [ 1779]: basename: missing operand
> >> 2011/10/04 12:35:37.933850 [ 1779]: Try `basename --help' for
> >> more information.
> >> 2011/10/04 12:35:48.332844 [ 1779]: basename: missing operand
> >> 2011/10/04 12:35:48.332900 [ 1779]: Try `basename --help' for
> >> more information.

The CTDB scripts only use basename in one script, 10.interface.

# grep basename /etc/ctdb/events.d/*
/etc/ctdb/events.d/10.interface:                    [ "$(basename 
$(readlink /sys/class/net/$IFACE/device/driver) 2>/dev/null)" = virtio_net 
] ||

Maybe you have specified an interface name in the public_addresses
file that does not exist on the host and so the command above fails?

Maybe the version of CTDB you are running contains even more basename 
calls
in the scripts. So please check them and see which of these is failing.

You can run eventscripts manually in the following way:
CTDB_BASE=/etc/ctdb/ /etc/ctdb/events.d/10.interface monitor

Maybe this helps locating the script that triggers the messages.

Cheers,
Christian



More information about the samba mailing list