* Samba and Tru64 + ASE @ 2000-11-08 5:00 Andrew Gaylard 2000-11-08 5:00 ` Andrew Gaylard 0 siblings, 1 reply; 3+ messages in thread From: Andrew Gaylard @ 2000-11-08 5:00 UTC (permalink / raw) 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). Unfortunately, this last requirement is important. (Otherwise it would be quite a bit easier...) The one problem is, I want to add the service name/IP to the "server manager for domains", and not the cluster member itself. When I run "smbpasswd -j <domain>", the cluster member name is added, and not the service. The other problem is, how can I get samba to serve the two services in the case where one machine has died, and ASE has failed the service over to the other? In this case, the remaining cluster member must answer to SMB requests for both service names / IPs. I think that with a bit of fiddling, I can get this to work, as follows: 1. Set up two copies of Samba on each machine, in separate directories. Actually, I would need only 2 copies of .../lib/smb.conf, .../private/*, and .../var/* (for the log files). That leaves the bin and man directories, so it's probably worth using two completely separate installation areas. 2. Set up each instance of Samba to use the service name as the NetBIOS name, not the default hostname (which in this case is the cluster member, and is subject to change). I would use the "netbios name =" directive in each smb.conf for this. 3. Set each instance of Samba to listen only on one IP address, which will be the address of the service. I would use the "socket address =" directive in each smb.conf for this. 4. Set up each instance of Samba to serve only filesystems on the mirrored disks which are part of this ASE service. 5. Run "smbpasswd -j <domain>" to join my NT domain twice, once in each copy of Samba. 6. Set up ASE start and stop scripts to fire up Samba and shut it down in accordance with ASE actions. Is there a better way? Am I missing something? Even something unimportant? Is this scheme likely to work? Has *anyone* done this before and got it to work? 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". -- -- Andrew Gaylard andrew.gaylard @ za . didata . com ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Samba and Tru64 + ASE 2000-11-08 5:00 Samba and Tru64 + ASE Andrew Gaylard @ 2000-11-08 5:00 ` Andrew Gaylard 2000-11-11 5:00 ` Andrew Gaylard 0 siblings, 1 reply; 3+ messages in thread From: Andrew Gaylard @ 2000-11-08 5:00 UTC (permalink / raw) 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). >Unfortunately, this last requirement is important. (Otherwise it would >be quite a bit easier...) >The one problem is, I want to add the service name/IP to the "server >manager for domains", and not the cluster member itself. When I run >"smbpasswd -j <domain>", the cluster member name is added, and not the >service. >The other problem is, how can I get samba to serve the two services in >the case where one machine has died, and ASE has failed the service over >to the other? In this case, the remaining cluster member must answer to >SMB requests for both service names / IPs. >I think that with a bit of fiddling, I can get this to work, as follows: >1. Set up two copies of Samba on each machine, in separate directories. >Actually, I would need only 2 copies of .../lib/smb.conf, .../private/*, >and .../var/* (for the log files). That leaves the bin and man >directories, so it's probably worth using two completely separate >installation areas. >2. Set up each instance of Samba to use the service name as the NetBIOS >name, not the default hostname (which in this case is the cluster >member, and is subject to change). I would use the "netbios name =" >directive in each smb.conf for this. >3. Set each instance of Samba to listen only on one IP address, which >will be the address of the service. I would use the "socket address =" >directive in each smb.conf for this. >4. Set up each instance of Samba to serve only filesystems on the >mirrored disks which are part of this ASE service. >5. Run "smbpasswd -j <domain>" to join my NT domain twice, once in each >copy of Samba. >6. Set up ASE start and stop scripts to fire up Samba and shut it down >in accordance with ASE actions. >Is there a better way? >Am I missing something? >Even something unimportant? >Is this scheme likely to work? >Has *anyone* done this before and got it to work? >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)? Has anyone managed to get 2 virtual Samba servers running at the same time on one Compaq Tru64 box? -- -- Andrew Gaylard andrew.gaylard @ za . didata . com ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Samba and Tru64 + ASE 2000-11-08 5:00 ` Andrew Gaylard @ 2000-11-11 5:00 ` Andrew Gaylard 0 siblings, 0 replies; 3+ messages in thread From: Andrew Gaylard @ 2000-11-11 5:00 UTC (permalink / raw) 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-11-11 5:00 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2000-11-08 5:00 Samba and Tru64 + ASE Andrew Gaylard 2000-11-08 5:00 ` Andrew Gaylard 2000-11-11 5:00 ` Andrew Gaylard
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox