[Samba] Performance is limited by design on larger servers?

2013-05-07 Thread Daniel Hedblom
I have a fairly large server with 16 CPU, 8 Gb ram and just four HDD's.
While the disks are pretty untouched most of the time, three samba
processes are working for dear life. Sometimes going up to 100. These
processes are running LDAP, SMB and Kerberos where LDAP seem to be the one
mostly utilized.

If i could spread the load onto more processes this server would be able to
handle a lot more requests. Is there any way to do this?

//danileh
-- 
With best regards,
Daniel Hedblom
Sysadmin
Department Barn och Skolförvaltningen
Municipality of Sollefteå
Phone: +46 (0) 620-68 22 02
Mobile: + 46 (0) 70 383 72 44
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Any way to start over with a fresh DNS partition?

2013-03-22 Thread Daniel Hedblom
I have an old installation that for the moment run BIND flatfile for DNS
but i want to use the Internal DNS. Problem is that the internal DNS is
botched beyond repair and i want to start over.

How do i remove the DNS partitions and start over?

-- 
With best regards,
Daniel Hedblom
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Samba4 smb.conf parse shares diffently depending on where a section is located.

2013-03-15 Thread Daniel Hedblom
I guess this works as intended but i wanted to put it here anyhow for
future reference for others.

If a share definition is located above [Global] it gets totally different
attributes. We had enormous problems with rights on one share and no matter
what we did to acl, xattr and Windows permissions it just would not work
correctly. A couple of things added to a definition above [Global] is:

create mask = 0744
directory mask = 0755
map archive = Yes
map readonly = yes
store dos attributes = No
vfs objects =

Putting the share below the [Global] section solved everything anyhow.

Daniel Hedblom
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Problem setting rights on Samba share.

2013-03-15 Thread Daniel Hedblom
The problem here was the [share] definition was located above the [global]
section. Testparm showed the additional things that got added that made the
share rights fail.


2013/3/10 Daniel Hedblom daniel.hedb...@solleftea.se

 I have some difficulties setting rights from Windows on a Samba share.
 Tried changing posix rights to no avail. The Admin rights has disappeared
 and i need to reset them at the share level. How do i do that when it is
 not working from Windows. I do not understand samba-tool ntacl and how it
 is supposed to be used.

 So, how do one set rights in samba 4 when you lost your ability to manage
 them from a Windows computer?

 Cheers

 //danielh

 --
 With best regards,
 Daniel Hedblom
 Sysadmin
 Department Barn och Skolförvaltningen
 Municipality of Sollefteå
 Phone: +46 (0) 620-68 22 02
 Mobile: + 46 (0) 70 383 72 44







-- 
With best regards,
Daniel Hedblom
Sysadmin
Department Barn och Skolförvaltningen
Municipality of Sollefteå
Phone: +46 (0) 620-68 22 02
Mobile: + 46 (0) 70 383 72 44
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Problem setting rights on Samba share.

2013-03-10 Thread Daniel Hedblom
I have some difficulties setting rights from Windows on a Samba share.
Tried changing posix rights to no avail. The Admin rights has disappeared
and i need to reset them at the share level. How do i do that when it is
not working from Windows. I do not understand samba-tool ntacl and how it
is supposed to be used.

So, how do one set rights in samba 4 when you lost your ability to manage
them from a Windows computer?

Cheers

//danielh

-- 
With best regards,
Daniel Hedblom
Sysadmin
Department Barn och Skolförvaltningen
Municipality of Sollefteå
Phone: +46 (0) 620-68 22 02
Mobile: + 46 (0) 70 383 72 44
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Problem joining Samba 4 to an older Samba 4 alpha 17

2013-01-18 Thread Daniel Hedblom
Hi there,

Im trying to join a samba 4.0.1 server to an older samba 4 alpha 17 server.
Whatever i do the join is interrupted but i dont know what goes wrong. Dns
is double checked and correct as is most other stuff. How can i get a
better view of what is happening than this? Can it be the source domain
that contains erroneous objects?

My goal is to move the old server to a new one, maybe there are a better
way of doing this? Suggestions?

Error joining to domain:
Schema-DN[CN=Schema,CN=Configuration,DC=sesam,DC=lan] objects[402/1550]
linked_values[0/0]
 Schema-DN[CN=Schema,CN=Configuration,DC=sesam,DC=lan] objects[804/1550]
linked_values[0/0]
 Schema-DN[CN=Schema,CN=Configuration,DC=sesam,DC=lan] objects[1206/1550]
linked_values[0/0]
 Schema-DN[CN=Schema,CN=Configuration,DC=sesam,DC=lan] objects[1550/1550]
linked_values[0/0]
 Analyze and apply schema objects
 Partition[CN=Configuration,DC=sesam,DC=lan] objects[402/1674]
linked_values[0/0]
 Partition[CN=Configuration,DC=sesam,DC=lan] objects[804/1674]
linked_values[0/0]
 Partition[CN=Configuration,DC=sesam,DC=lan] objects[1206/1674]
linked_values[0/0]
 Partition[CN=Configuration,DC=sesam,DC=lan] objects[1608/1674]
linked_values[0/0]
 Partition[CN=Configuration,DC=sesam,DC=lan] objects[1674/1674]
linked_values[94/0]
 Partition[DC=sesam,DC=lan] objects[100/100] linked_values[79/0]
 Partition[DC=sesam,DC=lan] objects[502/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[904/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[1306/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[1708/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[2110/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[2512/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[2914/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[3316/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[3718/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[4120/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[4522/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[4924/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[5326/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[5728/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[6130/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[6532/6594] linked_values[0/0]
 Partition[DC=sesam,DC=lan] objects[6694/6594] linked_values[1338/0]
 Partition[DC=sesam,DC=lan] objects[6694/6594] linked_values[1500/0]
 Partition[DC=sesam,DC=lan] objects[6694/6594] linked_values[1500/0]
 Partition[DC=sesam,DC=lan] objects[6694/6594] linked_values[1500/0]
 Partition[DC=sesam,DC=lan] objects[6694/6594] linked_values[1500/0]
 Partition[DC=sesam,DC=lan] objects[6694/6594] linked_values[1500/0]
 Partition[DC=sesam,DC=lan] objects[6694/6594] linked_values[1500/0]
 Partition[DC=sesam,DC=lan] objects[6694/6594] linked_values[811/0]
 ERROR(runtime): uncaught exception - (-1073741807, 'NT_STATUS_END_OF_FILE')
   File /usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py, line
175, in _run
 return self.run(*args, **kwargs)
   File /usr/lib/python2.7/dist-packages/samba/netcmd/domain.py, line
552, in run
 machinepass=machinepass, use_ntvfs=use_ntvfs, dns_backend=dns_backend)
   File /usr/lib/python2.7/dist-packages/samba/join.py, line 1104, in
join_DC
 ctx.do_join()
   File /usr/lib/python2.7/dist-packages/samba/join.py, line 1014, in
do_join
 ctx.join_finalise()
   File /usr/lib/python2.7/dist-packages/samba/join.py, line 812, in
join_finalise
 ctx.send_DsReplicaUpdateRefs(nc)
   File /usr/lib/python2.7/dist-packages/samba/join.py, line 797, in
send_DsReplicaUpdateRefs
 ctx.drsuapi.DsReplicaUpdateRefs(ctx.drsuapi_handle, 1, r)

//danileh
-- 
With best regards,
Daniel Hedblom
Sysadmin
Phone: +46 (0) 620-68 22 02
Mobile: + 46 (0) 70 383 72 44
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Problem joining Samba 4 to an older Samba 4 alpha 17

2013-01-18 Thread Daniel Hedblom
2013/1/18 Andrew Bartlett abart...@samba.org

 On Fri, 2013-01-18 at 10:11 +0100, Daniel Hedblom wrote:
  Hi there,
 
  Im trying to join a samba 4.0.1 server to an older samba 4 alpha 17
 server.
  Whatever i do the join is interrupted but i dont know what goes wrong.
 Dns
  is double checked and correct as is most other stuff. How can i get a
  better view of what is happening than this? Can it be the source domain
  that contains erroneous objects?
 
  My goal is to move the old server to a new one, maybe there are a better
  way of doing this? Suggestions?

 Honestly, upgrading in place is the best way to do this.  Backup the old
 DC, upgrade in place, and start the 4.0.1 release.  The role transfer
 stuff isn't as reliable as we would like, whereas in-place is.

 Thanks for answering so fast.

Im trying to move to a new hardware at the same time, and the server is not
easily upgraded as its an Resara Server with their own packages of Samba4.
Not so sure i would be successfull if i upgrade. I would very much prefer
if i could move the machine and user accounts somehow without doing nasty
stuff to the original server.

If i upgrade in place will a subsequent join of another DC be easier then?




 Andrew Bartlett

 --
 Andrew Bartletthttp://samba.org/~abartlet/
 Authentication Developer, Samba Team   http://samba.org





//danielh
-- 
With best regards,
Daniel Hedblom
Sysadmin
Phone: +46 (0) 620-68 22 02
Mobile: + 46 (0) 70 383 72 44
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] See logged in users or workstations?

2012-03-09 Thread Daniel Hedblom
Hello,

Run a large network on Samba4 and so far, working great. What i do miss is
a way to see how many computers or users are logged into the servers.

So, is there any way to get a list or number of logged on
users/workstations on Samba4 running on Linux?

Any help is greatly appreciated!

//danielh

-- 
With best regards,
Daniel Hedblom
Sysadmin
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Logging in to a Samba 3.5.6 domain from Windows 7 takes more than 2 minutes.

2011-12-20 Thread Daniel Hedblom
Hi, are about to roll out Samba to 2600 users and 1500+ machines and have a
slight problem.

Server: Samba 3.4.9 running on ubuntu 10.04
Client: Windows 7, 32 and 64 bit on various hardware

The problem is that logging in takes time and much of it seems to be the
Windows 7 client just waiting. While 2 minutes may sound pretty ok this is
without any roaming profiles or GPO applied.

The logs shows nothing interesting ,on Windows i see error 6005 and 6006
but thats just a standard logging when things take a long time, can be
anything. On a wireshark trace nothing in perticulat comes up before the
long timeouts. Anyone else who has seen this problem after applying the
various remedies on this mailing list and from other places on the internet?

Thankful for any input.
//danielh

-- 
With best regards,
Daniel Hedblom
Sysadmin
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba