Re: [Samba] Changed PDC IP, all hell broke lose
I think you can/should have them remove the PDC from their WINS entry on their end and then you can rejoin the network with the new IP Address. Outside of that, I can only suggest looking into how to send an update to a record on a WINS server from a Samba PDC. I'm unsure if that is possible as I have only run a fully Windows or a Linux/Samba with Windows Clients as a network. -- Regards, Robert Adkins -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines Sent: Tuesday, September 04, 2012 2:24 PM To: samba@lists.samba.org Subject: Re: [Samba] Changed PDC IP, all hell broke lose It is definitely an issue with the WINS server which returns the old IP address # nmblookup -U 172.27.88.81 -R 'MRIRESEARCH#1b' querying MRIRESEARCH on 172.27.88.81 132.183.202.95 MRIRESEARCH1b SO it is not automatically picking up the IP change which happened 4 days ago and I have restarted samba on my PDC several times. The old IP is definitely not in /etc/hosts anymore or anywhere in smb.conf. It only shows up in gencache.tdb in the files /var/lib/samba even though I keep deleting that file when I restart. WINS is a total mystery to me. How is this supposed to work? -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 12:00pm, Paul Raines wrote: I have no idea what the WINS server is except that I am sure it running on Windows since they are totally Windows-based organization. So the WINS server is definitely the problem? When I talk to them and mention I am using Samba on Linux they may totally just say we don't support it and hang up. It seems a strange design that a WINS server can take precedence over my explicit password server setting in my smb.conf file. -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 11:21am, Robert Adkins II wrote: More information is required. What is the WINS server running OS wise? Can you work with the IT Staff in charge of that WINS Server? -- Regards, Robert Adkins -Original Message- From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu] Sent: Tuesday, September 04, 2012 11:16 AM To: Robert Adkins II Cc: samba@lists.samba.org Subject: RE: [Samba] Changed PDC IP, all hell broke lose I am not running winbindd on the server. I am using the WINS server of my hospital which I have no control over. I have already tried deleting browse.dat (I do not see the other two files anywhere) to no avail. So my fear is that this is all happening because the WINS server is refusing to recognize the change since I cannot do anything about it. Is that the issue? Is there anyway to force a WINS server to change the IP it has a for domain master browser? -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 10:59am, Robert Adkins II wrote: It's most likely that your server has the old IP Address Cached in the wins.dat, browse.dat, browse.tdb. I recommend the following: Shutdown the windbind, nmbd and smbd services. Back up each of the above mentioned files. Delete the original above named files. Restart your services and then see if you can connect. You may also need to edit your samba configuration file to point to the new server IP Address as the PDC Master Browser. (Assuming you didn't already do that.) The problem is that your server is telling clients to attempt to find it on a network that no longer exists. -- Regards, Robert Adkins II -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines Sent: Tuesday, September 04, 2012 10:41 AM To: samba@lists.samba.org Subject: [Samba] Changed PDC IP, all hell broke lose I had to move my RedHat 5 box acting as a PDC to a new IP address. It is running samba 3.5.10. After the move, none of my windows or linux samba clients worked anymore. I tried rejoining some to the domain, but would get error Unable to find a suitable server Join to domain 'MRIRESEARCH' is not valid The old PDC IP address is 132.183.202.95 and nothing is at that IP anymore (for 4 days now). The new IP is 172.21.21.35 I ran 'net -d 10 join' and would see it was still trying to connect to the old IP address. I tried 'net cache flush' to no avail. I shut down samba, removed every file in /var/cache/samba and still no change. It tries to go to the old IP address. On the PDC box, I increase 'os level' from 60 to 70, stopped the nmbd and smbd processes, did a 'net flush cache' and restarted nmbd and smbd. Still it fails and the nmbd log as the following. == [2012/09/04 10:09:25, 0] nmbd/nmbd.c:857(main) nmbd version 3.5.10-0.110
Re: [Samba] Changed PDC IP, all hell broke lose
I emailed the admins and they said they removed the old IP address from the WINS server and that seemed to fix things. -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Thu, 6 Sep 2012 9:37am, Robert Adkins II wrote: I think you can/should have them remove the PDC from their WINS entry on their end and then you can rejoin the network with the new IP Address. Outside of that, I can only suggest looking into how to send an update to a record on a WINS server from a Samba PDC. I'm unsure if that is possible as I have only run a fully Windows or a Linux/Samba with Windows Clients as a network. -- Regards, Robert Adkins -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines Sent: Tuesday, September 04, 2012 2:24 PM To: samba@lists.samba.org Subject: Re: [Samba] Changed PDC IP, all hell broke lose It is definitely an issue with the WINS server which returns the old IP address # nmblookup -U 172.27.88.81 -R 'MRIRESEARCH#1b' querying MRIRESEARCH on 172.27.88.81 132.183.202.95 MRIRESEARCH1b SO it is not automatically picking up the IP change which happened 4 days ago and I have restarted samba on my PDC several times. The old IP is definitely not in /etc/hosts anymore or anywhere in smb.conf. It only shows up in gencache.tdb in the files /var/lib/samba even though I keep deleting that file when I restart. WINS is a total mystery to me. How is this supposed to work? -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 12:00pm, Paul Raines wrote: I have no idea what the WINS server is except that I am sure it running on Windows since they are totally Windows-based organization. So the WINS server is definitely the problem? When I talk to them and mention I am using Samba on Linux they may totally just say we don't support it and hang up. It seems a strange design that a WINS server can take precedence over my explicit password server setting in my smb.conf file. -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 11:21am, Robert Adkins II wrote: More information is required. What is the WINS server running OS wise? Can you work with the IT Staff in charge of that WINS Server? -- Regards, Robert Adkins -Original Message- From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu] Sent: Tuesday, September 04, 2012 11:16 AM To: Robert Adkins II Cc: samba@lists.samba.org Subject: RE: [Samba] Changed PDC IP, all hell broke lose I am not running winbindd on the server. I am using the WINS server of my hospital which I have no control over. I have already tried deleting browse.dat (I do not see the other two files anywhere) to no avail. So my fear is that this is all happening because the WINS server is refusing to recognize the change since I cannot do anything about it. Is that the issue? Is there anyway to force a WINS server to change the IP it has a for domain master browser? -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 10:59am, Robert Adkins II wrote: It's most likely that your server has the old IP Address Cached in the wins.dat, browse.dat, browse.tdb. I recommend the following: Shutdown the windbind, nmbd and smbd services. Back up each of the above mentioned files. Delete the original above named files. Restart your services and then see if you can connect. You may also need to edit your samba configuration file to point to the new server IP Address as the PDC Master Browser. (Assuming you didn't already do that.) The problem is that your server is telling clients to attempt to find it on a network that no longer exists. -- Regards, Robert Adkins II -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines Sent: Tuesday, September 04, 2012 10:41 AM To: samba@lists.samba.org Subject: [Samba] Changed PDC IP, all hell broke lose I had to move my RedHat 5 box acting as a PDC to a new IP address. It is running samba 3.5.10. After the move, none of my windows or linux samba clients worked anymore. I tried rejoining some to the domain, but would get error Unable to find a suitable server Join to domain 'MRIRESEARCH' is not valid The old PDC IP address is 132.183.202.95 and nothing is at that IP anymore (for 4 days now). The new IP is 172.21.21.35 I ran 'net -d 10 join' and would see it was still trying to connect to the old IP address. I tried 'net cache flush' to no avail. I shut down samba, removed every file in /var/cache/samba and still no change. It tries to go to the old IP address. On the PDC box, I increase 'os level' from 60 to 70, stopped the nmbd and smbd processes, did a 'net flush cache' and restarted nmbd and smbd. Still it fails and the nmbd log as the following. == [2012/09/04 10:09:25, 0] nmbd/nmbd.c:857(main) nmbd version 3.5.10-0.110.el5_8 started. Copyright Andrew
Re: [Samba] Changed PDC IP, all hell broke lose
Great to see! -- Regards, Robert Adkins -Original Message- From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu] Sent: Thursday, September 06, 2012 9:45 AM To: Robert Adkins II Cc: samba@lists.samba.org Subject: RE: [Samba] Changed PDC IP, all hell broke lose I emailed the admins and they said they removed the old IP address from the WINS server and that seemed to fix things. -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Thu, 6 Sep 2012 9:37am, Robert Adkins II wrote: I think you can/should have them remove the PDC from their WINS entry on their end and then you can rejoin the network with the new IP Address. Outside of that, I can only suggest looking into how to send an update to a record on a WINS server from a Samba PDC. I'm unsure if that is possible as I have only run a fully Windows or a Linux/Samba with Windows Clients as a network. -- Regards, Robert Adkins -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines Sent: Tuesday, September 04, 2012 2:24 PM To: samba@lists.samba.org Subject: Re: [Samba] Changed PDC IP, all hell broke lose It is definitely an issue with the WINS server which returns the old IP address # nmblookup -U 172.27.88.81 -R 'MRIRESEARCH#1b' querying MRIRESEARCH on 172.27.88.81 132.183.202.95 MRIRESEARCH1b SO it is not automatically picking up the IP change which happened 4 days ago and I have restarted samba on my PDC several times. The old IP is definitely not in /etc/hosts anymore or anywhere in smb.conf. It only shows up in gencache.tdb in the files /var/lib/samba even though I keep deleting that file when I restart. WINS is a total mystery to me. How is this supposed to work? -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 12:00pm, Paul Raines wrote: I have no idea what the WINS server is except that I am sure it running on Windows since they are totally Windows-based organization. So the WINS server is definitely the problem? When I talk to them and mention I am using Samba on Linux they may totally just say we don't support it and hang up. It seems a strange design that a WINS server can take precedence over my explicit password server setting in my smb.conf file. -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 11:21am, Robert Adkins II wrote: More information is required. What is the WINS server running OS wise? Can you work with the IT Staff in charge of that WINS Server? -- Regards, Robert Adkins -Original Message- From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu] Sent: Tuesday, September 04, 2012 11:16 AM To: Robert Adkins II Cc: samba@lists.samba.org Subject: RE: [Samba] Changed PDC IP, all hell broke lose I am not running winbindd on the server. I am using the WINS server of my hospital which I have no control over. I have already tried deleting browse.dat (I do not see the other two files anywhere) to no avail. So my fear is that this is all happening because the WINS server is refusing to recognize the change since I cannot do anything about it. Is that the issue? Is there anyway to force a WINS server to change the IP it has a for domain master browser? -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 10:59am, Robert Adkins II wrote: It's most likely that your server has the old IP Address Cached in the wins.dat, browse.dat, browse.tdb. I recommend the following: Shutdown the windbind, nmbd and smbd services. Back up each of the above mentioned files. Delete the original above named files. Restart your services and then see if you can connect. You may also need to edit your samba configuration file to point to the new server IP Address as the PDC Master Browser. (Assuming you didn't already do that.) The problem is that your server is telling clients to attempt to find it on a network that no longer exists. -- Regards, Robert Adkins II -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines Sent: Tuesday, September 04, 2012 10:41 AM To: samba@lists.samba.org Subject: [Samba] Changed PDC IP, all hell broke lose I had to move my RedHat 5 box acting as a PDC to a new IP address. It is running samba 3.5.10. After the move, none of my windows or linux samba clients worked anymore. I tried rejoining some to the domain, but would get error Unable to find a suitable server Join to domain 'MRIRESEARCH' is not valid The old PDC IP address is 132.183.202.95 and nothing is at that IP anymore (for 4 days now). The new IP is 172.21.21.35 I ran 'net -d 10 join
Re: [Samba] Changed PDC IP, all hell broke lose
It's most likely that your server has the old IP Address Cached in the wins.dat, browse.dat, browse.tdb. I recommend the following: Shutdown the windbind, nmbd and smbd services. Back up each of the above mentioned files. Delete the original above named files. Restart your services and then see if you can connect. You may also need to edit your samba configuration file to point to the new server IP Address as the PDC Master Browser. (Assuming you didn't already do that.) The problem is that your server is telling clients to attempt to find it on a network that no longer exists. -- Regards, Robert Adkins II -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines Sent: Tuesday, September 04, 2012 10:41 AM To: samba@lists.samba.org Subject: [Samba] Changed PDC IP, all hell broke lose I had to move my RedHat 5 box acting as a PDC to a new IP address. It is running samba 3.5.10. After the move, none of my windows or linux samba clients worked anymore. I tried rejoining some to the domain, but would get error Unable to find a suitable server Join to domain 'MRIRESEARCH' is not valid The old PDC IP address is 132.183.202.95 and nothing is at that IP anymore (for 4 days now). The new IP is 172.21.21.35 I ran 'net -d 10 join' and would see it was still trying to connect to the old IP address. I tried 'net cache flush' to no avail. I shut down samba, removed every file in /var/cache/samba and still no change. It tries to go to the old IP address. On the PDC box, I increase 'os level' from 60 to 70, stopped the nmbd and smbd processes, did a 'net flush cache' and restarted nmbd and smbd. Still it fails and the nmbd log as the following. == [2012/09/04 10:09:25, 0] nmbd/nmbd.c:857(main) nmbd version 3.5.10-0.110.el5_8 started. Copyright Andrew Tridgell and the Samba Team 1992-2010 [2012/09/04 10:09:25.716397, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet 172.21.21.35 [2012/09/04 10:09:25.716599, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet 192.168.0.150 [2012/09/04 10:09:25.716671, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet UNICAST_SUBNET [2012/09/04 10:09:25.716768, 0] nmbd/nmbd_become_dmb.c:337(become_domain_master_browser_wins) become_domain_master_browser_wins: Attempting to become domain master browser on workgroup MRIRESEARCH, subnet UNICAST_SUBNET. [2012/09/04 10:09:25.716828, 0] nmbd/nmbd_become_dmb.c:351(become_domain_master_browser_wins) become_domain_master_browser_wins: querying WINS server from IP 0.0.0.0 for domain master browser name MRIRESEARCH1b on workgroup MRIRESEARCH [2012/09/04 10:09:25.722744, 0] nmbd/nmbd_logonnames.c:121(become_logon_server_success) become_logon_server_success: Samba is now a logon server for workgroup MRIRESEARCH on subnet UNICAST_SUBNET [2012/09/04 10:09:25.722928, 0] nmbd/nmbd_become_dmb.c:235(become_domain_master_query_success) become_domain_master_query_success: There is already a domain master browser at IP 132.183.202.95 for workgroup MRIRESEARCH registered on subnet UNICAST_SUBNET. [2012/09/04 10:09:29.096239, 0] nmbd/nmbd_logonnames.c:121(become_logon_server_success) become_logon_server_success: Samba is now a logon server for workgroup MRIRESEARCH on subnet 172.21.21.35 [2012/09/04 10:09:29.096382, 0] nmbd/nmbd_logonnames.c:121(become_logon_server_success) become_logon_server_success: Samba is now a logon server for workgroup MRIRESEARCH on subnet 192.168.0.150 [2012/09/04 10:09:49.731244, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2) * Samba name server PDC-NMR is now a local master browser for workgroup MRIRESEARCH on subnet 172.21.21.35 * [2012/09/04 10:09:49.731468, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2) * Samba name server PDC-NMR is now a local master browser for workgroup MRIRESEARCH on subnet 192.168.0.150 * [2012/09/04 10:10:10.732440, 0] nmbd/nmbd_browsesync.c:247(domain_master_node_status_fail) domain_master_node_status_fail: Doing a node status request to the domain master browser for workgroup MRIRESEARCH at IP 132.183.202.95 failed. Cannot sync browser lists. [2012/09/04 10:10:10.732636, 0] nmbd/nmbd_browsesync.c:247(domain_master_node_status_fail) domain_master_node_status_fail: Doing a node status request to the domain master browser for workgroup MRIRESEARCH at IP 132.183.202.95 failed. Cannot sync browser lists. = Where
Re: [Samba] Changed PDC IP, all hell broke lose
I am not running winbindd on the server. I am using the WINS server of my hospital which I have no control over. I have already tried deleting browse.dat (I do not see the other two files anywhere) to no avail. So my fear is that this is all happening because the WINS server is refusing to recognize the change since I cannot do anything about it. Is that the issue? Is there anyway to force a WINS server to change the IP it has a for domain master browser? -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 10:59am, Robert Adkins II wrote: It's most likely that your server has the old IP Address Cached in the wins.dat, browse.dat, browse.tdb. I recommend the following: Shutdown the windbind, nmbd and smbd services. Back up each of the above mentioned files. Delete the original above named files. Restart your services and then see if you can connect. You may also need to edit your samba configuration file to point to the new server IP Address as the PDC Master Browser. (Assuming you didn't already do that.) The problem is that your server is telling clients to attempt to find it on a network that no longer exists. -- Regards, Robert Adkins II -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines Sent: Tuesday, September 04, 2012 10:41 AM To: samba@lists.samba.org Subject: [Samba] Changed PDC IP, all hell broke lose I had to move my RedHat 5 box acting as a PDC to a new IP address. It is running samba 3.5.10. After the move, none of my windows or linux samba clients worked anymore. I tried rejoining some to the domain, but would get error Unable to find a suitable server Join to domain 'MRIRESEARCH' is not valid The old PDC IP address is 132.183.202.95 and nothing is at that IP anymore (for 4 days now). The new IP is 172.21.21.35 I ran 'net -d 10 join' and would see it was still trying to connect to the old IP address. I tried 'net cache flush' to no avail. I shut down samba, removed every file in /var/cache/samba and still no change. It tries to go to the old IP address. On the PDC box, I increase 'os level' from 60 to 70, stopped the nmbd and smbd processes, did a 'net flush cache' and restarted nmbd and smbd. Still it fails and the nmbd log as the following. == [2012/09/04 10:09:25, 0] nmbd/nmbd.c:857(main) nmbd version 3.5.10-0.110.el5_8 started. Copyright Andrew Tridgell and the Samba Team 1992-2010 [2012/09/04 10:09:25.716397, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet 172.21.21.35 [2012/09/04 10:09:25.716599, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet 192.168.0.150 [2012/09/04 10:09:25.716671, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet UNICAST_SUBNET [2012/09/04 10:09:25.716768, 0] nmbd/nmbd_become_dmb.c:337(become_domain_master_browser_wins) become_domain_master_browser_wins: Attempting to become domain master browser on workgroup MRIRESEARCH, subnet UNICAST_SUBNET. [2012/09/04 10:09:25.716828, 0] nmbd/nmbd_become_dmb.c:351(become_domain_master_browser_wins) become_domain_master_browser_wins: querying WINS server from IP 0.0.0.0 for domain master browser name MRIRESEARCH1b on workgroup MRIRESEARCH [2012/09/04 10:09:25.722744, 0] nmbd/nmbd_logonnames.c:121(become_logon_server_success) become_logon_server_success: Samba is now a logon server for workgroup MRIRESEARCH on subnet UNICAST_SUBNET [2012/09/04 10:09:25.722928, 0] nmbd/nmbd_become_dmb.c:235(become_domain_master_query_success) become_domain_master_query_success: There is already a domain master browser at IP 132.183.202.95 for workgroup MRIRESEARCH registered on subnet UNICAST_SUBNET. [2012/09/04 10:09:29.096239, 0] nmbd/nmbd_logonnames.c:121(become_logon_server_success) become_logon_server_success: Samba is now a logon server for workgroup MRIRESEARCH on subnet 172.21.21.35 [2012/09/04 10:09:29.096382, 0] nmbd/nmbd_logonnames.c:121(become_logon_server_success) become_logon_server_success: Samba is now a logon server for workgroup MRIRESEARCH on subnet 192.168.0.150 [2012/09/04 10:09:49.731244, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2) * Samba name server PDC-NMR is now a local master browser for workgroup MRIRESEARCH on subnet 172.21.21.35 * [2012/09/04 10:09:49.731468, 0] nmbd/nmbd_become_lmb.c:395(become_local_master_stage2) * Samba name server PDC-NMR is now a local master browser for workgroup MRIRESEARCH on subnet 192.168.0.150 * [2012/09/04 10:10:10.732440, 0] nmbd/nmbd_browsesync.c:247(domain_master_node_status_fail) domain_master_node_status_fail: Doing a node status request to the domain master
Re: [Samba] Changed PDC IP, all hell broke lose
More information is required. What is the WINS server running OS wise? Can you work with the IT Staff in charge of that WINS Server? -- Regards, Robert Adkins -Original Message- From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu] Sent: Tuesday, September 04, 2012 11:16 AM To: Robert Adkins II Cc: samba@lists.samba.org Subject: RE: [Samba] Changed PDC IP, all hell broke lose I am not running winbindd on the server. I am using the WINS server of my hospital which I have no control over. I have already tried deleting browse.dat (I do not see the other two files anywhere) to no avail. So my fear is that this is all happening because the WINS server is refusing to recognize the change since I cannot do anything about it. Is that the issue? Is there anyway to force a WINS server to change the IP it has a for domain master browser? -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 10:59am, Robert Adkins II wrote: It's most likely that your server has the old IP Address Cached in the wins.dat, browse.dat, browse.tdb. I recommend the following: Shutdown the windbind, nmbd and smbd services. Back up each of the above mentioned files. Delete the original above named files. Restart your services and then see if you can connect. You may also need to edit your samba configuration file to point to the new server IP Address as the PDC Master Browser. (Assuming you didn't already do that.) The problem is that your server is telling clients to attempt to find it on a network that no longer exists. -- Regards, Robert Adkins II -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines Sent: Tuesday, September 04, 2012 10:41 AM To: samba@lists.samba.org Subject: [Samba] Changed PDC IP, all hell broke lose I had to move my RedHat 5 box acting as a PDC to a new IP address. It is running samba 3.5.10. After the move, none of my windows or linux samba clients worked anymore. I tried rejoining some to the domain, but would get error Unable to find a suitable server Join to domain 'MRIRESEARCH' is not valid The old PDC IP address is 132.183.202.95 and nothing is at that IP anymore (for 4 days now). The new IP is 172.21.21.35 I ran 'net -d 10 join' and would see it was still trying to connect to the old IP address. I tried 'net cache flush' to no avail. I shut down samba, removed every file in /var/cache/samba and still no change. It tries to go to the old IP address. On the PDC box, I increase 'os level' from 60 to 70, stopped the nmbd and smbd processes, did a 'net flush cache' and restarted nmbd and smbd. Still it fails and the nmbd log as the following. == [2012/09/04 10:09:25, 0] nmbd/nmbd.c:857(main) nmbd version 3.5.10-0.110.el5_8 started. Copyright Andrew Tridgell and the Samba Team 1992-2010 [2012/09/04 10:09:25.716397, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet 172.21.21.35 [2012/09/04 10:09:25.716599, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet 192.168.0.150 [2012/09/04 10:09:25.716671, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet UNICAST_SUBNET [2012/09/04 10:09:25.716768, 0] nmbd/nmbd_become_dmb.c:337(become_domain_master_browser_wins) become_domain_master_browser_wins: Attempting to become domain master browser on workgroup MRIRESEARCH, subnet UNICAST_SUBNET. [2012/09/04 10:09:25.716828, 0] nmbd/nmbd_become_dmb.c:351(become_domain_master_browser_wins) become_domain_master_browser_wins: querying WINS server from IP 0.0.0.0 for domain master browser name MRIRESEARCH1b on workgroup MRIRESEARCH [2012/09/04 10:09:25.722744, 0] nmbd/nmbd_logonnames.c:121(become_logon_server_success) become_logon_server_success: Samba is now a logon server for workgroup MRIRESEARCH on subnet UNICAST_SUBNET [2012/09/04 10:09:25.722928, 0] nmbd/nmbd_become_dmb.c:235(become_domain_master_query_success) become_domain_master_query_success: There is already a domain master browser at IP 132.183.202.95 for workgroup MRIRESEARCH registered on subnet UNICAST_SUBNET. [2012/09/04 10:09:29.096239, 0] nmbd/nmbd_logonnames.c:121(become_logon_server_success) become_logon_server_success: Samba is now a logon server for workgroup MRIRESEARCH on subnet 172.21.21.35 [2012/09/04 10:09:29.096382, 0] nmbd/nmbd_logonnames.c:121(become_logon_server_success) become_logon_server_success: Samba is now a logon server
Re: [Samba] Changed PDC IP, all hell broke lose
I have no idea what the WINS server is except that I am sure it running on Windows since they are totally Windows-based organization. So the WINS server is definitely the problem? When I talk to them and mention I am using Samba on Linux they may totally just say we don't support it and hang up. It seems a strange design that a WINS server can take precedence over my explicit password server setting in my smb.conf file. -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 11:21am, Robert Adkins II wrote: More information is required. What is the WINS server running OS wise? Can you work with the IT Staff in charge of that WINS Server? -- Regards, Robert Adkins -Original Message- From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu] Sent: Tuesday, September 04, 2012 11:16 AM To: Robert Adkins II Cc: samba@lists.samba.org Subject: RE: [Samba] Changed PDC IP, all hell broke lose I am not running winbindd on the server. I am using the WINS server of my hospital which I have no control over. I have already tried deleting browse.dat (I do not see the other two files anywhere) to no avail. So my fear is that this is all happening because the WINS server is refusing to recognize the change since I cannot do anything about it. Is that the issue? Is there anyway to force a WINS server to change the IP it has a for domain master browser? -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 10:59am, Robert Adkins II wrote: It's most likely that your server has the old IP Address Cached in the wins.dat, browse.dat, browse.tdb. I recommend the following: Shutdown the windbind, nmbd and smbd services. Back up each of the above mentioned files. Delete the original above named files. Restart your services and then see if you can connect. You may also need to edit your samba configuration file to point to the new server IP Address as the PDC Master Browser. (Assuming you didn't already do that.) The problem is that your server is telling clients to attempt to find it on a network that no longer exists. -- Regards, Robert Adkins II -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines Sent: Tuesday, September 04, 2012 10:41 AM To: samba@lists.samba.org Subject: [Samba] Changed PDC IP, all hell broke lose I had to move my RedHat 5 box acting as a PDC to a new IP address. It is running samba 3.5.10. After the move, none of my windows or linux samba clients worked anymore. I tried rejoining some to the domain, but would get error Unable to find a suitable server Join to domain 'MRIRESEARCH' is not valid The old PDC IP address is 132.183.202.95 and nothing is at that IP anymore (for 4 days now). The new IP is 172.21.21.35 I ran 'net -d 10 join' and would see it was still trying to connect to the old IP address. I tried 'net cache flush' to no avail. I shut down samba, removed every file in /var/cache/samba and still no change. It tries to go to the old IP address. On the PDC box, I increase 'os level' from 60 to 70, stopped the nmbd and smbd processes, did a 'net flush cache' and restarted nmbd and smbd. Still it fails and the nmbd log as the following. == [2012/09/04 10:09:25, 0] nmbd/nmbd.c:857(main) nmbd version 3.5.10-0.110.el5_8 started. Copyright Andrew Tridgell and the Samba Team 1992-2010 [2012/09/04 10:09:25.716397, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet 172.21.21.35 [2012/09/04 10:09:25.716599, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet 192.168.0.150 [2012/09/04 10:09:25.716671, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet UNICAST_SUBNET [2012/09/04 10:09:25.716768, 0] nmbd/nmbd_become_dmb.c:337(become_domain_master_browser_wins) become_domain_master_browser_wins: Attempting to become domain master browser on workgroup MRIRESEARCH, subnet UNICAST_SUBNET. [2012/09/04 10:09:25.716828, 0] nmbd/nmbd_become_dmb.c:351(become_domain_master_browser_wins) become_domain_master_browser_wins: querying WINS server from IP 0.0.0.0 for domain master browser name MRIRESEARCH1b on workgroup MRIRESEARCH [2012/09/04 10:09:25.722744, 0] nmbd/nmbd_logonnames.c:121(become_logon_server_success) become_logon_server_success: Samba is now a logon server for workgroup MRIRESEARCH on subnet UNICAST_SUBNET [2012/09/04 10:09:25.722928, 0] nmbd/nmbd_become_dmb.c:235(become_domain_master_query_success) become_domain_master_query_success: There is already a domain master browser at IP 132.183.202.95 for workgroup MRIRESEARCH registered on subnet UNICAST_SUBNET. [2012/09/04 10:09:29.096239, 0] nmbd/nmbd_logonnames.c:121
Re: [Samba] Changed PDC IP, all hell broke lose
I'm in a similar situation, and have run into your issue once. I work at a hospital, have several freebsd boxes running samba and joined to the Windows-based domain. I am *not* using my samba servers for auth, rather just depending on Active Directory for that. However, there are two things to check when it's acting like you have the wrong IP. 1st one is easy - on the samba box, please check the hosts file, I've made that mistake a couple times - change the IP but not the hosts file. 2nd one is if you login to a windows domain, you need to remove your node out of the directory - or have them do it. See, the box will be registered in A/D and it will have some information associated with it in A/D. I don't know the entirety of it, but removing the machine totally out of A/D has solved a number of problems for me - allowing me to re-join and proceed with the day. Good Luck! Jack On 2012-09-04 10:00, Paul Raines wrote: I have no idea what the WINS server is except that I am sure it running on Windows since they are totally Windows-based organization. So the WINS server is definitely the problem? When I talk to them and mention I am using Samba on Linux they may totally just say we don't support it and hang up. It seems a strange design that a WINS server can take precedence over my explicit password server setting in my smb.conf file. -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 11:21am, Robert Adkins II wrote: More information is required. What is the WINS server running OS wise? Can you work with the IT Staff in charge of that WINS Server? -- Regards, Robert Adkins -Original Message- From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu] Sent: Tuesday, September 04, 2012 11:16 AM To: Robert Adkins II Cc: samba@lists.samba.org Subject: RE: [Samba] Changed PDC IP, all hell broke lose I am not running winbindd on the server. I am using the WINS server of my hospital which I have no control over. I have already tried deleting browse.dat (I do not see the other two files anywhere) to no avail. So my fear is that this is all happening because the WINS server is refusing to recognize the change since I cannot do anything about it. Is that the issue? Is there anyway to force a WINS server to change the IP it has a for domain master browser? -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 10:59am, Robert Adkins II wrote: It's most likely that your server has the old IP Address Cached in the wins.dat, browse.dat, browse.tdb. I recommend the following: Shutdown the windbind, nmbd and smbd services. Back up each of the above mentioned files. Delete the original above named files. Restart your services and then see if you can connect. You may also need to edit your samba configuration file to point to the new server IP Address as the PDC Master Browser. (Assuming you didn't already do that.) The problem is that your server is telling clients to attempt to find it on a network that no longer exists. -- Regards, Robert Adkins II -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines Sent: Tuesday, September 04, 2012 10:41 AM To: samba@lists.samba.org Subject: [Samba] Changed PDC IP, all hell broke lose I had to move my RedHat 5 box acting as a PDC to a new IP address. It is running samba 3.5.10. After the move, none of my windows or linux samba clients worked anymore. I tried rejoining some to the domain, but would get error Unable to find a suitable server Join to domain 'MRIRESEARCH' is not valid The old PDC IP address is 132.183.202.95 and nothing is at that IP anymore (for 4 days now). The new IP is 172.21.21.35 I ran 'net -d 10 join' and would see it was still trying to connect to the old IP address. I tried 'net cache flush' to no avail. I shut down samba, removed every file in /var/cache/samba and still no change. It tries to go to the old IP address. On the PDC box, I increase 'os level' from 60 to 70, stopped the nmbd and smbd processes, did a 'net flush cache' and restarted nmbd and smbd. Still it fails and the nmbd log as the following. == [2012/09/04 10:09:25, 0] nmbd/nmbd.c:857(main) nmbd version 3.5.10-0.110.el5_8 started. Copyright Andrew Tridgell and the Samba Team 1992-2010 [2012/09/04 10:09:25.716397, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet 172.21.21.35 [2012/09/04 10:09:25.716599, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet 192.168.0.150 [2012/09/04 10:09:25.716671, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet UNICAST_SUBNET [2012/09/04 10:09:25.716768, 0] nmbd
Re: [Samba] Changed PDC IP, all hell broke lose
It is definitely an issue with the WINS server which returns the old IP address # nmblookup -U 172.27.88.81 -R 'MRIRESEARCH#1b' querying MRIRESEARCH on 172.27.88.81 132.183.202.95 MRIRESEARCH1b SO it is not automatically picking up the IP change which happened 4 days ago and I have restarted samba on my PDC several times. The old IP is definitely not in /etc/hosts anymore or anywhere in smb.conf. It only shows up in gencache.tdb in the files /var/lib/samba even though I keep deleting that file when I restart. WINS is a total mystery to me. How is this supposed to work? -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 12:00pm, Paul Raines wrote: I have no idea what the WINS server is except that I am sure it running on Windows since they are totally Windows-based organization. So the WINS server is definitely the problem? When I talk to them and mention I am using Samba on Linux they may totally just say we don't support it and hang up. It seems a strange design that a WINS server can take precedence over my explicit password server setting in my smb.conf file. -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 11:21am, Robert Adkins II wrote: More information is required. What is the WINS server running OS wise? Can you work with the IT Staff in charge of that WINS Server? -- Regards, Robert Adkins -Original Message- From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu] Sent: Tuesday, September 04, 2012 11:16 AM To: Robert Adkins II Cc: samba@lists.samba.org Subject: RE: [Samba] Changed PDC IP, all hell broke lose I am not running winbindd on the server. I am using the WINS server of my hospital which I have no control over. I have already tried deleting browse.dat (I do not see the other two files anywhere) to no avail. So my fear is that this is all happening because the WINS server is refusing to recognize the change since I cannot do anything about it. Is that the issue? Is there anyway to force a WINS server to change the IP it has a for domain master browser? -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 10:59am, Robert Adkins II wrote: It's most likely that your server has the old IP Address Cached in the wins.dat, browse.dat, browse.tdb. I recommend the following: Shutdown the windbind, nmbd and smbd services. Back up each of the above mentioned files. Delete the original above named files. Restart your services and then see if you can connect. You may also need to edit your samba configuration file to point to the new server IP Address as the PDC Master Browser. (Assuming you didn't already do that.) The problem is that your server is telling clients to attempt to find it on a network that no longer exists. -- Regards, Robert Adkins II -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines Sent: Tuesday, September 04, 2012 10:41 AM To: samba@lists.samba.org Subject: [Samba] Changed PDC IP, all hell broke lose I had to move my RedHat 5 box acting as a PDC to a new IP address. It is running samba 3.5.10. After the move, none of my windows or linux samba clients worked anymore. I tried rejoining some to the domain, but would get error Unable to find a suitable server Join to domain 'MRIRESEARCH' is not valid The old PDC IP address is 132.183.202.95 and nothing is at that IP anymore (for 4 days now). The new IP is 172.21.21.35 I ran 'net -d 10 join' and would see it was still trying to connect to the old IP address. I tried 'net cache flush' to no avail. I shut down samba, removed every file in /var/cache/samba and still no change. It tries to go to the old IP address. On the PDC box, I increase 'os level' from 60 to 70, stopped the nmbd and smbd processes, did a 'net flush cache' and restarted nmbd and smbd. Still it fails and the nmbd log as the following. == [2012/09/04 10:09:25, 0] nmbd/nmbd.c:857(main) nmbd version 3.5.10-0.110.el5_8 started. Copyright Andrew Tridgell and the Samba Team 1992-2010 [2012/09/04 10:09:25.716397, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet 172.21.21.35 [2012/09/04 10:09:25.716599, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet 192.168.0.150 [2012/09/04 10:09:25.716671, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet UNICAST_SUBNET [2012/09/04 10:09:25.716768, 0] nmbd/nmbd_become_dmb.c:337(become_domain_master_browser_wins) become_domain_master_browser_wins: Attempting to become domain master browser on workgroup MRIRESEARCH, subnet UNICAST_SUBNET. [2012/09/04 10:09:25.716828, 0] nmbd/nmbd_become_dmb.c:351
Re: [Samba] Changed PDC IP, all hell broke lose
Okay, someone else will need to answer on how WINS works, but something else might be going on here. On a windows machine, if you do a ping -a, you'll get ping to resolve your name. I'd check both old and new IPs. Granted, the old won't reply, but you'll see the DNS query go through anyway. What that means then is that the IT staff on the other side has manually loaded a DNS entry into Active Directory, and WINS is pulling from that because that's the information is has to work from. Perform some DNS querys against the A/D dns servers, see if they have the old IP or new one or just plain none at all for your server... On 2012-09-04 12:23, Paul Raines wrote: It is definitely an issue with the WINS server which returns the old IP address # nmblookup -U 172.27.88.81 -R 'MRIRESEARCH#1b' querying MRIRESEARCH on 172.27.88.81 132.183.202.95 MRIRESEARCH1b SO it is not automatically picking up the IP change which happened 4 days ago and I have restarted samba on my PDC several times. The old IP is definitely not in /etc/hosts anymore or anywhere in smb.conf. It only shows up in gencache.tdb in the files /var/lib/samba even though I keep deleting that file when I restart. WINS is a total mystery to me. How is this supposed to work? -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 12:00pm, Paul Raines wrote: I have no idea what the WINS server is except that I am sure it running on Windows since they are totally Windows-based organization. So the WINS server is definitely the problem? When I talk to them and mention I am using Samba on Linux they may totally just say we don't support it and hang up. It seems a strange design that a WINS server can take precedence over my explicit password server setting in my smb.conf file. -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 11:21am, Robert Adkins II wrote: More information is required. What is the WINS server running OS wise? Can you work with the IT Staff in charge of that WINS Server? -- Regards, Robert Adkins -Original Message- From: Paul Raines [mailto:rai...@nmr.mgh.harvard.edu] Sent: Tuesday, September 04, 2012 11:16 AM To: Robert Adkins II Cc: samba@lists.samba.org Subject: RE: [Samba] Changed PDC IP, all hell broke lose I am not running winbindd on the server. I am using the WINS server of my hospital which I have no control over. I have already tried deleting browse.dat (I do not see the other two files anywhere) to no avail. So my fear is that this is all happening because the WINS server is refusing to recognize the change since I cannot do anything about it. Is that the issue? Is there anyway to force a WINS server to change the IP it has a for domain master browser? -- Paul Raines (http://help.nmr.mgh.harvard.edu) On Tue, 4 Sep 2012 10:59am, Robert Adkins II wrote: It's most likely that your server has the old IP Address Cached in the wins.dat, browse.dat, browse.tdb. I recommend the following: Shutdown the windbind, nmbd and smbd services. Back up each of the above mentioned files. Delete the original above named files. Restart your services and then see if you can connect. You may also need to edit your samba configuration file to point to the new server IP Address as the PDC Master Browser. (Assuming you didn't already do that.) The problem is that your server is telling clients to attempt to find it on a network that no longer exists. -- Regards, Robert Adkins II -Original Message- From: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] On Behalf Of Paul Raines Sent: Tuesday, September 04, 2012 10:41 AM To: samba@lists.samba.org Subject: [Samba] Changed PDC IP, all hell broke lose I had to move my RedHat 5 box acting as a PDC to a new IP address. It is running samba 3.5.10. After the move, none of my windows or linux samba clients worked anymore. I tried rejoining some to the domain, but would get error Unable to find a suitable server Join to domain 'MRIRESEARCH' is not valid The old PDC IP address is 132.183.202.95 and nothing is at that IP anymore (for 4 days now). The new IP is 172.21.21.35 I ran 'net -d 10 join' and would see it was still trying to connect to the old IP address. I tried 'net cache flush' to no avail. I shut down samba, removed every file in /var/cache/samba and still no change. It tries to go to the old IP address. On the PDC box, I increase 'os level' from 60 to 70, stopped the nmbd and smbd processes, did a 'net flush cache' and restarted nmbd and smbd. Still it fails and the nmbd log as the following. == [2012/09/04 10:09:25, 0] nmbd/nmbd.c:857(main) nmbd version 3.5.10-0.110.el5_8 started. Copyright Andrew Tridgell and the Samba Team 1992-2010 [2012/09/04 10:09:25.716397, 0] nmbd/nmbd_logonnames.c:160(add_logon_names) add_domain_logon_names: Attempting to become logon server for workgroup MRIRESEARCH on subnet 172.21.21.35 [2012/09/04 10