[Samba] samba slowing down

Ricky Nance ricky.nance at gmail.com
Thu Dec 18 15:22:19 MST 2014


On Thu, Dec 18, 2014 at 3:51 PM, Cj Tibbetts <
cjtibbetts at heritageacademyaz.com> wrote:
>
> Thank you Ricky for responding. I am still new to linux and samba so I am
> struggling with where to start. I will answer your questions the best that
> I can. For memory use I see only a small increase over time. I used vmstat
> after reboot and after 30 min. I am using samba 4.1.9 compiled with samba
> internal dns. Ntp and freeradius packages are installed but freeradius is
> not started up. Ubuntu server 14.04 updated 2 weeks ago. I tried looking in
> the logs under /usr/local/samba/var and found a dns error. This confuses me
> because it responds to dns queries for the first hour after that it becomes
> intermitant. after 24 hrs. it takes many tries before any response of any
> kind is returned. I have another DC that appears to be connected to the
> domain as a AD DC but it does not give out any sort of support. For
> example. Using smbstatus
>
> Samba version 4.1.9
> PID     Username      Group         Machine
> -------------------------------------------------------------------
> 25340     3000464       users         10.3.12.18   (ipv4:10.3.12.18:49391)
> 25904     3000047       3000018       10.1.100.83  (ipv4:10.1.100.83:54949
> )
> 24051     3000269       3000018       10.3.12.13   (ipv4:10.3.12.13:62245)
> 25806     3000026       3000018       10.1.10.73   (ipv4:10.1.10.73:54555)
> 25818     3000029       3000018       10.1.10.111  (ipv4:10.1.10.111:61216
> )
> 25903     3000232       users         10.3.12.26   (ipv4:10.3.12.26:59159)
>
> Service      pid     machine       Connected at
> -------------------------------------------------------
> IPC$         25818   10.1.10.111   Thu Dec 18 13:50:49 2014
> IPC$         25340   10.3.12.18    Thu Dec 18 13:29:28 2014
> IPC$         24051   10.3.12.13    Thu Dec 18 12:10:42 2014
> sysvol       25903   10.3.12.26    Thu Dec 18 13:59:52 2014
> IPC$         25904   10.1.100.83   Thu Dec 18 14:00:00 2014
> IPC$         25806   10.1.10.73    Thu Dec 18 13:50:02 2014
>
> Locked files:
> Pid          Uid        DenyMode   Access      R/W        Oplock
>  SharePath   Name   Time
> ------------------------------------------------------------
> --------------------------------------
> 25903        3000232    DENY_WRITE 0x120089    RDONLY     BATCH
> /usr/local/samba/var/locks/sysvol
> ad.ha.net/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI
> <http://ad.ha.net/Policies/%7B31B2F340-016D-11D2-945F-00C04FB984F9%7D/GPT.INI>
>  Thu Dec 18 13:59:52 2014
> 25903        3000232    DENY_WRITE 0x120089    RDONLY     BATCH
> /usr/local/samba/var/locks/sysvol
> ad.ha.net/Policies/{D1289ADB-9B8E-493A-9912-11B36D6F703E}/GPT.INI
> <http://ad.ha.net/Policies/%7BD1289ADB-9B8E-493A-9912-11B36D6F703E%7D/GPT.INI>
>  Thu Dec 18 13:59:52 2014
>
>
> on the second (not fsmo)
>
> no connections all day
>
>
> As mentioned I tried adding another DC which failed half way through
> although when I look at the windows active directory users and computers it
> shows the failed dc as a functioning dc. I receive errors when I try to
> tell it to replicate. It fails when it try's replicate the dns. I am also
> trying to run debug=3 in samba. Which shows connection refusals/failures to
> the second DC. So I see DNS and replication issues. I am not sure what to
> do next. Suggestions?
>
> CJ
>
> On Thu, Dec 18, 2014 at 1:50 PM, Ricky Nance <ricky.nance at gmail.com>
> wrote:
>>
>> Are you seeing a large amount of memory usage after it degrades? Which
>> samba version are you using (samba -V)? Which distro? The more information
>> you can give us, the more we can help.
>>
>> Ricky
>>
>> On Mon, Dec 15, 2014 at 3:06 PM, Cj Tibbetts <
>> cjtibbetts at heritageacademyaz.com> wrote:
>>>
>>> The longer our samba runs the more delayed the responses become. Samba
>>> has
>>> been running for 5 months but this new development was noticed 2 weeks
>>> ago.
>>> The first major sign of the issue was a new DC was trying to join and
>>> failed due to timeout errors. At close look we see performance
>>> degradation
>>> within a few hours or when we try to join a new DC.
>>>
>>> smb.conf
>>> # Global parameters
>>> [global]
>>>         workgroup = AD
>>>         realm = AD.HA.NET <http://ad.ha.net/>
>>>         netbios name = HAM1
>>>         server role = active directory domain controller
>>>         dns forwarder = 10.1.254.2
>>>         idmap_ldb:use rfc2307 = yes
>>>
>>> [netlogon]
>>>         path = /usr/local/samba/var/locks/sysvol/ad.ha.net/scripts
>>>         read only = No
>>>
>>> [sysvol]
>>>         path = /usr/local/samba/var/locks/sysvol
>>>         read only = No
>>> --
>>> To unsubscribe from this list go to the following URL and read the
>>> instructions:  https://lists.samba.org/mailman/options/samba
>>
>>

I am going to reply to your other thread on the list with a couple of
things, be sure to do a reply all so we can get list feedback as well (the
devs monitor that list, so after some troubleshooting they may be able to
help more).


More information about the samba mailing list