[Samba] git folder moved : waf : The top source directory has moved. Please run distclean and reconfigure
Hi all, As samba4 git source took a looong time to download, I've moved the folder away from original directory. Trying to compile 4.0.10, make shows : 'configure' finished successfully (52.943s) WAF_MAKE=1 python ./buildtools/bin/waf build cannot find include/config.h Waf: Entering directory `/home/serveur/git/samba4/bin' bld.curdir /media/data/git/samba4/lib/replace/../../buildtools/wafsamba is not a child of /home/serveur/git/samba4 /media/data/git/samba4/wscript: error: Traceback (most recent call last): File /media/data/git/samba4/buildtools/wafadmin/Utils.py, line 647, in recurse exec(compile(txt, file_path, 'exec'), dc) File /media/data/git/samba4/wscript_build, line 30, in module bld.RECURSE('lib/replace') File ./buildtools/wafsamba/samba_utils.py, line 472, in RECURSE return ctx.add_subdirs(relpath) File /media/data/git/samba4/buildtools/wafadmin/Build.py, line 993, in add_subdirs self.recurse(dirs, 'build') File /media/data/git/samba4/buildtools/wafadmin/Utils.py, line 634, in recurse f(self) File /media/data/git/samba4/lib/replace/wscript, line 575, in build bld.RECURSE('buildtools/wafsamba') File ./buildtools/wafsamba/samba_utils.py, line 472, in RECURSE return ctx.add_subdirs(relpath) File /media/data/git/samba4/buildtools/wafadmin/Build.py, line 993, in add_subdirs self.recurse(dirs, 'build') File /media/data/git/samba4/buildtools/wafadmin/Utils.py, line 634, in recurse f(self) File /media/data/git/samba4/lib/replace/../../buildtools/wafsamba/wscript, line 427, in build raise Utils.WafError('''The top source directory has moved. Please run distclean and reconfigure''') WafError: The top source directory has moved. Please run distclean and reconfigure make: *** [all] Erreur 1 I tried : git clean -x -f -d but I'm still getting the error above. Could someone assist a bit with this ? Thanks in advance for your time ! (samba4 git download takes something like 4 hours from here) Nicolas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] git folder moved : waf : The top source directory has moved. Please run distclean and reconfigure
Le 09/10/2013 06:15, m...@electronico.nc a écrit : Hi all, As samba4 git source took a looong time to download, I've moved the folder away from original directory. Trying to compile 4.0.10, make shows : 'configure' finished successfully (52.943s) WAF_MAKE=1 python ./buildtools/bin/waf build cannot find include/config.h Waf: Entering directory `/home/serveur/git/samba4/bin' bld.curdir /media/data/git/samba4/lib/replace/../../buildtools/wafsamba is not a child of /home/serveur/git/samba4 /media/data/git/samba4/wscript: error: Traceback (most recent call last): File /media/data/git/samba4/buildtools/wafadmin/Utils.py, line 647, in recurse exec(compile(txt, file_path, 'exec'), dc) File /media/data/git/samba4/wscript_build, line 30, in module bld.RECURSE('lib/replace') File ./buildtools/wafsamba/samba_utils.py, line 472, in RECURSE return ctx.add_subdirs(relpath) File /media/data/git/samba4/buildtools/wafadmin/Build.py, line 993, in add_subdirs self.recurse(dirs, 'build') File /media/data/git/samba4/buildtools/wafadmin/Utils.py, line 634, in recurse f(self) File /media/data/git/samba4/lib/replace/wscript, line 575, in build bld.RECURSE('buildtools/wafsamba') File ./buildtools/wafsamba/samba_utils.py, line 472, in RECURSE return ctx.add_subdirs(relpath) File /media/data/git/samba4/buildtools/wafadmin/Build.py, line 993, in add_subdirs self.recurse(dirs, 'build') File /media/data/git/samba4/buildtools/wafadmin/Utils.py, line 634, in recurse f(self) File /media/data/git/samba4/lib/replace/../../buildtools/wafsamba/wscript, line 427, in build raise Utils.WafError('''The top source directory has moved. Please run distclean and reconfigure''') WafError: The top source directory has moved. Please run distclean and reconfigure make: *** [all] Erreur 1 I tried : git clean -x -f -d but I'm still getting the error above. Could someone assist a bit with this ? Thanks in advance for your time ! (samba4 git download takes something like 4 hours from here) Nicolas I tried : make distclean - WAF_MAKE=1 python ./buildtools/bin/waf distclean project '/media/data/git/samba4/bin' cannot be removed 'distclean' finished successfully (0.015s) sudo make distclean - WAF_MAKE=1 python ./buildtools/bin/waf distclean 'distclean' finished successfully (0.000s) but 'make' still displays the same error ... so still looking for help ... TIA Nicolas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] git folder moved : waf : The top source directory has moved. Please run distclean and reconfigure // OK
I tried : make distclean - WAF_MAKE=1 python ./buildtools/bin/waf distclean project '/media/data/git/samba4/bin' cannot be removed 'distclean' finished successfully (0.015s) sudo make distclean - WAF_MAKE=1 python ./buildtools/bin/waf distclean 'distclean' finished successfully (0.000s) but 'make' still displays the same error ... so still looking for help ... TIA Nicolas Turned out that bin directory couldn't be deleted by the script. sudo rm -R bin allowed compilation to complete git clean -dfx Removing bin/ *warning: failed to remove bin/* Removing buildtools/wafadmin/Build.pyc Removing buildtools/wafadmin/Configure.pyc Removing buildtools/wafadmin/Constants.pyc Removing buildtools/wafadmin/Environment.pyc Removing buildtools/wafadmin/Logs.pyc Removing buildtools/wafadmin/Node.pyc Removing buildtools/wafadmin/Options.pyc Removing buildtools/wafadmin/Runner.pyc Removing buildtools/wafadmin/Scripting.pyc Removing buildtools/wafadmin/Task.pyc Removing buildtools/wafadmin/TaskGen.pyc Removing buildtools/wafadmin/Tools/ar.pyc Removing buildtools/wafadmin/Tools/cc.pyc Removing buildtools/wafadmin/Tools/ccroot.pyc Removing buildtools/wafadmin/Tools/compiler_cc.pyc Removing buildtools/wafadmin/Tools/config_c.pyc Removing buildtools/wafadmin/Tools/cxx.pyc Removing buildtools/wafadmin/Tools/gcc.pyc Removing buildtools/wafadmin/Tools/gnu_dirs.pyc Removing buildtools/wafadmin/Tools/icc.pyc Removing buildtools/wafadmin/Tools/intltool.pyc Removing buildtools/wafadmin/Tools/perl.pyc Removing buildtools/wafadmin/Tools/preproc.pyc Removing buildtools/wafadmin/Tools/python.pyc Removing buildtools/wafadmin/Tools/suncc.pyc Removing buildtools/wafadmin/Utils.pyc Removing buildtools/wafadmin/ansiterm.pyc Removing buildtools/wafsamba/configure_file.pyc Removing buildtools/wafsamba/gccdeps.pyc Removing buildtools/wafsamba/generic_cc.pyc Removing buildtools/wafsamba/hpuxcc.pyc Removing buildtools/wafsamba/irixcc.pyc Removing buildtools/wafsamba/pkgconfig.pyc Removing buildtools/wafsamba/samba3.pyc Removing buildtools/wafsamba/samba_abi.pyc Removing buildtools/wafsamba/samba_autoconf.pyc Removing buildtools/wafsamba/samba_autoproto.pyc Removing buildtools/wafsamba/samba_bundled.pyc Removing buildtools/wafsamba/samba_conftests.pyc Removing buildtools/wafsamba/samba_cross.pyc Removing buildtools/wafsamba/samba_deps.pyc Removing buildtools/wafsamba/samba_dist.pyc Removing buildtools/wafsamba/samba_headers.pyc Removing buildtools/wafsamba/samba_install.pyc Removing buildtools/wafsamba/samba_optimisation.pyc Removing buildtools/wafsamba/samba_patterns.pyc Removing buildtools/wafsamba/samba_pidl.pyc Removing buildtools/wafsamba/samba_python.pyc Removing buildtools/wafsamba/samba_utils.pyc Removing buildtools/wafsamba/samba_version.pyc Removing buildtools/wafsamba/samba_wildcard.pyc Removing buildtools/wafsamba/stale_files.pyc Removing buildtools/wafsamba/symbols.pyc Removing buildtools/wafsamba/tru64cc.pyc Removing buildtools/wafsamba/wafsamba.pyc Removing source3/build/__init__.pyc Removing source3/build/charset.pyc Nicolas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Should I forget sssd ?
Le 01/10/2013 16:44, steve a écrit : Hi It looks as though the ad backend is broken in 1.11.1. At least I can't get it going with a similar sssd.conf: https://lists.fedorahosted.org/pipermail/sssd-devel/2013-September/016892.html I rolled back to 1.10.0 and it's fine. Re: your question. If you can get away without having Linux clients in the domain, then yes, you can forget sssd entirely. HTH and good luck, Steve Ah !!! This makes sense to my life ( https://lists.fedorahosted.org/pipermail/sssd-devel/2013-September/016892.html ) ! I was wondering if I won't go back to sheeps and cows ;-) Will try sssd 1.10.0 ! (Yes Ubuntu host is actually the only Linux 'client' in the domain) Thanks again (posting 48 hours earlier would have save my soul during this time) Nicolas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Should I forget sssd ?
Hi again, Thanks again, Denis, Steve and Rowland for your previous answers about RFC2307 and winbind. Maybe I'm an dreamer but here is that I wanted to achieve : Ubuntu server 12.04.3, samba4 as PDC, several NICS : 1 LAN and 2/3 WANS Use a windows VM (on this server) to control AD through WRAT AD offers me the 'wishdom' of software deployment and GPO, users are can't install anything All standard Linux services (apache, postfix, dovecot, pptp, mysql, webmail, ...) can query AD What is done : I have setup 'folder redirection' in WRAT, so users 'documents' and 'desktop' are avalaible offline and mapped to home/%U on server AD Administrator has a roaming profile Searched a lot and succeed to deploy Office, Acrobat reader, Skype, 7-zip, Firefox to users (windows is another world...) Shares are mounted (depending on AD 'ou' rights) on user's pc Administrator can login via UltraVNC to all workstation What needs to be done: Linux services to auth to AD From what I've read, sssd is the more secure solution to achieve this, but ... Using sssd 1.11.1 : files configuration: 1) sudo cat /etc/sssd/sssd.conf [sssd] services = nss, pam config_file_version = 2 domains = radiodjiido.nc [nss] [pam] [domain/radiodjiido.nc] dyndns_update = false ad_hostname = serveur.radiodjiido.nc ad_server = serveur.radiodjiido.nc ad_domain = radiodjiido.nc ldap_schema = ad id_provider = ad access_provider = simple enumerate = true cache_credentials = true auth_provider = krb5 chpass_provider = krb5 krb5_realm = RADIODJIIDO.NC krb5_server = serveur.radiodjiido.nc krb5_kpasswd = serveur.radiodjiido.nc #next line only lists users with uidNumber/gidNumber entered via ldbedit ldap_id_mapping = false ldap_referrals = false ldap_uri = ldap://serveur.radiodjiido.nc ldap_search_base = dc=radiodjiido,dc=nc ldap_user_object_class = user ldap_user_name = samAccountName ldap_user_uid_number = uidNumber ldap_user_gid_number = gidNumber ldap_user_home_directory = unixHomeDirectory ldap_user_shell = loginShell ldap_group_object_class = group ldap_group_search_base = dc=radiodjiido,dc=nc ldap_group_name = cn ldap_group_member = member ldap_sasl_mech = gssapi #ldap_sasl_authid = serveur$ ldap_sasl_authid = serveur$@RADIODJIIDO.NC krb5_keytab = /etc/krb5.sssd.keytab ldap_krb5_init_creds = true cat /usr/local/samba/etc/smb.conf # Global parameters [global] workgroup = RADIODJIIDO realm = RADIODJIIDO.NC netbios name = SERVEUR server role = active directory domain controller dns forwarder = 192.168.1.1 # for sssd idmap_ldb:use rfc2307 = yes [netlogon] path = /usr/local/samba/var/locks/sysvol/radiodjiido.nc/scripts read only = No [sysvol] path = /usr/local/samba/var/locks/sysvol read only = No [Profiles] path = /media/data/Profiles/ read only = No [partage] comment = partage general path = /media/data/global read only = No [home] comment = dossiers utilisateurs path = /media/data/homes read only = No [journal] comment = journal path = /media/data/journal read only = No [musique] comment = musique path = /media/data/musique read only = No cat /etc/nsswitch.conf # /etc/nsswitch.conf # # Example configuration of GNU Name Service Switch functionality. # If you have the `glibc-doc-reference' and `info' packages installed, try: # `info libc Name Service Switch' for information about this file. passwd: compat sss group: compat sss shadow: compat hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 networks: files protocols: db files services: db files ethers: db files rpc:db files netgroup: nis sss Result with: getent passwd mysql:x:113:124:MySQL Server,,,:/nonexistent:/bin/false nut:x:114:125::/var/lib/nut:/bin/false nico:*:325:100:nico:/: - the user I entered uidNumber/gidNumber is listed, home dir seems / and no shell Result with: getent group rtkit:x:123: mysql:x:124: nut:x:125: - no AD group listed at all 2) If sssd.conf is modified: #ldap_id_mapping = false ldap_schema = rfc2307bis getent passwd and getent group are listing (nearly all) users and groups in AD with the infamous random IDs like : nico-virtual-7$:*:166801125:166800515:NICO-VIRTUAL-7:/: administrator:*:166800500:166800513:Administrator:/: So I'm a bit desesperate with the sssd use... Is an OpenLDAP proxy the best way to make all this working together ? Thanks in advance for your time. Nicolas In case that could help some, here are the steps I've done to install sssd 1.11.1: cd ~ wget https://fedorahosted.org/released/sssd/sssd-1.11.1.tar.gz sudo apt-get install debhelper quilt dh-autoreconf autopoint lsb-release dpkg-dev dnsutils libpopt-dev libdbus-1-dev libkeyutils-dev libkeyutils-dev libldap2-dev libpam-dev libnl-dev libnss3-dev libnspr4-dev libpcre3-dev libselinux1-dev libsasl2-dev libtevent-dev libldb-dev libtalloc
[Samba] Must Samba4 AD be provisionned with rfc2307 to use winbind ?
Hi all, (Trying to connect squid, postfix, dovecot, pptp, etc ... to AD) Samba 4.0.9, as PDC, on Ubuntu 12.04.3 server. Compiled with : ./configure --enable-debug --enable-selftest Domain provision : /usr/local/samba/bin/samba-tool domain provision Despite my reads and tries, I'm unable to list the AD users from Linux. /usr/local/samba/bin/wbinfo -t /usr/local/samba/bin/wbinfo -u /usr/local/samba/bin/wbinfo -g are OK but : getent passwd only lists Linux users. AD works OK and lot of work has been done onto. If the rfc2307 option if required during domain provision, can I launch it without loosing the whole AD configuration ? Thanks in advance for your time. Nicolas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Must Samba4 AD be provisionned with rfc2307 to use winbind ?
Le 27/09/2013 20:36, steve a écrit : On Fri, 2013-09-27 at 19:09 +1100, m...@electronico.nc wrote: Hi all, (Trying to connect squid, postfix, dovecot, pptp, etc ... to AD) Samba 4.0.9, as PDC, on Ubuntu 12.04.3 server. Compiled with : ./configure --enable-debug --enable-selftest Domain provision : /usr/local/samba/bin/samba-tool domain provision Despite my reads and tries, I'm unable to list the AD users from Linux. /usr/local/samba/bin/wbinfo -t /usr/local/samba/bin/wbinfo -u /usr/local/samba/bin/wbinfo -g are OK but : getent passwd only lists Linux users. AD works OK and lot of work has been done onto. If the rfc2307 option if required during domain provision, can I launch it without loosing the whole AD configuration ? Hi No. You don't need to provision with rfc2307 to be able to use it. You simply need to add the rfc2307 attributes to the DN's of the users. e.g. use wbinfo to get the numbers: wbinfo -i steve2 HH3\steve2:*:321:20513::/home/HH3/steve2:/bin/false Now add: uidNumber: 321 gidNumber: 20513 to steve2 An easy way to do that is with ldbedit. If you have a lot of users, use a script and then add the attributes using ldbmodify. I'd recommend using nslcd or sssd so that getent will pull the information from AD. HTH Steve Thanks Denis and Steve for the answers. Without the rfc2307 domain provision, will I have to add manually uidNumber and guiNumber each time a new user is created from Windows Management Console ? Thanks to : http://linuxcostablanca.blogspot.com/2013/04/sssd-build-on-opensuse.html http://wiki.samba.org/index.php/Local_user_management_and_authentication/sssd I have been able to : getent passwd But there were troubles with the Administrator roaming profile and syslog showing : Sep 28 10:59:52 serveur smbd[22769]: === Sep 28 10:59:52 serveur smbd[22769]: [2013/09/28 10:59:52.079802, 0] ../source3/lib/util.c:810(smb_panic_s3) Sep 28 10:59:52 serveur smbd[22769]: PANIC (pid 22769): internal error Sep 28 11:00:09 serveur smbd[22772]: [2013/09/28 11:00:09.610461, 0] ../lib/util/fault.c:72(fault_report) Sep 28 11:00:09 serveur smbd[22772]: === Sep 28 11:00:09 serveur smbd[22772]: [2013/09/28 11:00:09.610698, 0] ../lib/util/fault.c:73(fault_report) Sep 28 11:00:09 serveur smbd[22772]: INTERNAL ERROR: Signal 11 in pid 22772 (4.0.9) Sep 28 11:00:09 serveur smbd[22772]: Please read the Trouble-Shooting section of the Samba HOWTO Sep 28 11:00:09 serveur smbd[22772]: [2013/09/28 11:00:09.610913, 0] ../lib/util/fault.c:75(fault_report) Sep 28 11:00:09 serveur smbd[22772]: === But I have tried previousely to install sssd from repository, then from git ... I'll start over (thanks clonezilla ;-) ) and let you know. Nicolas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] samba 4.0.x : samba_backup wrong path line 54
Hello, (samba 4.0.8 compiled from git source) Just tried the samba_backup from https://wiki.samba.org/index.php/Backup_and_Recovery line 54 mention : tdbbackup $ldb where it should be /usr/local/samba/bin/tdbbackup $ldb Thanks for this nice samba version ! electronico -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Problems configuring Samba PDC + FDS error No privileges assigned to SID
I am having trouble getting samba-3.0.24-11 setup as a PDC with an ldap backend using FDS on a FC6 test box. I have installed the 1.0.4-1 version of the directory server accepting the defaults except for the server name with out any problems. I can query the directory server and it is populated with the proper objects. I am using the instructions in the Howto:Samba documentation on the FDS Wiki site http://directory.fedoraproject.org/wiki/Howto:Samba. I am able to perform all of the tasks without any problems until I get to the part of the install that has me run the following command: net groupmap list [2008/01/04 14:07:31, 0] passdb/pdb_ldap.c:ldapsam_setsamgrent(3051) ldapsam_setsamgrent: LDAP search failed: No such object [2008/01/04 14:07:31, 0] passdb/pdb_ldap.c:ldapsam_enum_group_mapping(3123) ldapsam_enum_group_mapping: Unable to open passdb I can query the directory successfully with the following output: ldapsearch -b dc=test,dc=com -x 'Domain*' # extended LDIF # # LDAPv3 # base dc=test,dc=com with scope subtree # filter: (objectclass=*) # requesting: Domain* # # test.com dn: dc=test,dc=com # Directory Administrators, test.com dn: cn=Directory Administrators, dc=test,dc=com # Groups, test.com dn: ou=Groups, dc=test,dc=com # People, test.com dn: ou=People, dc=test,dc=com # Special Users, test.com dn: ou=Special Users,dc=test,dc=com # Accounting Managers, groups, test.com dn: cn=Accounting Managers,ou=groups,dc=test,dc=com # HR Managers, groups, test.com dn: cn=HR Managers,ou=groups,dc=test,dc=com # QA Managers, groups, test.com dn: cn=QA Managers,ou=groups,dc=test,dc=com # PD Managers, groups, test.com dn: cn=PD Managers,ou=groups,dc=test,dc=com # DOMAIN, test.com dn: sambaDomainName=DOMAIN,dc=test,dc=com # Domain Admins, Groups, test.com dn: cn=Domain Admins,ou=Groups,dc=test,dc=com # Domain Users, Groups, test.com dn: cn=Domain Users,ou=Groups,dc=test,dc=com # Domain Guests, Groups, test.com dn: cn=Domain Guests,ou=Groups,dc=test,dc=com # Domain Computers, Groups, test.com dn: cn=Domain Computers,ou=Groups,dc=test,dc=com # IS, Groups, test.com dn: cn=IS,ou=Groups,dc=test,dc=com # search result search: 2 result: 0 Success # numResponses: 16 # numEntries: 15 If I start samba I get the No privileges assigned to SID message I have attached a copy of the log below: [2008/01/04 14:52:07, 0] smbd/server.c:main(847) smbd version 3.0.24-11.fc6 started. Copyright Andrew Tridgell and the Samba Team 1992-2006 [2008/01/04 14:52:07, 2] param/loadparm.c:do_section(3713) Processing section [homes] [2008/01/04 14:52:07, 2] param/loadparm.c:do_section(3713) Processing section [is] [2008/01/04 14:52:07, 2] param/loadparm.c:do_section(3713) Processing section [netlogon] [2008/01/04 14:52:07, 2] param/loadparm.c:do_section(3713) Processing section [profiles] [2008/01/04 14:52:07, 2] param/loadparm.c:do_section(3713) Processing section [public] [2008/01/04 14:52:07, 3] param/loadparm.c:lp_add_ipc(2632) adding IPC service [2008/01/04 14:52:07, 3] printing/pcap.c:pcap_cache_reload(117) reloading printcap cache [2008/01/04 14:52:07, 3] printing/pcap.c:pcap_cache_reload(223) reload status: ok [2008/01/04 14:52:07, 3] printing/pcap.c:pcap_cache_reload(117) reloading printcap cache [2008/01/04 14:52:07, 3] printing/pcap.c:pcap_cache_reload(223) reload status: ok [2008/01/04 14:52:07, 2] lib/interface.c:add_interface(81) added interface ip=10.10.1.1 bcast=10.10.255.255 nmask=255.255.0.0 [2008/01/04 14:52:07, 3] smbd/server.c:main(877) loaded services [2008/01/04 14:52:07, 3] smbd/server.c:main(892) Becoming a daemon. [2008/01/04 14:52:07, 2] lib/tallocmsg.c:register_msg_pool_usage(61) Registered MSG_REQ_POOL_USAGE [2008/01/04 14:52:07, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71) Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED [2008/01/04 14:52:07, 2] lib/smbldap_util.c:smbldap_search_domain_info(219) smbldap_search_domain_info: Searching for:[((objectClass=sambaDomain)(sambaDomainName=DOMAIN))] [2008/01/04 14:52:07, 2] lib/smbldap.c:smbldap_open_connection(788) smbldap_open_connection: connection opened [2008/01/04 14:52:07, 3] lib/smbldap.c:smbldap_connect_system(992) ldap_connect_system: succesful connection to the LDAP server [2008/01/04 14:52:07, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2008/01/04 14:52:07, 3] smbd/uid.c:push_conn_ctx(353) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2008/01/04 14:52:07, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/01/04 14:52:07, 3] smbd/sec_ctx.c:push_sec_ctx(208) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2008/01/04 14:52:07, 3] smbd/uid.c:push_conn_ctx(353) push_conn_ctx(0) : conn_ctx_stack_ndx = 1 [2008/01/04 14:52:07, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2 [2008/01/04 14:52:07, 3] smbd/sec_ctx.c:pop_sec_ctx(339) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1 [2008/01/04 14:52:07, 3] smbd
[Samba] sloowww data transfers
Greetings, Ive been scratching my head at the slow network performance im having with samba 3.0.9 (running debian unstable) set up as a domain for a couple of winders 2k pc's , used for gaming when the nieces and nephews are over it holds the master image of the games. Unfortunately data transfers vary from 1MB to 2MBs from samba to winders whereas winders to winders does several times as fast It does not apear to be the hub or the network cards as the following indicates A 110MB file xferred from samba linux - linux takes about 77s doing the same over NFS takes 11s. I also did this with a 740MB iso 88s over nfs ~ 440 over smbfs ?? I get similar transfer rates when using the samba server on my pc. I have tested this also with a base smb.conf consisting only of - server name - workgroup name - share name - share path no noticeable difference the running kernel is a 2.6.9 cko2 network cards initially a 8139 based and also tried a 3com i build my own kernel - are there some options there that could cripple samba ?? Im using one of the winders pc's to maintain the games image as it takes so much longer moving around the Gigs using samba Any ideas please also cc replies to service at orcon dot net dot nz __ Do you Yahoo!? Send a seasonal email greeting and help others. Do good. http://celebrity.mail.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] (Repost to list) Copying large files xp pro -gt;Samba very slow
On Mon, 24 Mar 2003, James Richardson wrote: If there were to be a problem at or above the SMB layer then why are we not seeing lots of other complaints in this area? I have transferred over 30GB of data over 100BaseT at av average of over 10MBytes/sec with no burstiness at all. I have transferred this same data over 1000BaseT at just under 70Mbytes/sec average rate. You got over 10MB/sec using Samba on a 100BT network?! I find this rather hard to believe. I would love to hear more. After extensive tests, the best I've been able to do over 100BT (switched) is 7.5MB/sec using Samba. I've gotten 11MB/sec using FTP though... -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Am I getting the best performance?
On Fri, 14 Mar 2003, aragonx wrote: /sbin/hdparm -Tt /dev/hdd /dev/hdd: Timing buffer-cache reads: 128 MB in 0.95 seconds =134.74 MB/sec Timing buffered disk reads: 64 MB in 2.43 seconds = 26.34 MB/sec This appears to be measuring cache performance - not disk I/O performance. Check the drive specifications. Probably more like 35MB/sec sustainable write rate. From what I understand the first line is cache performance and the second line is sustained disk performance. /etc/samba/smb.conf socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192 Did you check the impact of increasinf the SO_RECVBUF and SO_SNDBUF to 128KByte? No I have not. I will try it though. I have 512MB of RAM in my server so I'm not too worried about memory. I'm running Redhat 8.0 using a custom built 2.4.20 kernel. The drive referenced above is a Seagate 7200rpm UDMA-33 IDE hard drive. I did a 2GB copy from Linux to a Windows98SE machine using Samba. I got 5.85MB/sec. I did the same copy on a Windows XP machine and got 6.99MB/sec. Then I copied from hdd to hdc and got 6.94MB/sec. (same channel) Then I copied from hdd to hdb and got 9.30MB/sec. (different channel) It seems to me that I should be able to get close to the 9.30MB/sec when transfering over the network. Still 9.3MB/sec is no where near the 26MB/sec hdparm is reporting... I'm on a 100Mb switch and I'm using 3Com 905TX NICs in both the workstation and the server. An 100MB/s == 11 megabytes/sec at peak I/O and no network contention. Copared with that 9.3 megabytes/sec is VERY good! Yes but the 9.3MB/sec was from drive to drive not over the network. I guess the best my network can put out is 12MB/sec. I was hoping to get around 10MB/sec with Samba. Is this unreasonable??? No - not reasonable. You have IP stack, a TCP stack, then buffering from the kernel to samba's smbd with is user space, then I/O back to the kernel and ultimately to the Disk subsystem. Lot's of overhead in other words. You did well over 100Mbit ethernet! Humm. I can get 10MB/sec using FTP. Does Samba have more overhead? I was told it should perform on par with FTP. Is this not true? What file system? ext2, ext3, reiserfs, xfs, jfs Even that makes a hugh difference. All my server file systems are ext3. Thank you for your reply. -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Am I getting the best performance?
Much more overhead! NO questions! What file system? ext2, ext3, reiserfs, xfs, jfs Even that makes a hugh difference. All my server file systems are ext3. Good results then. Try ext2fs. I'am running two 1+ Terrabyte servers using samba, but I changed from ext3 to SGI's XFS - much faster with alot of small files and also much faster when multiple users are accessing alot of files ( even a dir listing with 2000 files went several times faster ) So for real performance: - buy 3ware ide raid controllers (10+ points for the 8500 serie!) - use XFS instead of ext3 (no battles please) - when having 400+ users think about troughput management(ratelimit/ip) - attach only *one* disk per ide port if you concat/stripe - copper gigabit is getting cheap now... My 2$, Leroy Now that sounds like a reasonable setup. The big expense will be the 8500 I guess. What do you think about the RiserFS? -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba