Multiple Samba Service configured in Domain mode
807567Jul 20 2009 — edited Jul 20 2009Hello everyone,
I have configured a failover cluster using SunCluster 3.2u2 build 19b, i am trying to configure Samba service, and at some point i am getting stuck up.
Samba service in Cluster works fine when i use logical hostname as "SMB" in my configuration, but if i change the logical hostname from SMB to SMB1 cluster service fails to come up, it gives following error
SC[SUNWscsmb.samba.probe]:zsamba:samba: [ID 182069 daemon.error] check_smbd - Samba server <smb> not working, failed to connect to samba-resource <scmondir>
Error description according to "Sun Cluster Error Messages Guide for Solaris OS" is
Description: The Samba resource's fault monitor checks that the Samba server is working by using the smbclient program.However this test failed to connect to the Samba server.
Solution:No user action is needed. The Samba server will be restarted.However, examine the other syslog messages occurring at the same time on the same node, to see if the cause of the problem can be identified.
Service restart continues in loop, and cluster nodes keeps on flipping.
I am using Fault monitor user as a domain user, i am using Server role as: ROLE_DOMAIN_MEMBER in smb.conf, following are details of smb.conf
[global]
workgroup = TESTDOMAIN
bind interfaces only = yes
interfaces = SMB1/255.255.255.0
netbios name = SMB1
security = ADS
realm = testdomain.com
password server = cap2.testdomain.com
server string = Samba (%v) domain (%h)
pid directory = /pool_001/zsamba/smb/var/locks
log file = /pool_001/zsamba/smb/logs/log.%m
smb passwd file = /pool_001/zsamba/smb/private/smbpasswd
private dir = /pool_001/zsamba/smb/private
lock dir = /pool_001/zsamba/smb/var/locks
winbind cache time = 30
allow trusted domains = no
idmap backend = rid:ADS=100000-200000
idmap uid = 100000-200000
idmap gid = 100000-200000
winbind enum groups = yes
winbind enum users = yes
winbind use default domain = yes
[scmondir]
comment = Monitor directory for Sun Cluster
path = /tmp
browseable = No
after some troubleshooting i found that during probe smbclient is using hostname "SMB" to connect scmondir, i have mentioned hostname as SMB1 everywhere, in my /etc/hosts file entry for SMB1 is proper.
i tried to check the processes while samba was in starting mode, following is the output
bash-3.00# ps -ef | grep smb
root 14261 1 0 07:01:45 ? 0:00 /usr/sfw/sbin/winbindd -s /pool_001/zsamba/smb/lib/smb.conf
root 14791 14785 0 07:05:03 ? 0:00 /usr/bin/ksh /opt/SUNWscsmb/bin/control_samba -R samba -G zsamba -X smbd -B /us
root 14281 14261 0 07:01:50 ? 0:00 /usr/sfw/sbin/winbindd -s /pool_001/zsamba/smb/lib/smb.conf
root 14262 14261 0 07:01:45 ? 0:00 /usr/sfw/sbin/winbindd -s /pool_001/zsamba/smb/lib/smb.conf
root 14785 14784 0 07:05:03 ? 0:00 /usr/bin/ksh /opt/SUNWscsmb/samba/bin/probe_samba -R samba -G zsamba -X smbd -B
root 14411 1 0 07:03:56 ? 0:00 /usr/sfw/sbin/smbd -D -s /pool_001/zsamba/smb/lib/smb.conf -l /pool_001/z
root 14783 14350 0 07:05:03 ? 0:00 /usr/cluster/bin/hatimerun -t 30 -k 9 -- /bin/sh -c /opt/SUNWscsmb/samba/bin/pr
root 14414 14261 0 07:03:56 ? 0:00 /usr/sfw/sbin/winbindd -s /pool_001/zsamba/smb/lib/smb.conf
root 14415 14411 0 07:03:56 ? 0:00 /usr/sfw/sbin/smbd -D -s /pool_001/zsamba/smb/lib/smb.conf -l /pool_001/z
root 14784 14783 0 07:05:03 ? 0:00 /bin/sh -c /opt/SUNWscsmb/samba/bin/probe_samba -R 'samba' -G 'zsamba' -X 'smbd
root 14821 14791 0 07:05:05 ? 0:00 /usr/sfw/bin/smbclient \\smb\scmondir -s /pool_001/zsamba/smb/lib/smb.conf -
root 14825 14323 0 07:05:06 pts/6 0:00 grep smb
bash-3.00#
As i mentioned earlier, everything just works fine in domain mode when i use logical hostname for samba as "SMB", but when i use some other name it fails to start. i can use one cluster in my environment without any problem, but moment i try to configure another cluster, winbind service and samba service fails to start, reason for this is that during probe smbclient always uses SMB as logical host. "/usr/sfw/bin/smbclient \\smb\scmondir -s /pool_001/zsamba/smb/lib/smb.conf". No matter what hostname i configure in my /etc/hosts and in my logical host resource in cluster, it always tries to connect to "\\smb\scmondir". Since my samba is configured in domain mode, there can be only one host in my active directory with name "SMB".
i would like to know if anyone has faced similar issue, or if anyone can guide me how to change that SMB to SMB1 during probe command. Is it configurable?
Please advise.
Regards,
Snehalkumar Patel