From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 115a6f,c924a82c08f248cb X-Google-Attributes: gid115a6f,public X-Google-Thread: 1164f8,c924a82c08f248cb X-Google-Attributes: gid1164f8,public From: andrewg@no.spam.please.za.didata.com (Andrew Gaylard) Subject: Re: Samba and Tru64 + ASE Date: 2000/11/11 Message-ID: <3a0d6745$0$227@hades.is.co.za>#1/1 X-Deja-AN: 692411131 References: <3a093976$0$232@hades.is.co.za> <3a09714d$0$227@hades.is.co.za> X-Trace: hades.is.co.za 973956933 227 196.38.213.1 Newsgroups: comp.sys.dec,comp.protocols.smb andrewg@no.spam.please.za.didata.com (Andrew Gaylard) writes: >I know, I know, I'm posting a follow-up to my own article... >andrewg@no.spam.please.za.didata.com (Andrew Gaylard) writes: >>Hello all, >>Here's a challenge to any Samba and/or Compaq Tru64 ASE cluster experts. >>My setup consists of : >>- two DEC 4100 AlphaSevers running Tru64 v4.0G with the latest patchset, >>- Compaq TruCluster v1.6 available server environment (ASE), >>- two NFS services configured and working in ASE. >>Now that I have a highly-available NFS fileservice, I would like to make >>the same files available via Samba 2.0.7, using NT PDC domain >>authentication (that is, "security = DOMAIN" in my smb.conf file). [ snip! ] >>Lastly, what happens to SMB when Samba is rapidly shut down, and started >>up another box within 10 seconds, and that new box responds to the same >>NetBIOS name? I understand that SMB is state-based, unlike NFS (which >>is very simple to fail over, as I've seen). >>I'd appreciate any feedback, even "you must be nuts to attempt this". >[ I *must* be. ] >Basically, I gave this scheme a spin. Everything works... "almost". >Essentially, the important thing is to run "virtual" copies of samba, >each listening on a virtual IP address. This is what the "socket >address", "interfaces" and "bind interfaces only" parameters in smb.conf >are for. >Well, that's the theory. Unfortunately for me, it seems that either >Samba or Tru64 prevent the latter two directives from working. I get >this message in my log.smb files: > smbd version 2.0.7 started. > Copyright Andrew Tridgell 1992-1998 > [2000/11/08 17:05:11, 0] lib/interface.c:(222) > WARNING: no network interfaces found >which is obviously a problem. If I remove these two directives, leaving >only the "socket address", and "ifconfig tu0 alias my_service_ip/32", >then smbd listens on that address only, as it should, but nmbd doesn't. >nmbd listens on *.137 (as reported by netstat). This is, I think, what >confuses clients when connecting. They either get one nmbd or the >other. But not both at the same time. In fact, it looks like whichever >nmbd was started last is the one which responds. I imagine that, with >both nmbd processes listening on port 137 (all addresses), the behaviour >is undefined... >I'm so near, yet so far. I presume that this virtual server feature is >working on more mainstrean platforms such as Linux/Intel, since it would >be more widely tested. >Can anyone confirm this? >If not, have I found a Samba bug (i.e. it's not possible to run virtual >servers)? OK, all's well; Samba works brilliantly with ASE / TruCluster. Failovers take less than 10 seconds. I haven't had the nerve to test it with Samba files open, though. But having files open over NFS is fine. It turned out that I wasn't specifying my netmask properly in smb.conf. Neither Tru64 nor Samba have any bugs... I apologise for suggesting that they might have deficiencies. It was with this sysadmin where the problem lay! I run Samba binding to only the virtual IP address of the ASE service. If necessary, both services can run their instance of Samba on the same cluster member at the same time. The copies of Samba are on the shared disks -- I suspect that shutting down and starting up Samba with files open may cause issues if the oplock files are lost. (Are they (re-)used across restarts?) Hence the idea that the Samba directories should follow the virtual machine. It also helps having the log files in only one place. If anyone needs more details on how to set this up, email me and I'll help. -- -- Andrew Gaylard andrew.gaylard @ za . didata . com