Re: [Samba] samba4 PDC to BDC file replication

2013-03-03 Thread Jeremy Allison
On Sun, Mar 03, 2013 at 02:41:35PM +1000, C Waddy wrote:
 No luck so far with a suitable solution for file replication to BDC and
 retain ntfs perms..
 
 After testing again with Rsync, it will not preserve NTFS permissions, no
 matter what flags are used?
 
 Glusterfs is cool but only for 64 Bit systems.
 
 There must be a solution to this with Samba4, anyone using a tested and
 working Method?
 
 Without the replication of folders/files with NTFS ACL's we can't use
 Samba4 in our Business which is very frustrating :(

Are you talking about a filesystem mounted from Linux
formatted as NTFS ? Or a normal Samba filesystem (e.g.
ext4) with Samba-style NTFS permissions stored on it ?

If the latter, and rsync isn't copying the Samba NTFS
permissions, I have an idea as to what may be wrong
here.

Might need an rsync patch :-).

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


Re: [Samba] samba4 PDC to BDC file replication

2013-03-02 Thread C Waddy
No luck so far with a suitable solution for file replication to BDC and
retain ntfs perms..

After testing again with Rsync, it will not preserve NTFS permissions, no
matter what flags are used?

Glusterfs is cool but only for 64 Bit systems.

There must be a solution to this with Samba4, anyone using a tested and
working Method?

Without the replication of folders/files with NTFS ACL's we can't use
Samba4 in our Business which is very frustrating :(


On Sat, Mar 2, 2013 at 10:06 AM, Ben Metcalfe bwmetca...@gmail.com wrote:

 Without inviting too many anti-CDDL flames; if you have ZFS on Linux
 working on your samba 4 box, a zfs send and receive should do the job well;
 preserving all file attributes and only transferring deltas.
 Plus you get all the usual ZFS benefits (snapshots, copy-on-write,
 check-summing), assuming you've got the RAM to make it work smoothly.

 http://zfsonlinux.org/

 Has anyone tried this configuration?

 Ben

 On 1 March 2013 23:46, Gregory Sloop gr...@sloop.net wrote:

  Thanks. I asked this a few weeks back and didn't get much response.
  The half-hearted consensus was that rsync wouldn't do the job.
 
  [It seemed to me it should, as long as you're replicating between two
  DC members, and not to a non DC member. (Because, as I figured it, a
  non DC member wouldn't have any idea about the users/groups, since
  it's not replicating and of the DC data, right?)]
 
  Glad for any light you can shed - and thanks for letting me know it
  should work. I'll tinker with it when I'm to that point.
 
  -Greg
 
 
  JA On Thu, Feb 28, 2013 at 09:13:39PM -0800, Gregory Sloop wrote:
  
   I'm in the same boat, and I'm only aware of two possibilities.
  
   1) Robocopy - using a Windows client.
  BUT Robocopy doesn't do file deltas - changed files are copied in
  their entirety. Which isn't a problem if you don't have large
  files. But if you've got a 10G file that changes often, then this
  probably isn't the best alternative.
  
   2) http://www.bvckup.com/support/ [Bvckup]
  This also appears to be a Windows utility, but does handle file
  delta's. I have never used this tool and so can't vouch for it in
 any
  way.
  
   If you find a functional solution, that preferably can be used on the
   two Linux/Samba boxes to do file-deltas and still maintain the
   permissions - that would be best.
  
   One other option that might work:
   Rsync the data, and use robocopy to simply duplicate the permissions
   structure. [I believe this is possible.]
 
  JA rsync using -A (preserve ACLs) and -X (preserve extended attributes)
  JA and -o (preserve owner (super-user only)) and -g (preserve group)
  JA should copy thing perfectly.
 
  --
  Gregory Sloop, Principal: Sloop Network  Computer Consulting
  Voice: 503.251.0452 x82
  EMail: gr...@sloop.net
  http://www.sloop.net
  ---
 
  --
  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

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


Re: [Samba] samba4 PDC to BDC file replication

2013-03-02 Thread Cristian Saavedra
Did you try using -X -A flags?

Also you can try using getfacl and setfacl

Enviado desde un dispositivo movil

El 2/03/2013, a las 23:41, C Waddy craigwa...@gmail.com escribió:

 No luck so far with a suitable solution for file replication to BDC and
 retain ntfs perms..
 
 After testing again with Rsync, it will not preserve NTFS permissions, no
 matter what flags are used?
 
 Glusterfs is cool but only for 64 Bit systems.
 
 There must be a solution to this with Samba4, anyone using a tested and
 working Method?
 
 Without the replication of folders/files with NTFS ACL's we can't use
 Samba4 in our Business which is very frustrating :(
 
 
 On Sat, Mar 2, 2013 at 10:06 AM, Ben Metcalfe bwmetca...@gmail.com wrote:
 
 Without inviting too many anti-CDDL flames; if you have ZFS on Linux
 working on your samba 4 box, a zfs send and receive should do the job well;
 preserving all file attributes and only transferring deltas.
 Plus you get all the usual ZFS benefits (snapshots, copy-on-write,
 check-summing), assuming you've got the RAM to make it work smoothly.
 
 http://zfsonlinux.org/
 
 Has anyone tried this configuration?
 
 Ben
 
 On 1 March 2013 23:46, Gregory Sloop gr...@sloop.net wrote:
 
 Thanks. I asked this a few weeks back and didn't get much response.
 The half-hearted consensus was that rsync wouldn't do the job.
 
 [It seemed to me it should, as long as you're replicating between two
 DC members, and not to a non DC member. (Because, as I figured it, a
 non DC member wouldn't have any idea about the users/groups, since
 it's not replicating and of the DC data, right?)]
 
 Glad for any light you can shed - and thanks for letting me know it
 should work. I'll tinker with it when I'm to that point.
 
 -Greg
 
 
 JA On Thu, Feb 28, 2013 at 09:13:39PM -0800, Gregory Sloop wrote:
 
 I'm in the same boat, and I'm only aware of two possibilities.
 
 1) Robocopy - using a Windows client.
   BUT Robocopy doesn't do file deltas - changed files are copied in
   their entirety. Which isn't a problem if you don't have large
   files. But if you've got a 10G file that changes often, then this
   probably isn't the best alternative.
 
 2) http://www.bvckup.com/support/ [Bvckup]
   This also appears to be a Windows utility, but does handle file
   delta's. I have never used this tool and so can't vouch for it in
 any
   way.
 
 If you find a functional solution, that preferably can be used on the
 two Linux/Samba boxes to do file-deltas and still maintain the
 permissions - that would be best.
 
 One other option that might work:
 Rsync the data, and use robocopy to simply duplicate the permissions
 structure. [I believe this is possible.]
 
 JA rsync using -A (preserve ACLs) and -X (preserve extended attributes)
 JA and -o (preserve owner (super-user only)) and -g (preserve group)
 JA should copy thing perfectly.
 
 --
 Gregory Sloop, Principal: Sloop Network  Computer Consulting
 Voice: 503.251.0452 x82
 EMail: gr...@sloop.net
 http://www.sloop.net
 ---
 
 --
 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
 
 -- 
 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] samba4 PDC to BDC file replication

2013-03-01 Thread L . P . H . van Belle
I'm voting for... 
Daniel is going make a nice example/howto howto do this.  ;-))  
i've seen him talking a lot about this, but howto setup this...  
I like to know..  

;-)  

Gr. 

Louis

-Oorspronkelijk bericht-
Van: muel...@tropenklinik.de 
[mailto:samba-boun...@lists.samba.org] Namens Daniel Müller
Verzonden: vrijdag 1 maart 2013 8:09
Aan: 'C Waddy'; 'Greg Sloop'
CC: samba@lists.samba.org
Onderwerp: Re: [Samba] samba4 PDC to BDC file replication

Use glusterfs.

And samba4 in replication mode.

Good Luck


---
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 C Waddy
Gesendet: Freitag, 1. März 2013 07:19
An: Greg Sloop
Cc: samba@lists.samba.org
Betreff: Re: [Samba] samba4 PDC to BDC file replication

Hi Greg,

Thanks for the info, its a tough one. I was hoping the msdsf 
would replicate
data but it appears it doesnt appear to or am i missing something?

I used a program in the past called File replication pro on 
Suse/novell  and
it worked. I haave emailed their support and asked if it will 
work in our
situation.

I am going to give it a go in the Samba4 test environment over 
the weekend,
ill let you know if it works.

On Fri, Mar 1, 2013 at 3:13 PM, Gregory Sloop gr...@sloop.net wrote:


 CW I have built two samba4 boxes, one as a PDC and the as a DC, all
 working
 CW perfectly. If I create a user through the mmc snapin 
then turn off 
 CW the
 PDC,
 CW I can still login to the domain using the DC which is great. The
 problem is
 CW their files and ntfs permissions on BDC.

 CW I have assigned user and group rights using windows explorer to 
 CW certain folders, i.e granted user1 full permissions to 
that folder

 CW The problem I have is trying to replicate/snc the users 
data/files
 from PDC
 CW to DC whilst keeping the NTFS permissions that have been set. 
 CW Rysnc
 doesnt
 CW seem to keep the ntfs permissions

 CW The reason for this is if the PDC goes down, user logs on using 
 CW the DC
 and
 CW can access their files which have retained their files and
permissions.

 CW Is there some way to achieve this?

 I'm in the same boat, and I'm only aware of two possibilities.

 1) Robocopy - using a Windows client.
BUT Robocopy doesn't do file deltas - changed files are copied in
their entirety. Which isn't a problem if you don't have large
files. But if you've got a 10G file that changes often, then this
probably isn't the best alternative.

 2) http://www.bvckup.com/support/ [Bvckup]
This also appears to be a Windows utility, but does handle file
delta's. I have never used this tool and so can't vouch 
for it in any
way.

 If you find a functional solution, that preferably can be 
used on the 
 two Linux/Samba boxes to do file-deltas and still maintain the 
 permissions - that would be best.

 One other option that might work:
 Rsync the data, and use robocopy to simply duplicate the permissions 
 structure. [I believe this is possible.]

 This last idea sounds bat$hit insane - but hey, it might 
actually work 
 reasonably well. :)

 -Greg


--
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



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


Re: [Samba] samba4 PDC to BDC file replication

2013-03-01 Thread C Waddy
Thanks Daniel, I did have a look at that option and it now I looked harder
it is an excellent solution!

Basically Glusterfs will replicate the file storage.

Glusterfs looks straight forward enough to setup:

http://www.howtoforge.com/high-availability-storage-with-glusterfs-3.2.x-on-centos-6.3-automatic-file-replication-mirror-across-two-storage-servers



On Fri, Mar 1, 2013 at 6:08 PM, L.P.H. van Belle be...@bazuin.nl wrote:

 I'm voting for...
 Daniel is going make a nice example/howto howto do this.  ;-))
 i've seen him talking a lot about this, but howto setup this...
 I like to know..

 ;-)

 Gr.

 Louis

 -Oorspronkelijk bericht-
 Van: muel...@tropenklinik.de
 [mailto:samba-boun...@lists.samba.org] Namens Daniel Müller
 Verzonden: vrijdag 1 maart 2013 8:09
 Aan: 'C Waddy'; 'Greg Sloop'
 CC: samba@lists.samba.org
 Onderwerp: Re: [Samba] samba4 PDC to BDC file replication
 
 Use glusterfs.
 
 And samba4 in replication mode.
 
 Good Luck
 
 
 ---
 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 C Waddy
 Gesendet: Freitag, 1. März 2013 07:19
 An: Greg Sloop
 Cc: samba@lists.samba.org
 Betreff: Re: [Samba] samba4 PDC to BDC file replication
 
 Hi Greg,
 
 Thanks for the info, its a tough one. I was hoping the msdsf
 would replicate
 data but it appears it doesnt appear to or am i missing something?
 
 I used a program in the past called File replication pro on
 Suse/novell  and
 it worked. I haave emailed their support and asked if it will
 work in our
 situation.
 
 I am going to give it a go in the Samba4 test environment over
 the weekend,
 ill let you know if it works.
 
 On Fri, Mar 1, 2013 at 3:13 PM, Gregory Sloop gr...@sloop.net wrote:
 
 
  CW I have built two samba4 boxes, one as a PDC and the as a DC, all
  working
  CW perfectly. If I create a user through the mmc snapin
 then turn off
  CW the
  PDC,
  CW I can still login to the domain using the DC which is great. The
  problem is
  CW their files and ntfs permissions on BDC.
 
  CW I have assigned user and group rights using windows explorer to
  CW certain folders, i.e granted user1 full permissions to
 that folder
 
  CW The problem I have is trying to replicate/snc the users
 data/files
  from PDC
  CW to DC whilst keeping the NTFS permissions that have been set.
  CW Rysnc
  doesnt
  CW seem to keep the ntfs permissions
 
  CW The reason for this is if the PDC goes down, user logs on using
  CW the DC
  and
  CW can access their files which have retained their files and
 permissions.
 
  CW Is there some way to achieve this?
 
  I'm in the same boat, and I'm only aware of two possibilities.
 
  1) Robocopy - using a Windows client.
 BUT Robocopy doesn't do file deltas - changed files are copied in
 their entirety. Which isn't a problem if you don't have large
 files. But if you've got a 10G file that changes often, then this
 probably isn't the best alternative.
 
  2) http://www.bvckup.com/support/ [Bvckup]
 This also appears to be a Windows utility, but does handle file
 delta's. I have never used this tool and so can't vouch
 for it in any
 way.
 
  If you find a functional solution, that preferably can be
 used on the
  two Linux/Samba boxes to do file-deltas and still maintain the
  permissions - that would be best.
 
  One other option that might work:
  Rsync the data, and use robocopy to simply duplicate the permissions
  structure. [I believe this is possible.]
 
  This last idea sounds bat$hit insane - but hey, it might
 actually work
  reasonably well. :)
 
  -Greg
 
 
 --
 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
 
 

 --
 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] samba4 PDC to BDC file replication

2013-03-01 Thread C Waddy
Being a mirror it should keep the NTFS permissions set?

I will try this out and report my findings.

Thoughts?

On Fri, Mar 1, 2013 at 6:21 PM, C Waddy craigwa...@gmail.com wrote:

 Thanks Daniel, I did have a look at that option and it now I looked harder
 it is an excellent solution!

 Basically Glusterfs will replicate the file storage.

 Glusterfs looks straight forward enough to setup:


 http://www.howtoforge.com/high-availability-storage-with-glusterfs-3.2.x-on-centos-6.3-automatic-file-replication-mirror-across-two-storage-servers




 On Fri, Mar 1, 2013 at 6:08 PM, L.P.H. van Belle be...@bazuin.nl wrote:

 I'm voting for...
 Daniel is going make a nice example/howto howto do this.  ;-))
 i've seen him talking a lot about this, but howto setup this...
 I like to know..

 ;-)

 Gr.

 Louis

 -Oorspronkelijk bericht-
 Van: muel...@tropenklinik.de
 [mailto:samba-boun...@lists.samba.org] Namens Daniel Müller
 Verzonden: vrijdag 1 maart 2013 8:09
 Aan: 'C Waddy'; 'Greg Sloop'
 CC: samba@lists.samba.org
 Onderwerp: Re: [Samba] samba4 PDC to BDC file replication
 
 Use glusterfs.
 
 And samba4 in replication mode.
 
 Good Luck
 
 
 ---
 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 C Waddy
 Gesendet: Freitag, 1. März 2013 07:19
 An: Greg Sloop
 Cc: samba@lists.samba.org
 Betreff: Re: [Samba] samba4 PDC to BDC file replication
 
 Hi Greg,
 
 Thanks for the info, its a tough one. I was hoping the msdsf
 would replicate
 data but it appears it doesnt appear to or am i missing something?
 
 I used a program in the past called File replication pro on
 Suse/novell  and
 it worked. I haave emailed their support and asked if it will
 work in our
 situation.
 
 I am going to give it a go in the Samba4 test environment over
 the weekend,
 ill let you know if it works.
 
 On Fri, Mar 1, 2013 at 3:13 PM, Gregory Sloop gr...@sloop.net wrote:
 
 
  CW I have built two samba4 boxes, one as a PDC and the as a DC, all
  working
  CW perfectly. If I create a user through the mmc snapin
 then turn off
  CW the
  PDC,
  CW I can still login to the domain using the DC which is great. The
  problem is
  CW their files and ntfs permissions on BDC.
 
  CW I have assigned user and group rights using windows explorer to
  CW certain folders, i.e granted user1 full permissions to
 that folder
 
  CW The problem I have is trying to replicate/snc the users
 data/files
  from PDC
  CW to DC whilst keeping the NTFS permissions that have been set.
  CW Rysnc
  doesnt
  CW seem to keep the ntfs permissions
 
  CW The reason for this is if the PDC goes down, user logs on using
  CW the DC
  and
  CW can access their files which have retained their files and
 permissions.
 
  CW Is there some way to achieve this?
 
  I'm in the same boat, and I'm only aware of two possibilities.
 
  1) Robocopy - using a Windows client.
 BUT Robocopy doesn't do file deltas - changed files are copied in
 their entirety. Which isn't a problem if you don't have large
 files. But if you've got a 10G file that changes often, then this
 probably isn't the best alternative.
 
  2) http://www.bvckup.com/support/ [Bvckup]
 This also appears to be a Windows utility, but does handle file
 delta's. I have never used this tool and so can't vouch
 for it in any
 way.
 
  If you find a functional solution, that preferably can be
 used on the
  two Linux/Samba boxes to do file-deltas and still maintain the
  permissions - that would be best.
 
  One other option that might work:
  Rsync the data, and use robocopy to simply duplicate the permissions
  structure. [I believe this is possible.]
 
  This last idea sounds bat$hit insane - but hey, it might
 actually work
  reasonably well. :)
 
  -Greg
 
 
 --
 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
 
 

 --
 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] samba4 PDC to BDC file replication

2013-03-01 Thread Andreas Gaiser/L

 I'm voting for...

So do I, with the reservation that glusterfs requires an amd64 system,
at least officially, whereas some people report (partial) success on
i386 (don't know about non-Intel).

But it will still be required to provide some sort of synchronous
ID-mapping, which seems to be a much tougher task than just glusterfs.

The only promising alternative I have found so far is the use of RFC2307
schema attributes, which is no fun to maintain manually and even then
seems not to work out of the box with ADUC only. I've written a script
(I'm admitting it's PHP) for this task and my plan is to test the entire
setup this weekend.

*From:* L.P.H. van Belle be...@bazuin.nl
*To:* muel...@tropenklinik.demuel...@tropenklinik.de
*Date:* Freitag, 1. März 2013 09:29:50
*Subject:* Re: [Samba] samba4 PDC to BDC file replication

 Daniel is going make a nice example/howto howto do this.  ;-))  
 i've seen him talking a lot about this, but howto setup this...  
 I like to know..  
 
 ;-)  
 
 Gr. 
 
 Louis
 
 -Oorspronkelijk bericht-
 Van: muel...@tropenklinik.de 
 [mailto:samba-boun...@lists.samba.org] Namens Daniel Müller
 Verzonden: vrijdag 1 maart 2013 8:09
 Aan: 'C Waddy'; 'Greg Sloop'
 CC: samba@lists.samba.org
 Onderwerp: Re: [Samba] samba4 PDC to BDC file replication

 Use glusterfs.

 And samba4 in replication mode.

 Good Luck


 ---
 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 C Waddy
 Gesendet: Freitag, 1. März 2013 07:19
 An: Greg Sloop
 Cc: samba@lists.samba.org
 Betreff: Re: [Samba] samba4 PDC to BDC file replication

 Hi Greg,

 Thanks for the info, its a tough one. I was hoping the msdsf 
 would replicate
 data but it appears it doesnt appear to or am i missing something?

 I used a program in the past called File replication pro on 
 Suse/novell  and
 it worked. I haave emailed their support and asked if it will 
 work in our
 situation.

 I am going to give it a go in the Samba4 test environment over 
 the weekend,
 ill let you know if it works.

 On Fri, Mar 1, 2013 at 3:13 PM, Gregory Sloop gr...@sloop.net wrote:


 CW I have built two samba4 boxes, one as a PDC and the as a DC, all
 working
 CW perfectly. If I create a user through the mmc snapin 
 then turn off 
 CW the
 PDC,
 CW I can still login to the domain using the DC which is great. The
 problem is
 CW their files and ntfs permissions on BDC.

 CW I have assigned user and group rights using windows explorer to 
 CW certain folders, i.e granted user1 full permissions to 
 that folder

 CW The problem I have is trying to replicate/snc the users 
 data/files
 from PDC
 CW to DC whilst keeping the NTFS permissions that have been set. 
 CW Rysnc
 doesnt
 CW seem to keep the ntfs permissions

 CW The reason for this is if the PDC goes down, user logs on using 
 CW the DC
 and
 CW can access their files which have retained their files and
 permissions.

 CW Is there some way to achieve this?

 I'm in the same boat, and I'm only aware of two possibilities.

 1) Robocopy - using a Windows client.
BUT Robocopy doesn't do file deltas - changed files are copied in
their entirety. Which isn't a problem if you don't have large
files. But if you've got a 10G file that changes often, then this
probably isn't the best alternative.

 2) http://www.bvckup.com/support/ [Bvckup]
This also appears to be a Windows utility, but does handle file
delta's. I have never used this tool and so can't vouch 
 for it in any
way.

 If you find a functional solution, that preferably can be 
 used on the 
 two Linux/Samba boxes to do file-deltas and still maintain the 
 permissions - that would be best.

 One other option that might work:
 Rsync the data, and use robocopy to simply duplicate the permissions 
 structure. [I believe this is possible.]

 This last idea sounds bat$hit insane - but hey, it might 
 actually work 
 reasonably well. :)

 -Greg


 --
 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


 

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


Re: [Samba] samba4 PDC to BDC file replication

2013-03-01 Thread L . P . H . van Belle
Im looking for a nice setup like this.
 
http://www.howtoforge.com/setting-up-a-standalone-storage-server-with-glusterfs-and-samba-on-debian-squeeze
 
 
with samba4 DC and DC replication. 
Samba 4 DC ( and RODC's ) and having multiple subnets and remote locations. 
using bind for dns. 
Integrations of Zarafa schema in AD. 
having other servers with nfs linked nfs v2 3 ( like to have v4 also ) 
 
I can make a nice howto, but im missing some knowledge and the caveats where to 
lookout for. 
Im going to use debian or ubuntu, depends. I like debian more, but my servers 
are Dell, 
and ubuntu is adviced by dell, because of bit better driver support
 
Looked a lot, and yes there's a lot out there but all snipets of what im 
looking for. 

I'll like a nice howto based on real world networks. 
 
Im working now on a howto and setup voor nagios3 with centreon on ubuntu ( and 
more) , without compiling. 
Only debs used, i can only do 1 howto at a time. For example this setup, first 
time took 8 hours.
Now im at about 90% of the setup, install time is now about 2.5 hours.. 
 
So, if someone is installing samba, please please, write down very step, 
failuere, success, and put it here.
Or on your website, let us all know what your doing, how and we learn all. 
And let us know why your choosing for a setup, this is i think most important. 
 
and yes i know this place.  ;-)  http://wiki.samba.org/index.php/Samba4  
 
 
And many thanks to the samba team for all support here. 
 
Louis
 
 
 
 

Van: C Waddy [mailto:craigwa...@gmail.com] 
Verzonden: vrijdag 1 maart 2013 9:25
Aan: L.P.H. van Belle
CC: muel...@tropenklinik.de; samba@lists.samba.org
Onderwerp: Re: [Samba] samba4 PDC to BDC file replication



Being a mirror it should keep the NTFS permissions set? 

I will try this out and report my findings.


Thoughts?

On Fri, Mar 1, 2013 at 6:21 PM, C Waddy craigwa...@gmail.com wrote:
Thanks Daniel, I did have a look at that option and it now I looked harder it 
is an excellent solution! 

Basically Glusterfs will replicate the file storage. 


Glusterfs looks straight forward enough to setup:


http://www.howtoforge.com/high-availability-storage-with-glusterfs-3.2.x-on-centos-6.3-automatic-file-replication-mirror-across-two-storage-servers
 



On Fri, Mar 1, 2013 at 6:08 PM, L.P.H. van Belle be...@bazuin.nl wrote:
I'm voting for...
Daniel is going make a nice example/howto howto do this.  ;-))
i've seen him talking a lot about this, but howto setup this...
I like to know..

;-)

Gr.

Louis

-Oorspronkelijk bericht-
Van: muel...@tropenklinik.de
[mailto:samba-boun...@lists.samba.org] Namens Daniel Müller
Verzonden: vrijdag 1 maart 2013 8:09
Aan: 'C Waddy'; 'Greg Sloop'
CC: samba@lists.samba.org
Onderwerp: Re: [Samba] samba4 PDC to BDC file replication

Use glusterfs.

And samba4 in replication mode.

Good Luck


---
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 C Waddy
Gesendet: Freitag, 1. März 2013 07:19
An: Greg Sloop
Cc: samba@lists.samba.org
Betreff: Re: [Samba] samba4 PDC to BDC file replication

Hi Greg,

Thanks for the info, its a tough one. I was hoping the msdsf
would replicate
data but it appears it doesnt appear to or am i missing something?

I used a program in the past called File replication pro on
Suse/novell  and
it worked. I haave emailed their support and asked if it will
work in our
situation.

I am going to give it a go in the Samba4 test environment over
the weekend,
ill let you know if it works.

On Fri, Mar 1, 2013 at 3:13 PM, Gregory Sloop gr...@sloop.net wrote:


 CW I have built two samba4 boxes, one as a PDC and the as a DC, all
 working
 CW perfectly. If I create a user through the mmc snapin
then turn off
 CW the
 PDC,
 CW I can still login to the domain using the DC which is great. The
 problem is
 CW their files and ntfs permissions on BDC.

 CW I have assigned user and group rights using windows explorer to
 CW certain folders, i.e granted user1 full permissions to
that folder

 CW The problem I have is trying to replicate/snc the users
data/files
 from PDC
 CW to DC whilst keeping the NTFS permissions that have been set.
 CW Rysnc
 doesnt
 CW seem to keep the ntfs permissions

 CW The reason for this is if the PDC goes down, user logs on using
 CW the DC
 and
 CW can access their files which have retained their files and
permissions.

 CW Is there some way to achieve this?

 I'm in the same boat, and I'm only aware of two possibilities.

 1) Robocopy - using a Windows client.
    BUT Robocopy doesn't do file deltas - changed files are copied in
    their entirety. Which isn't a problem if you don't have large

Re: [Samba] samba4 PDC to BDC file replication

2013-03-01 Thread Jeremy Allison
On Thu, Feb 28, 2013 at 09:13:39PM -0800, Gregory Sloop wrote:
 
 I'm in the same boat, and I'm only aware of two possibilities.
 
 1) Robocopy - using a Windows client.
BUT Robocopy doesn't do file deltas - changed files are copied in
their entirety. Which isn't a problem if you don't have large
files. But if you've got a 10G file that changes often, then this
probably isn't the best alternative.
 
 2) http://www.bvckup.com/support/ [Bvckup]
This also appears to be a Windows utility, but does handle file
delta's. I have never used this tool and so can't vouch for it in any
way.
 
 If you find a functional solution, that preferably can be used on the
 two Linux/Samba boxes to do file-deltas and still maintain the
 permissions - that would be best.
 
 One other option that might work:
 Rsync the data, and use robocopy to simply duplicate the permissions
 structure. [I believe this is possible.]

rsync using -A (preserve ACLs) and -X (preserve extended attributes)
and -o (preserve owner (super-user only)) and -g (preserve group)
should copy thing perfectly.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] samba4 PDC to BDC file replication

2013-03-01 Thread Gregory Sloop
Thanks. I asked this a few weeks back and didn't get much response.
The half-hearted consensus was that rsync wouldn't do the job.

[It seemed to me it should, as long as you're replicating between two
DC members, and not to a non DC member. (Because, as I figured it, a
non DC member wouldn't have any idea about the users/groups, since
it's not replicating and of the DC data, right?)]

Glad for any light you can shed - and thanks for letting me know it
should work. I'll tinker with it when I'm to that point.

-Greg


JA On Thu, Feb 28, 2013 at 09:13:39PM -0800, Gregory Sloop wrote:
 
 I'm in the same boat, and I'm only aware of two possibilities.
 
 1) Robocopy - using a Windows client.
BUT Robocopy doesn't do file deltas - changed files are copied in
their entirety. Which isn't a problem if you don't have large
files. But if you've got a 10G file that changes often, then this
probably isn't the best alternative.
 
 2) http://www.bvckup.com/support/ [Bvckup]
This also appears to be a Windows utility, but does handle file
delta's. I have never used this tool and so can't vouch for it in any
way.
 
 If you find a functional solution, that preferably can be used on the
 two Linux/Samba boxes to do file-deltas and still maintain the
 permissions - that would be best.
 
 One other option that might work:
 Rsync the data, and use robocopy to simply duplicate the permissions
 structure. [I believe this is possible.]

JA rsync using -A (preserve ACLs) and -X (preserve extended attributes)
JA and -o (preserve owner (super-user only)) and -g (preserve group)
JA should copy thing perfectly.

-- 
Gregory Sloop, Principal: Sloop Network  Computer Consulting
Voice: 503.251.0452 x82
EMail: gr...@sloop.net
http://www.sloop.net
---

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


Re: [Samba] samba4 PDC to BDC file replication

2013-03-01 Thread Ben Metcalfe
Without inviting too many anti-CDDL flames; if you have ZFS on Linux
working on your samba 4 box, a zfs send and receive should do the job well;
preserving all file attributes and only transferring deltas.
Plus you get all the usual ZFS benefits (snapshots, copy-on-write,
check-summing), assuming you've got the RAM to make it work smoothly.

http://zfsonlinux.org/

Has anyone tried this configuration?

Ben

On 1 March 2013 23:46, Gregory Sloop gr...@sloop.net wrote:

 Thanks. I asked this a few weeks back and didn't get much response.
 The half-hearted consensus was that rsync wouldn't do the job.

 [It seemed to me it should, as long as you're replicating between two
 DC members, and not to a non DC member. (Because, as I figured it, a
 non DC member wouldn't have any idea about the users/groups, since
 it's not replicating and of the DC data, right?)]

 Glad for any light you can shed - and thanks for letting me know it
 should work. I'll tinker with it when I'm to that point.

 -Greg


 JA On Thu, Feb 28, 2013 at 09:13:39PM -0800, Gregory Sloop wrote:
 
  I'm in the same boat, and I'm only aware of two possibilities.
 
  1) Robocopy - using a Windows client.
 BUT Robocopy doesn't do file deltas - changed files are copied in
 their entirety. Which isn't a problem if you don't have large
 files. But if you've got a 10G file that changes often, then this
 probably isn't the best alternative.
 
  2) http://www.bvckup.com/support/ [Bvckup]
 This also appears to be a Windows utility, but does handle file
 delta's. I have never used this tool and so can't vouch for it in any
 way.
 
  If you find a functional solution, that preferably can be used on the
  two Linux/Samba boxes to do file-deltas and still maintain the
  permissions - that would be best.
 
  One other option that might work:
  Rsync the data, and use robocopy to simply duplicate the permissions
  structure. [I believe this is possible.]

 JA rsync using -A (preserve ACLs) and -X (preserve extended attributes)
 JA and -o (preserve owner (super-user only)) and -g (preserve group)
 JA should copy thing perfectly.

 --
 Gregory Sloop, Principal: Sloop Network  Computer Consulting
 Voice: 503.251.0452 x82
 EMail: gr...@sloop.net
 http://www.sloop.net
 ---

 --
 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


[Samba] samba4 PDC to BDC file replication

2013-02-28 Thread C Waddy
Hi,

I have built two samba4 boxes, one as a PDC and the as a DC, all working
perfectly. If I create a user through the mmc snapin then turn off the PDC,
I can still login to the domain using the DC which is great. The problem is
their files and ntfs permissions on BDC.

I have assigned user and group rights using windows explorer to certain
folders, i.e granted user1 full permissions to that folder

The problem I have is trying to replicate/snc the users data/files from PDC
to DC whilst keeping the NTFS permissions that have been set. Rysnc doesnt
seem to keep the ntfs permissions

The reason for this is if the PDC goes down, user logs on using the DC and
can access their files which have retained their files and permissions.

Is there some way to achieve this?

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


Re: [Samba] samba4 PDC to BDC file replication

2013-02-28 Thread Gregory Sloop

CW I have built two samba4 boxes, one as a PDC and the as a DC, all working
CW perfectly. If I create a user through the mmc snapin then turn off the PDC,
CW I can still login to the domain using the DC which is great. The problem is
CW their files and ntfs permissions on BDC.

CW I have assigned user and group rights using windows explorer to certain
CW folders, i.e granted user1 full permissions to that folder

CW The problem I have is trying to replicate/snc the users data/files from PDC
CW to DC whilst keeping the NTFS permissions that have been set. Rysnc doesnt
CW seem to keep the ntfs permissions

CW The reason for this is if the PDC goes down, user logs on using the DC and
CW can access their files which have retained their files and permissions.

CW Is there some way to achieve this?

I'm in the same boat, and I'm only aware of two possibilities.

1) Robocopy - using a Windows client.
   BUT Robocopy doesn't do file deltas - changed files are copied in
   their entirety. Which isn't a problem if you don't have large
   files. But if you've got a 10G file that changes often, then this
   probably isn't the best alternative.

2) http://www.bvckup.com/support/ [Bvckup]
   This also appears to be a Windows utility, but does handle file
   delta's. I have never used this tool and so can't vouch for it in any
   way.

If you find a functional solution, that preferably can be used on the
two Linux/Samba boxes to do file-deltas and still maintain the
permissions - that would be best.

One other option that might work:
Rsync the data, and use robocopy to simply duplicate the permissions
structure. [I believe this is possible.]

This last idea sounds bat$hit insane - but hey, it might actually work
reasonably well. :)

-Greg

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


Re: [Samba] samba4 PDC to BDC file replication

2013-02-28 Thread C Waddy
Hi Greg,

Thanks for the info, its a tough one. I was hoping the msdsf would
replicate data but it appears it doesnt appear to or am i missing something?

I used a program in the past called File replication pro on Suse/novell
 and it worked. I haave emailed their support and asked if it will work in
our situation.

I am going to give it a go in the Samba4 test environment over the weekend,
ill let you know if it works.

On Fri, Mar 1, 2013 at 3:13 PM, Gregory Sloop gr...@sloop.net wrote:


 CW I have built two samba4 boxes, one as a PDC and the as a DC, all
 working
 CW perfectly. If I create a user through the mmc snapin then turn off the
 PDC,
 CW I can still login to the domain using the DC which is great. The
 problem is
 CW their files and ntfs permissions on BDC.

 CW I have assigned user and group rights using windows explorer to certain
 CW folders, i.e granted user1 full permissions to that folder

 CW The problem I have is trying to replicate/snc the users data/files
 from PDC
 CW to DC whilst keeping the NTFS permissions that have been set. Rysnc
 doesnt
 CW seem to keep the ntfs permissions

 CW The reason for this is if the PDC goes down, user logs on using the DC
 and
 CW can access their files which have retained their files and permissions.

 CW Is there some way to achieve this?

 I'm in the same boat, and I'm only aware of two possibilities.

 1) Robocopy - using a Windows client.
BUT Robocopy doesn't do file deltas - changed files are copied in
their entirety. Which isn't a problem if you don't have large
files. But if you've got a 10G file that changes often, then this
probably isn't the best alternative.

 2) http://www.bvckup.com/support/ [Bvckup]
This also appears to be a Windows utility, but does handle file
delta's. I have never used this tool and so can't vouch for it in any
way.

 If you find a functional solution, that preferably can be used on the
 two Linux/Samba boxes to do file-deltas and still maintain the
 permissions - that would be best.

 One other option that might work:
 Rsync the data, and use robocopy to simply duplicate the permissions
 structure. [I believe this is possible.]

 This last idea sounds bat$hit insane - but hey, it might actually work
 reasonably well. :)

 -Greg


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


Re: [Samba] samba4 PDC to BDC file replication

2013-02-28 Thread Daniel Müller
Use glusterfs.

And samba4 in replication mode.

Good Luck


---
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 C Waddy
Gesendet: Freitag, 1. März 2013 07:19
An: Greg Sloop
Cc: samba@lists.samba.org
Betreff: Re: [Samba] samba4 PDC to BDC file replication

Hi Greg,

Thanks for the info, its a tough one. I was hoping the msdsf would replicate
data but it appears it doesnt appear to or am i missing something?

I used a program in the past called File replication pro on Suse/novell  and
it worked. I haave emailed their support and asked if it will work in our
situation.

I am going to give it a go in the Samba4 test environment over the weekend,
ill let you know if it works.

On Fri, Mar 1, 2013 at 3:13 PM, Gregory Sloop gr...@sloop.net wrote:


 CW I have built two samba4 boxes, one as a PDC and the as a DC, all
 working
 CW perfectly. If I create a user through the mmc snapin then turn off 
 CW the
 PDC,
 CW I can still login to the domain using the DC which is great. The
 problem is
 CW their files and ntfs permissions on BDC.

 CW I have assigned user and group rights using windows explorer to 
 CW certain folders, i.e granted user1 full permissions to that folder

 CW The problem I have is trying to replicate/snc the users data/files
 from PDC
 CW to DC whilst keeping the NTFS permissions that have been set. 
 CW Rysnc
 doesnt
 CW seem to keep the ntfs permissions

 CW The reason for this is if the PDC goes down, user logs on using 
 CW the DC
 and
 CW can access their files which have retained their files and
permissions.

 CW Is there some way to achieve this?

 I'm in the same boat, and I'm only aware of two possibilities.

 1) Robocopy - using a Windows client.
BUT Robocopy doesn't do file deltas - changed files are copied in
their entirety. Which isn't a problem if you don't have large
files. But if you've got a 10G file that changes often, then this
probably isn't the best alternative.

 2) http://www.bvckup.com/support/ [Bvckup]
This also appears to be a Windows utility, but does handle file
delta's. I have never used this tool and so can't vouch for it in any
way.

 If you find a functional solution, that preferably can be used on the 
 two Linux/Samba boxes to do file-deltas and still maintain the 
 permissions - that would be best.

 One other option that might work:
 Rsync the data, and use robocopy to simply duplicate the permissions 
 structure. [I believe this is possible.]

 This last idea sounds bat$hit insane - but hey, it might actually work 
 reasonably well. :)

 -Greg


--
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