[Samba] ctdb domain question

Kosa Attila atkosa at mithrandir.hu
Mon Oct 17 06:55:08 MDT 2011


On Mon, Oct 17, 2011 at 01:03:25PM +0200, Daniel Müller wrote:
> Your both ctdb nodes have the same name and the same ip?
> Is winbind running: http://ctdb.samba.org/samba.html
> CTDB_MANAGES_WINBIND
> This is a parameter in /etc/sysconfig/ctdb
> 
> When this parameter is set to "yes" CTDB will start/stop/restart the local
> winbind daemon as the cluster configuration changes.
> 
> When this parameter is set you should also make sure that winbind is NOT
> started by default by the linux system when it boots: 
>   chkconfig winbind off
> 
> Example: 
>   CTDB_MANAGES_WINBIND="yes"
> 
> It is strongly recommended that you set this parameter to "yes" if you
> intend to use clustered samba in DOMAIN or ADS security mode.

smb-cluster-1 and smb-cluster-2:
-------------------------------
Debian Squeeze
linux-image-2.6.32-5-amd64
ctdb 1.10+git20110722-1
glusterfs 3.2.3-1
samba 3.5.6~dfsg-3squeeze5

smb-cluster-1:
-------------
- eth0 - 192.168.100.144 (Bcast:192.168.100.255 Mask:255.255.255.0)
- eth1 - 10.10.10.1 (Bcast:10.10.10.255  Mask:255.255.255.0)
- /dev/sdb1 - ~5 GB, mount /dev/sdb1 /mnt -t ext3

smb-cluster-2:
-------------
- eth0 - 192.168.100.145 (Bcast:192.168.100.255 Mask:255.255.255.0)
- eth1 - 10.10.10.2 (Bcast:10.10.10.255  Mask:255.255.255.0)
- /dev/sdb1 - ~5 GB, mount /dev/sdb1 /mnt -t ext3

# grep -v ^\# /etc/default/ctdb | grep -v ^$
CTDB_RECOVERY_LOCK="/samba/ctdb/ctdb"
CTDB_PUBLIC_INTERFACE=eth0
CTDB_PUBLIC_ADDRESSES=/etc/ctdb/public_addresses
CTDB_MANAGES_SAMBA=yes
CTDB_SAMBA_SKIP_SHARE_CHECK=no
CTDB_SAMBA_CHECK_PORTS="445"
CTDB_MANAGES_WINBIND=yes
CTDB_MANAGES_VSFTPD=no
CTDB_MANAGES_ISCSI=no
CTDB_MANAGES_NFS=no
CTDB_MANAGES_HTTPD=no
CTDB_INIT_STYLE=debian
ulimit -n 30000
CTDB_NODES=/etc/ctdb/nodes
CTDB_NOTIFY_SCRIPT=/etc/ctdb/notify.sh
CTDB_DBDIR=/var/lib/ctdb
CTDB_DBDIR_PERSISTENT=/var/lib/ctdb/persistent
CTDB_EVENT_SCRIPT_DIR=/etc/ctdb/events.d
CTDB_SOCKET=/tmp/ctdb.socket
CTDB_TRANSPORT="tcp"
CTDB_START_AS_DISABLED="no"
CTDB_CAPABILITY_RECMASTER=yes
CTDB_CAPABILITY_LMASTER=yes
CTDB_LOGFILE=/var/log/ctdb/log.ctdb
CTDB_DEBUGLEVEL=ERR
CTDB_SUPPRESS_COREFILE=no
CTDB_SYSLOG=no
CTDB_RUN_TIMEOUT_MONITOR=no
CTDB_MAX_PERSISTENT_CHECK_ERRORS=0

# ctdb status
Number of nodes:2
pnn:0 10.10.10.1       OK (THIS NODE)
pnn:1 10.10.10.2       OK
Generation:1071551548
Size:2
hash:0 lmaster:0
hash:1 lmaster:1
Recovery mode:NORMAL (0)
Recovery master:0

#  testparm -v < /dev/null | grep 'netbios aliases'
netbios aliases = samba

-- 
		Cheers,
				    Zsiga


More information about the samba mailing list