Re: [Samba] User's home folders

2012-05-02 Thread Daniel Müller
If you have samba/ldap running and the users home directories are listed in
ldap.
The homes should be mounted on logon.
Other way you have [homes] and [user_data] described in your smb.conf
and [netlogon]. In netlogon there should be a batch-file to mount your
shares at logon.
Have a look: http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/

Good Luck
Daniel

---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---
-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
Auftrag von zingalo
Gesendet: Mittwoch, 2. Mai 2012 17:33
An: samba@lists.samba.org
Betreff: Re: [Samba] User's home folders

Thanks!
i have a second question. sorry if i didn't write before.
My server has samba, smbldap-tools and ldap installed.
On the server i have a public directory /user_data with some documents
available to everyone of domain and the directory i told you "/usersHomes"
where i'll make every directory for every user. (ex: 
/usersHomes/username). /user_data doesn't need authentication but a user can
enter in his home directory only.

I don't understand how these directory will be mount from the clients after
the user login.
What are the possibility?
- insert in /etc/fstab two line to mount the /user_data and /usersHomes?
- or autofs?

Thanks again


On 05/02/2012 05:02 PM, Aaron E. wrote:
> No Problem You'll just need the proper filesystem iee ext3, ext4 
> on the partition your home folders will be on..
>
> On 05/02/2012 10:52 AM, zingalo wrote:
>> Hi,
>>
>> i have a debian server with 2 hd, sda and sdb.
>> Debian is installed in sda1.
>> I'll create an home folder for every user. He will login into this 
>> from the clients. Could be a problem creating and using on sdb where 
>> there is not the operating system?
>>
>> Thanks
>
>

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

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


Re: [Samba] User's home folders

2012-05-02 Thread Helmut Hullen
Hallo, zingalo/Stefano,

Du meintest am 02.05.12:

> I have a computer room with 30 machine Ubuntu and about 200
> differents users.
> So user_1 will logon on client_1 and he will work on
> /usersHomes/user_1 directory.
> Then, the user_2 will logon on the same client and he will work on
> /usersHomes/user_2 directory.

Perhaps you should mount the home directories on the server via cifs.

I use the following script lines (as part of a longer script):

  
Login="rw,file_mode=0644,dir_mode=0755,username=$User,password=$Passwort,noserverino"
  mount -t cifs  -o $Login //$Rechner/$1 /mnt/$Rechner/$Verz

By the way (and as mentioned some days ago): you don't need something  
like "freeradius" for this job.

Viele Gruesse!
Helmut
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Win7 and samba 3.5.8 mount issue

2012-05-02 Thread Learner Study
Hello,

Setup:
Win7 PC as client
Linux as server running samba 3.5.8

When I try to map the share on Win7 PC, I do see the icon for the
share but when I double-click on it, I get error message saying

Y:\ is not accessible
The specified network name is no longer available.

Following is snip from wireshark...
Win7_PC --> Linux: Session Setup AndX Request, NTLMSSP_NEGOTIATE
Linux -> Win7 : Session Setup Andx Response: NTLMSS_CHALLENGE, Error
STATUS_MORE_PROCESSING _REQUIRED
Win7_PC --> Linux: Session Setup AndX Request: User: Win7_PC\test
Linux -> Win7 : Session Setup Andx Response:
Win7_PC --> Linux: Tree Connect AndX Request, Path: \\2.2.2.1\RAID
Linux -> Win7_PC: Tree Connect AndX Response
Win7_PC --> Linux: NT Create AndX Request, PAth: \


I can ping the PC - TCP connectivity looks OK.

Could someone please advisewhat could be going wrong.


Thanks in advance,

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


Re: [Samba] User's home folders

2012-05-02 Thread zingalo

On 05/02/2012 08:42 PM, Tom Noonan II wrote:

- insert in /etc/fstab two line to mount the /user_data and /usersHomes?


This is the method I prefer.  Simply mount the disks on boot as you do with any
other filesystem.  If I'm understanding the question properly, samba and logins
don't even come into play.  This is just an issue of preparing the filesystems
on boot.

Unless these disks are some form of removable media, I don't see any reason to
use autofs here.

I have a computer room with 30 machine Ubuntu and about 200 differents 
users.
So user_1 will logon on client_1 and he will work on /usersHomes/user_1 
directory.
Then, the user_2 will logon on the same client and he will work on 
/usersHomes/user_2 directory.
I configured pam on my laptop and i can login using the credentials of 
some users of the ldap tree but it doesn't recognize and it doesn't 
mount neither the home directory nor the public directory.
But logging with the same users, locally on the server, it recognizes 
and it use the home.
I miss the configuration on the client to mount the samba share and home 
directories.


Next thing i'll want will be that a client windows can authenticate 
against freeradius-ldap on the lan and can browse the samba share and 
his home also.


step by step!

What do you suggest?
thanks for your interest
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Login Attempt Resets Password in smbpasswd

2012-05-02 Thread Andrew Martin
Hello, 


I am running Samba 3.4.7 on Ubuntu 10.04 amd64. Due to legacy support, I am 
using a smbpasswd file (chmod 600) instead of the newer tdbsam database. It is 
also worth noting that this server also has LDAP authentication enabled (for 
SSH access). Clients access Samba from both Windows 7 and Windows XP. The 
smb.conf file is as follows: 

[global] 
workgroup = HOME 
printcap name = /etc/printcap 
load printers = no 
printing = lprng 
log file = /var/log/samba/%m.log 
max log size = 0 
security = user 
encrypt passwords = true 
passdb backend = smbpasswd 
smb passwd file = /etc/samba/smbpasswd 
unix password sync = Yes 
passwd program = /usr/bin/passwd %u 
passwd chat = *New*password* %n\n *Retype*new*password* %n\n 
*passwd:*all*authentication*tokens*updated*successfully* 
pam password change = yes 
obey pam restrictions = yes 
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 
local master = no 
os level = 65 
domain master = no 
preferred master = no 
name resolve order = wins bcast host lmhosts 
wins server = xxx.xxx.xxx.xxx 
dns proxy = no 
idmap uid = 16777216-33554431 
idmap gid = 16777216-33554431 
template shell = /bin/false 
winbind use default domain = no 
[MyShare] 
path = /mnt/MyShare 
browseable = yes 
public = yes 
guest ok = yes 
writable = yes 
printable = no 
create mode = 0664 
directory mode = 0775 
veto oplock files = /*mgc*/ 
force create mode = 0660 
force directory mode = 0660 


Samba is not a PDC, however the Windows accounts on client machines have the 
same credentials as are stored in smbpasswd, so the share is automatically 
authenticated. I have observed that if a user is required to enter their 
password, e.g. their Windows password is not the same as in smbpasswd, then 
their password in smbpasswd gets reset. For example, before attempting to 
connect, user1's entry in smbpasswd looks like this (password hashes randomized 
in example below): 
user1:111: f0faf5d8955e92206354485d29a1b15e : e580c2260de48ababdd67d6ed063a641 
:[UX ]:LCT-4E985F55: 


After the user attempts to connect, and enters the wrong credentials, 
user1:111:  : e580c2260de48ababdd67d6ed063a641 
:[UX ]:LCT-4E985F55: 


Thus if the user then tries a second time with the correct password, they are 
unable to login. If the correct password is supplied the first time, then no 
change is made to smbpasswd. Sometimes the password gets changed to X... 
even after a successful login. When this error occurs, nothing is logged in 
/var/log or /var/log/samba. An strace of the parent smbd process reveals only 
the following: 
gettimeofday({1335971419, 254991}, NULL) = 0 
select(27, [6 24 25 26], [], NULL, {, 0}) = 1 (in [24], left {9993, 
133747}) 
gettimeofday({1335971425, 122816}, NULL) = 0 
accept(24, {sa_family=AF_INET, sin_port=htons(61726), 
sin_addr=inet_addr("192.168.1.20")}, [16]) = 28 
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7f07d9ead9f0) = 4371 
close(28) = 0 
gettimeofday({1335971425, 133599}, NULL) = 0 


Do you have any ideas on why the smbpasswd file is being changed, and how to 
correct this behavior so the smbpasswd file is not changed? 


Thanks, 


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


Re: [Samba] User's home folders

2012-05-02 Thread Tom Noonan II
> - insert in /etc/fstab two line to mount the /user_data and /usersHomes?

This is the method I prefer.  Simply mount the disks on boot as you do with any
other filesystem.  If I'm understanding the question properly, samba and logins
don't even come into play.  This is just an issue of preparing the filesystems
on boot.

Unless these disks are some form of removable media, I don't see any reason to
use autofs here.

-- 
Tom Noonan II
ESL Technician - Randstad


On Wed, 2 May 2012 15:33:11 +
zingalo  wrote:

> Thanks!
> i have a second question. sorry if i didn't write before.
> My server has samba, smbldap-tools and ldap installed.
> On the server i have a public directory /user_data with some documents 
> available to everyone of domain and the directory i told you 
> "/usersHomes" where i'll make every directory for every user. (ex: 
> /usersHomes/username). /user_data doesn't need authentication but a user 
> can enter in his home directory only.
> 
> I don't understand how these directory will be mount from the clients 
> after the user login.
> What are the possibility?
> - insert in /etc/fstab two line to mount the /user_data and /usersHomes?
> - or autofs?
> 
> Thanks again
> 
> 
> On 05/02/2012 05:02 PM, Aaron E. wrote:
> > No Problem You'll just need the proper filesystem iee ext3, ext4 on
> > the partition your home folders will be on..
> >
> > On 05/02/2012 10:52 AM, zingalo wrote:
> >> Hi,
> >>
> >> i have a debian server with 2 hd, sda and sdb.
> >> Debian is installed in sda1.
> >> I'll create an home folder for every user. He will login into this from
> >> the clients. Could be a problem creating and using on sdb where there is
> >> not the operating system?
> >>
> >> Thanks
> >
> >
> 



-- 
Tom Noonan II
ESL Technician - Randstad
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] User's home folders

2012-05-02 Thread Aaron E.
I think we'll need more information about your setup.. All linux 
machines, or mix of windows / linux..


On 05/02/2012 11:33 AM, zingalo wrote:

Thanks!
i have a second question. sorry if i didn't write before.
My server has samba, smbldap-tools and ldap installed.
On the server i have a public directory /user_data with some documents
available to everyone of domain and the directory i told you
"/usersHomes" where i'll make every directory for every user. (ex:
/usersHomes/username). /user_data doesn't need authentication but a user
can enter in his home directory only.

I don't understand how these directory will be mount from the clients
after the user login.
What are the possibility?
- insert in /etc/fstab two line to mount the /user_data and /usersHomes?
- or autofs?

Thanks again


On 05/02/2012 05:02 PM, Aaron E. wrote:

No Problem You'll just need the proper filesystem iee ext3, ext4 on
the partition your home folders will be on..

On 05/02/2012 10:52 AM, zingalo wrote:

Hi,

i have a debian server with 2 hd, sda and sdb.
Debian is installed in sda1.
I'll create an home folder for every user. He will login into this from
the clients. Could be a problem creating and using on sdb where there is
not the operating system?

Thanks










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


Re: [Samba] inherit acls

2012-05-02 Thread Jeremy Allison
On Wed, May 02, 2012 at 02:57:45PM +0200, Heinz Hölzl wrote:
> hi
> 
> 
> If i create a new file x.txt,  samba sets the permission of the
> group users to rwx.  "inherit acls" is set to yes. Why samba sets
> the permission to rwx instead of rw (the default permission of the
> parent) ?

You have "map archive" set (it's set by default).
New files have the archive bit set by default. Try
storing the attribute bits in extended attributes
instead.

   store dos attributes = yes
   dos filemode = yes
   map readonly = no
   map system = no
   map hidden = no
   map archive = no

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


Re: [Samba] User's home folders

2012-05-02 Thread zingalo

Thanks!
i have a second question. sorry if i didn't write before.
My server has samba, smbldap-tools and ldap installed.
On the server i have a public directory /user_data with some documents 
available to everyone of domain and the directory i told you 
"/usersHomes" where i'll make every directory for every user. (ex: 
/usersHomes/username). /user_data doesn't need authentication but a user 
can enter in his home directory only.


I don't understand how these directory will be mount from the clients 
after the user login.

What are the possibility?
- insert in /etc/fstab two line to mount the /user_data and /usersHomes?
- or autofs?

Thanks again


On 05/02/2012 05:02 PM, Aaron E. wrote:

No Problem You'll just need the proper filesystem iee ext3, ext4 on
the partition your home folders will be on..

On 05/02/2012 10:52 AM, zingalo wrote:

Hi,

i have a debian server with 2 hd, sda and sdb.
Debian is installed in sda1.
I'll create an home folder for every user. He will login into this from
the clients. Could be a problem creating and using on sdb where there is
not the operating system?

Thanks





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


Re: [Samba] User's home folders

2012-05-02 Thread Aaron E.
No Problem You'll just need the proper filesystem iee ext3, ext4 on 
the partition your home folders will be on..


On 05/02/2012 10:52 AM, zingalo wrote:

Hi,

i have a debian server with 2 hd, sda and sdb.
Debian is installed in sda1.
I'll create an home folder for every user. He will login into this from
the clients. Could be a problem creating and using on sdb where there is
not the operating system?

Thanks



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


[Samba] User's home folders

2012-05-02 Thread zingalo

Hi,

i have a debian server with 2 hd, sda and sdb.
Debian is installed in sda1.
I'll create an home folder for every user. He will login into this  from 
the clients. Could be a problem creating and using on sdb where there is 
not the operating system?


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


[Samba] inherit acls

2012-05-02 Thread Heinz Hölzl

hi


If i create a new file x.txt,  samba sets the permission of the group 
users to rwx.  "inherit acls" is set to yes. Why samba sets the 
permission to rwx instead of rw (the default permission of the parent) ?


New file:
getfacl --tabular x.txt
# file: x.txt
USER   x  rw-
GROUP  users  rwx
group  leitersrwx
mask  rwx
other ---


Parent directory:

getfacl --tabular .
# file: .
USER   admin rwx  rwx
GROUP  users r-x  r-x
group  leiters   rwx  rwx
mask rwx  rwx
other---  ---


thanx for your help!





[global]
unix charset = utf8
display charset = utf8
workgroup = XX
realm = XX.NET
password server = kdc
passdb backend = ldapsam:ldap://ldap/
kerberos method = system keytab
max protocol = SMB2
time server = Yes
printcap cache time = 60
printcap name = cups
domain logons = Yes
os level = 128
wins server = yes
ldap admin dn = cn=admin,dc=xx,dc=net
ldap suffix = cn=accounts,dc=xx,dc=net
ldap ssl = no
recycle: exclude = *.tmp|*.temp|*.o|*.obj|~$*|*.lnk
recycle: touch = yes
recycle: versions = yes
recycle: keeptree = yes
recycle: repository = .recycle/%U
ldapsam:editposix = yes
ldapsam:trusted = yes
idmap config * : backend = tdb
read only = No
acl group control = Yes
create mask = 0660
directory mask = 0770
inherit acls = Yes
guest ok = Yes
case sensitive = No
vfs objects = recycle


[fileserver]
path = /fileserver

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


Re: [Samba] rpoblem: after renaming a directory permissions are changed

2012-05-02 Thread Heinz Hölzl
i have this problem only if the owner of the directory renames the 
directory.

if someone else renames the directory, everything works fine

Am 14.02.2012 09:22, schrieb Heinz Hölzl:

hi

i have a directory with permissions 750
wenn i rename a directory, samba changes the permissions to 770.

can everybody confirm this? what is wrong?


Regards,
Heinz



Version 3.5.11
smb.conf:
[global]
server string = %h server (Samba, Ubuntu)
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n 
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d

[sys]
path = /samba
read only = No
directory mask = 0770
inherit acls = Yes



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


Re: [Samba] Tools

2012-05-02 Thread Arnold Krille

On 30.04.2012 21:06, Charles Tryon wrote:

There are some very nice NAS "appliances", but these are essentially GUI
front ends for Samba 3.  Then there are also complete solutions such as
ClearOS, which try to do the whole "small business server" thing, including
an embedded Samba server.  They have plans to support Samba4, but I don't
know their timeline.  The down side of this is, it pretty much locks you in
to whatever Alpha version they choose to include.


There is also the univention corporate server (aka UCS) that nowadays 
comes as a S4 AD.


Have fun,

Arnold
--
bcs kommunikationslösungen
Inh. Carsten Burkhardt
Harz 51 * 06108 Halle
tel +49 345 29849-0
fax +49 345 29849-22
mailto:i...@b-c-s.de
http://www.b-c-s.de
--
Sent from our Linuxterminalserver.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] upgrade

2012-05-02 Thread Michael Wood
On 2 May 2012 15:13,   wrote:
> Very intersting, Then I can only upgrade one times on month?

Yes, if you like.  Or every two months, or only when a new alphaN is released.

If you really want to you can upgrade every hour :) but that seems silly.

>  Original Message 
> Subject: Re: [Samba] upgrade
> From:    "Michael Wood" 
> Date:    Tue, May 1, 2012 5:29 am
> To:      sandy.napo...@eccmg.cupet.cu
> Cc:      samba@lists.samba.org
> --
>
> Hi
>
> On 1 May 2012 00:24,   wrote:
>> Hello list, Iam running every day git pull for update my samba-master,
>> after I follow the step upgrading-samba4, and everything is ok, but I will
>> want know how I can see if my samba4 is upgrade succeful. thereis some
>> log. some aplication that say me it, in this moment how I can know if my
>> samba4 is alpha 18 or alpha 19? after upgrade
>
> It is not necessary to upgrade every day :)
>
> /usr/local/samba/sbin/samba --version
>
> (or smbclient --version, etc.)
>
> will tell you the version.  For a version of samba later than alpha19,
> it will say something like Version 4.0.0alpha20-GIT-xxx, where
> "xxx" is the first few characters of the commit ID that was
> current when you compiled Samba.

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


[Samba] upgrade

2012-05-02 Thread sandy . napoles
Very intersting, Then I can only upgrade one times on month?


 Original Message 
Subject: Re: [Samba] upgrade
From:"Michael Wood" 
Date:Tue, May 1, 2012 5:29 am
To:  sandy.napo...@eccmg.cupet.cu
Cc:  samba@lists.samba.org
--

Hi

On 1 May 2012 00:24,   wrote:
> Hello list, Iam running every day git pull for update my samba-master,
> after I follow the step upgrading-samba4, and everything is ok, but I will
> want know how I can see if my samba4 is upgrade succeful. thereis some
> log. some aplication that say me it, in this moment how I can know if my
> samba4 is alpha 18 or alpha 19? after upgrade

It is not necessary to upgrade every day :)

/usr/local/samba/sbin/samba --version

(or smbclient --version, etc.)

will tell you the version.  For a version of samba later than alpha19,
it will say something like Version 4.0.0alpha20-GIT-xxx, where
"xxx" is the first few characters of the commit ID that was
current when you compiled Samba.

-- 
Michael Wood 


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


[Samba] version

2012-05-02 Thread sandy . napoles
thanks, look

/usr/local/samba/bin# ./smbclient -V
Version 4.0.0alpha20-GIT-d38a171


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


Re: [Samba] SMB2 write performace slower than SMB1 in 10Gb network

2012-05-02 Thread Volker Lendecke
On Wed, May 02, 2012 at 04:06:15PM +0800, Zhiming Zhou wrote:
> 于 2012/4/28 14:58, Volker Lendecke 写道:
> >On Sat, Apr 28, 2012 at 01:46:35PM +0800, Zhiming Zhou wrote:
> >>I use Iometer to test normal file read/write performance,
> >>at first, SMB2 is not enabled,test 1MB sequential read/write performance
> >>with SMB1, I got 610 MB/s write performance which
> >>is really good, while read performance is just 280 MB/s.
> >>
> >>Then I change "max protocol" to "SMB2" in smb.conf to enable
> >>SMB2, other configs in smb.conf are not changed, restart samba,
> >>reconnect in Windows 2008, use Iometer to run test again, I got
> >>  470 MB/s write performance and 505 MB/s read performance.
> >>
> >>It's quite good that read performance bursts with SMB2, but
> >>write performace droped by 140 MB/s, I run this write test
> >>serveral times again, write performance indeed droped a lot,
> >>so is it normal that SMB2 write performance is slower than
> >>SMB1?
> >No, this is not normal. Maybe you want to enable async I/O.
> >Depending on the platform, plain aio might work with
> >
> >aio write size = 1
> >
> >It might be a good idea to also enable
> >
> >vfs objects = aio_fork
> >
> >With latest Samba Jeremy Allison has also added the
> >aio_pthread module, but that is not yet in released code.
> >You can get it from the latest v3-6-test branch in our git
> >repository.
> >
> >With best regards,
> >
> >Volker Lendecke
> 
> Tested SMB2 write peformance again under 10Gb network with AIO
> enabled, I set
> 
> aio write size = 1
> 
> and got 332.17 MB/s output, which is slower than previous 470 MB/s
> (AIO disabled),
> enable aio_fork vfs object, test result is almost the same.
> 
> In my opinion, SMB2 write should be faster than SMB1 even when AIO
> is disabled,
> isn't it?

Yes, it should. Sorry for pointing you into the wrong
direction.

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

Re: [Samba] Synchronizing multiple samba servers

2012-05-02 Thread Daniel Müller
I do not understand why you do not use Glusterfs in replication mode!?

---
EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail: muel...@tropenklinik.de
Internet: www.tropenklinik.de
---
-Ursprüngliche Nachricht-
Von: samba-boun...@lists.samba.org [mailto:samba-boun...@lists.samba.org] Im
Auftrag von Charles Tryon
Gesendet: Montag, 30. April 2012 20:51
An: Samba list
Betreff: Re: [Samba] Synchronizing multiple samba servers

The "-u" option does skip "newer" files on the receiver, but it still
doesn't do the full bi-directional sync.  You could script to fire off a
second rsync to do the sync back again, but then you'd have to handle the
details of resolving (or at least saving) conflicts.  I think the point of
the "unison" program is that they've already thought through all those weird
combinations for you.


On Wed, Apr 25, 2012 at 4:13 AM, Janantha Marasinghe
wrote:

> Is it possible to use rsync instead? i saw that there is a -u option.
>
> On Tue, Apr 24, 2012 at 6:36 PM, Janantha Marasinghe
> wrote:
>
> >  Thanks a lot all . i will look into unison
> >
> >
> >
> > On 4/24/2012 1:43 PM, ciradhb.forw...@laposte.net wrote:
> >
> > Hi,
> >
> > Maybe you could have a look to Unison which is a tool like rsync but 
> > in bidirectionnal way .
> > http://www.cis.upenn.edu/~bcpierce/unison/index.html
> >
> > Henri
> >
> >
> >
> >
> >
> > > -Message d'origine-
> >
> > > De : samba-boun...@lists.samba.org [mailto:
> samba-boun...@lists.samba.org]
> > De la part de Janantha Marasinghe
> >
> > > Envoyé : mardi 24 avril 2012 07:20
> >
> > > À : samba@lists.samba.org
> >
> > > Objet : [Samba] Synchronizing multiple samba servers
> >
> > >
> >
> > > Hi.
> >
> > >
> >
> > > I have two servers located in two different time zones. I want to 
> > > know
> > if there is a way to keep the shares synchronized.  Right now
> >
> > > what i thought is to run rsync from Server A to Server B . However 
> > > the
> > issue is say Server B has a new version of the file in server A and
> >
> > > that should not be overwritten but should be copied back to server A.
> > How to go about this?
> >
> > >
> >
> > > Regards
> >
> > > Janantha
> >
> > > --
> >
> > > To unsubscribe from this list go to the following URL and read the
> >
> > > instructions:  https://lists.samba.org/mailman/options/samba
> >
> >
> >
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
>



-- 
Charles Tryon
_
  “Risks are not to be evaluated in terms of the probability of success, but
in terms of the value of the goal.”
- Ralph D. Winter
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

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


Re: [Samba] SMB2 write performace slower than SMB1 in 10Gb network

2012-05-02 Thread Zhiming Zhou

于 2012/4/28 14:58, Volker Lendecke 写道:

On Sat, Apr 28, 2012 at 01:46:35PM +0800, Zhiming Zhou wrote:

I use Iometer to test normal file read/write performance,
at first, SMB2 is not enabled,test 1MB sequential read/write performance
with SMB1, I got 610 MB/s write performance which
is really good, while read performance is just 280 MB/s.

Then I change "max protocol" to "SMB2" in smb.conf to enable
SMB2, other configs in smb.conf are not changed, restart samba,
reconnect in Windows 2008, use Iometer to run test again, I got
  470 MB/s write performance and 505 MB/s read performance.

It's quite good that read performance bursts with SMB2, but
write performace droped by 140 MB/s, I run this write test
serveral times again, write performance indeed droped a lot,
so is it normal that SMB2 write performance is slower than
SMB1?

No, this is not normal. Maybe you want to enable async I/O.
Depending on the platform, plain aio might work with

aio write size = 1

It might be a good idea to also enable

vfs objects = aio_fork

With latest Samba Jeremy Allison has also added the
aio_pthread module, but that is not yet in released code.
You can get it from the latest v3-6-test branch in our git
repository.

With best regards,

Volker Lendecke


Tested SMB2 write peformance again under 10Gb network with AIO enabled, 
I set


aio write size = 1

and got 332.17 MB/s output, which is slower than previous 470 MB/s (AIO 
disabled),

enable aio_fork vfs object, test result is almost the same.

In my opinion, SMB2 write should be faster than SMB1 even when AIO is 
disabled,

isn't it?

Thanks

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