Re: [Samba] mount.cifs ms dfs and failover
On Wed, 18 Jul 2012 17:31:28 +1000 Sam Abed wrote: > > Hello, > I can't find any reference on if linux understands multiple targets when it > mounts a MS dfs share, specifically if it can failover. > I can mount a MS dfs share fine, however if the server "picked" is shutdow > the mount hangs. I tried it on a recent ubuntu to discount the "enterprise" > lag. > > am I missing something or is it not working > (cc'ing linux-cifs) No, there's currently no support for failover with Linux CIFS DFS code. Once it picks the server, it stays with it. -- Jeff Layton -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] How to migrate Active Directory from one Samba4 server to another
Original-Nachricht > Datum: Thu, 16 Aug 2012 13:29:42 +0200 > Von: x-dimens...@gmx.net > An: samba@lists.samba.org > Betreff: Re: [Samba] How to migrate Active Directory from one Samba4 server > to another > > Original-Nachricht > > > Datum: Mon, 13 Aug 2012 17:47:35 +1000 > > > Von: Andrew Bartlett > > > An: x-dimens...@gmx.net > > > CC: samba@lists.samba.org > > > Betreff: Re: [Samba] How to migrate Active Directory from one Samba4 > > server to another > > > > > On Sat, 2012-08-11 at 22:03 +0200, x-dimens...@gmx.net wrote: > > > > Hello! > > > > > > > > We are using a Samba4.0.0alpha19 (Resara 1.1.2) based domain > > controller > > > in a small production environment and because the Resara development > has > > > ended we want to switch to a plain Samba4 beta based Ubuntu > > 12.04/Zentyal > > > Server. > > > > I have installed and configured the new server with the same > > domain-name > > > and the same hostname like the old server. > > > > How can i export the Active Directory from the old server and import > > it > > > to the new Samba4 server? > > > > > > Something like this (unstested): > > > > > > Use a different hostname, then run 'samba-tool domain join' to join it > > > to the first domain. Then you can use the > > > source4/scripting/bin/renamedc script to rename it back to the name of > > > the first DC, after running 'samba-tool domain demote' on it. > > > > > > You may need to seize FSMO roles from one DC to the other with > > > 'samba-tool domain fsmo'. > > > > > > > Do i need to rejoin the clients to the domain, after this? > > > > > > No. > > > > > > Additional complications may include DNS configuration. You may need > to > > > use --dns-backend=none on the join command. > > > > > > This is just a series of hints to get you started. Hopefully you can > > > work it out from here. > > > > > > Andrew Bartlett > > > > > > -- > > > Andrew Bartlett > > http://samba.org/~abartlet/ > > > Authentication Developer, Samba Team http://samba.org > > > > > > > > Thank you Andrew, this was very helpful! > > Joining the new Samba4 Server to the old one replicates the Active > > Directory without a problem! After shutting down the old server, > renaming the new > > server and restore smb.conf and krb5.conf i can access the new server > with > > RSAT now. :-) > > > > What does not work is the dns-backend! :-( > > After the AD replication the DNS snap-in from RSAT does not work > anymore. > > The join option "--dns-backend=none" is not available here > > (Samba4.0.0beta2 Zentyal package) > > Is there another way to get DNS working after the replication from the > old > > server? > > > > I have also another question: What does the "renamedc" script do? > > When i start it, it always tells me that there are opened transactions > and > > so it can't run. > > Because of this i simple change the hostname in /etc/hostname/ and > > /etc/hosts and run hostname -F /etc/hostname. After a restart all looks > good so > > far. (but i haven't tested it very much) > > > > THX > > -- > > To unsubscribe from this list go to the following URL and read the > > instructions: https://lists.samba.org/mailman/options/samba > > I've tried now also Samba4.0.0beta6 and when i join this server with the > --dns-backend=NONE option to the old samba4alpha PDC i have no working DNS > service on the new Samba server. Bind9 won't start because it can't find > sam.ldb. This file is created on provisioning the Samba server the first time, > but while our old Resara Server uses plain Bind without the > Samba-LDAP-backend sam.ldb is not created when joining the new server to the > existing > domain. > Is there a way setup the DNS-part after the replication, so that it uses > the internal LDAP of Samba4? I don't need to get the DNS entries of the old > server to the new server, but i need a working DNS-Samba/LDAP Backend to > create Zones and entries with RSAT. > > Thx for help! > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba I'm now a big step ahead and i get the BIND_DLZ backend working. Here is what i've done: 1. Join the new Samba4.0.0beta8 server "PDC2" to the old Samba4.0.0alpha server "PDC" with: samba-tool domain join mydomain.lan DC -Uadministrator --realm=mydomain.lan --dns-backend=none 2. Copy the file based Bind9 configuration from /etc/bind of "PDC" to "PDC2" 3. Disconnect "PDC" from the network 4. run samba_upgradedns on "PDC2" to get BIND_DLZ to work 5. Configure Bind9 to use Samba4/BIND_DLZ What works: A. I can browse with Microsoft RSAT through the Active Directory and can edit or create users and so on B. I can create and modify DNS-entries from the DNS-Tool of MS RSAT C. I can join a computer to "PDC2" when logging on with "administrator@mydomain" What does not work: A. I can't join a computer to "PDC2"
Re: [Samba] Windows boxes cannot find the file server [SOLVED]
On 03/09/12 11:56, Rowland Penny wrote: On 03/09/12 10:37, steve wrote: On 03/09/12 10:46, Rowland Penny wrote: On 03/09/12 08:41, steve wrote: Hi Steve, I cheat , my ddns server is running on my Samba4 server ;-) Rowland Hi Rowland Well, that's better than us. I use our (buy-2-get-one-free-at-the-local-supermarket brand) ADSL router. Yeah, I know. It's just plain lazy. Cheers, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Windows boxes cannot find the file server [SOLVED]
On 03/09/12 10:37, steve wrote: On 03/09/12 10:46, Rowland Penny wrote: On 03/09/12 08:41, steve wrote: How do the clients get their ipaddresses? are they fixed or supplied by DHCP? what nameserver are they pointed at? does this nameserver know about hh32? Hi Rowland. Hi everyone Your reply gave me the clue I needed. When the fileserver joined the domain I got a DNS update error that the update for hh32 failed. I made it a fixed IP and added an A record hh32.hh3.site and the CNAME hh32 to the DC using samba-tool. Now it works although it worries me that net ads join on a Linux box does not update DNS correctly. For the record (jejeje) I may add that adding Linux clients that are DHCP (i.e. not crucial file servers) also get the same failed DNS update message upon joining, but thereafter work fine. Cheers, Steve Hi Steve, I cheat , my ddns server is running on my Samba4 server ;-) Rowland -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Windows boxes cannot find the file server [SOLVED]
On 03/09/12 10:46, Rowland Penny wrote: On 03/09/12 08:41, steve wrote: How do the clients get their ipaddresses? are they fixed or supplied by DHCP? what nameserver are they pointed at? does this nameserver know about hh32? Hi Rowland. Hi everyone Your reply gave me the clue I needed. When the fileserver joined the domain I got a DNS update error that the update for hh32 failed. I made it a fixed IP and added an A record hh32.hh3.site and the CNAME hh32 to the DC using samba-tool. Now it works although it worries me that net ads join on a Linux box does not update DNS correctly. For the record (jejeje) I may add that adding Linux clients that are DHCP (i.e. not crucial file servers) also get the same failed DNS update message upon joining, but thereafter work fine. Cheers, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] High load while printing a Word document
On 27 August 2012 15:52, Alexander Busam wrote: [...] > I've attached the word document, log.smbd and smb.conf as zip-file. [...] The mailing list strips attachments normally. Try including what you can in the message itself (e.g. the config). Maybe you can provide a link to download the document? -- Michael Wood -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Windows boxes cannot find the file server
On 03/09/12 08:41, steve wrote: Hi I have a Samba4 AD running samba and a Samba3 machine joined to the domain as a file server. I have smbd and winbind running on the samba3 box. Samba4: hh30.hh3.site Samba3: hh32.hh3.site I can browse the shares (netlogon and sysvol) on the S4 machine by typing \\hh30 into explorer but if I type \\hh32 I get: Windows cannot find '\\hh32'. Check the spelling. . .etc. When I start nmbd on the server I get: The security database on the server does not have a computer account for this workstation trust relationship. Here is the config on the S3 fie server: [global] preferred master = Yes workgroup = ALTEA security = ADS winbind enum users = Yes winbind enum groups = Yes idmap config *:backend = ad idmap config *:range = 2500-3000 idmap config ALTEA:backend = ad idmap config ALTEA:range = 2-4000 idmap config ALTEA:schema_mode = rfc2307 winbind nss info = rfc2307 winbind expand groups = 2 winbind nested groups = yes winbind use default domain = Yes usershare allow guests = No realm = HH3.SITE winbind refresh tickets = yes [profiles] path = /home2/profiles read only = No [home] path = /home2/home read only = No [staff] path = /home2/staff read only = No Question: How do I get the windows machines to look for the fileserver as well as the DC? Thanks, Steve Hi Steve, This, to me, seems to be a network resolution problem. I take it that hh32.hh3.site has a fixed ip and 'dig hh32.hh3.site' run on the nameserver gives the correct ip. How do the clients get their ipaddresses? are they fixed or supplied by DHCP? what nameserver are they pointed at? does this nameserver know about hh32? What does 'ipconfig /all' (run in a dos box on the client) give? Rowland -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] suggestion for filesystem or general performance optimization
Hi, recently I noticed, that we have some performance issues regarding our central samba fileserver. Red Hat EL 5.8, samba3x-3.5.10-0.109. Doing a rsync, scp or accessing a share from a client and copy large files (e.g. 3 GB ISO), I do get a read / write average about 60 to 90 MB/sec. So LAN and general hardware can work at max. lan speed. But copying or syncing small files, e.g. user profiles etc. or doing a backup of the smaller files lets drop the average performance to 10 MB/Sec or less :( We use ext3 (noatime), the storage is connected by iscsi, it is a sun storage with sas harddisk. All suggestions so far: migrate to ext4 and good luck :) I read a couple of filesystem comparisons and ext4 looks like the best option, but what else could I do or expect? Locking? Limits ... blocksizes, more RAM (4GB installed), we have about 600GB of user data. so not really much... Thanks for any suggestion or hint . Regards . Götz -- Götz Reinicke IT-Koordinator Filmakademie Baden-Württemberg GmbH -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] Windows boxes cannot find the file server
Hi I have a Samba4 AD running samba and a Samba3 machine joined to the domain as a file server. I have smbd and winbind running on the samba3 box. Samba4: hh30.hh3.site Samba3: hh32.hh3.site I can browse the shares (netlogon and sysvol) on the S4 machine by typing \\hh30 into explorer but if I type \\hh32 I get: Windows cannot find '\\hh32'. Check the spelling. . .etc. When I start nmbd on the server I get: The security database on the server does not have a computer account for this workstation trust relationship. Here is the config on the S3 fie server: [global] preferred master = Yes workgroup = ALTEA security = ADS winbind enum users = Yes winbind enum groups = Yes idmap config *:backend = ad idmap config *:range = 2500-3000 idmap config ALTEA:backend = ad idmap config ALTEA:range = 2-4000 idmap config ALTEA:schema_mode = rfc2307 winbind nss info = rfc2307 winbind expand groups = 2 winbind nested groups = yes winbind use default domain = Yes usershare allow guests = No realm = HH3.SITE winbind refresh tickets = yes [profiles] path = /home2/profiles read only = No [home] path = /home2/home read only = No [staff] path = /home2/staff read only = No Question: How do I get the windows machines to look for the fileserver as well as the DC? Thanks, Steve -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] Does samba-3.6.7's libsmbclient supports SMB2 protocol?
On Sun, Sep 02, 2012 at 11:11:17PM -0700, naga_kishore_komm...@yahoo.com wrote: > Thanks a lot Volker, > Does source4 directory has got SMB2 support in libsmbclient library? Well, there is some support for SMB2 calls in both source3 and source4. But neither directly support SMB2 out of the box with the interface that is published as libsmbclient.h. With best regards, Volker Lendecke -- SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: +49-551-37-0, fax: +49-551-37-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de, mailto:kont...@sernet.de -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba