Min Wai Chan
2015-Jun-18 18:04 UTC
[Samba] Bi-directional sync for Sysvol folder -- Osync?
Hello all, Just to ask have anyone try osync before? https://github.com/deajan/osync And would you think that this will fix our issue on https://wiki.samba.org/index.php/SysVol_Bidirectional_Replication Where DC2 files or folder will be removed? Thank You.
L.P.H. van Belle
2015-Jun-19 06:53 UTC
[Samba] Bi-directional sync for Sysvol folder -- Osync?
Hai Min Wai Chan, i'll go have a look in osync.. and how do you mean fixour issue? Can you explain more so i can have a look into that. which version are you running.. latest is : 2015-04-30: 1.0.6 these where the last changes : # 2014-05-02: 1.0 : im considering this stable, but use at own risk. # 2014-05-09: 1.01 : missed sysvol in the cron line. ( sysvol-sync ) # 2014-06-23: 1.02 : added Extra Variable to make sure syncing is done correct. # 2015-02-19: 1.0.3: correction in the setup/copy of the sysvol. ( no more /home/samba/sysvol/sysvol ) # 2015-02-24: 1.0.4: corrected the mixed up of PATH and BASE in line 97 ( now relly no more double sysvol ) # 2015-04-29: 1.0.5: added extra copy of idmap.ldb, to make sure the uids/gids on both servers are correct. # samba 4.2.1 did complain about wrong uid/gids in the sync. # copy of sysvol did not always work, fixed it, # removed the copy of sysvol on dc2, due to above fixed not needed anymore. # 2015-04-30: 1.0.6: small problems where detected with the idmap, as suggestedby achim, # gencache.tdb is remove before startingsamba again.>-----Oorspronkelijk bericht----- >Van: dcmwai at gmail.com [mailto:samba-bounces at lists.samba.org] >Namens Min Wai Chan >Verzonden: donderdag 18 juni 2015 20:04 >Aan: samba at lists.samba.org >Onderwerp: [Samba] Bi-directional sync for Sysvol folder -- Osync? > >Hello all, > >Just to ask have anyone try osync before? >https://github.com/deajan/osync > >And would you think that this will fix our issue on >https://wiki.samba.org/index.php/SysVol_Bidirectional_Replication > >Where DC2 files or folder will be removed? > >Thank You. >-- >To unsubscribe from this list go to the following URL and read the >instructions: https://lists.samba.org/mailman/options/samba > >
Min Wai Chan
2015-Jun-21 17:23 UTC
[Samba] Bi-directional sync for Sysvol folder -- Osync?
Dear Belle, I think I'm using the 1.02 Version as we post question on Feb. But I don't think there are much different At least when I see from the cron script and also the unison default.prf I think this script have 2 major issue. 1. DC1 will Remove any empty directory on DC1 2. DC1 will overwrite any users/group change on DC2 the last issue I see is that cron.d are sending mail every 5 mins..(but I think that can be solved) I've not try osync before... but it look promising... Regards, Min Wai On Fri, Jun 19, 2015 at 2:53 PM, L.P.H. van Belle <belle at bazuin.nl> wrote:> Hai Min Wai Chan, > > i'll go have a look in osync.. > and how do you mean fixour issue? Can you explain more so i can have a > look into that. > > which version are you running.. > latest is : 2015-04-30: 1.0.6 > > these where the last changes : > # 2014-05-02: 1.0 : im considering this stable, but use at own risk. > # 2014-05-09: 1.01 : missed sysvol in the cron line. ( sysvol-sync ) > # 2014-06-23: 1.02 : added Extra Variable to make sure syncing is done > correct. > # 2015-02-19: 1.0.3: correction in the setup/copy of the sysvol. ( no more > /home/samba/sysvol/sysvol ) > # 2015-02-24: 1.0.4: corrected the mixed up of PATH and BASE in line 97 ( > now relly no more double sysvol ) > # 2015-04-29: 1.0.5: added extra copy of idmap.ldb, to make sure the > uids/gids on both servers are correct. > # samba 4.2.1 did complain about wrong uid/gids in the > sync. > # copy of sysvol did not always work, fixed it, > # removed the copy of sysvol on dc2, due to above fixed > not needed anymore. > # 2015-04-30: 1.0.6: small problems where detected with the idmap, as > suggestedby achim, > # gencache.tdb is remove before > startingsamba again. > > > > >-----Oorspronkelijk bericht----- > >Van: dcmwai at gmail.com [mailto:samba-bounces at lists.samba.org] > >Namens Min Wai Chan > >Verzonden: donderdag 18 juni 2015 20:04 > >Aan: samba at lists.samba.org > >Onderwerp: [Samba] Bi-directional sync for Sysvol folder -- Osync? > > > >Hello all, > > > >Just to ask have anyone try osync before? > >https://github.com/deajan/osync > > > >And would you think that this will fix our issue on > >https://wiki.samba.org/index.php/SysVol_Bidirectional_Replication > > > >Where DC2 files or folder will be removed? > > > >Thank You. > >-- > >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 >
L.P.H. van Belle
2015-Jun-22 06:43 UTC
[Samba] Bi-directional sync for Sysvol folder -- Osync?
Hello Min Wai Chan, ? Can you explain more about,, the DC1 will remove any emptey directory on DC1. tested it here, but that does not occure here. i can create empty directories on DC1, and these are synced to DC2. empty or not. ? ?DC1 will overwrite any users/group change on DC2? if setup correctly, your sysvol rights on DC1 and DC2 are the same.. ? i suggest you to the following. get the latest version of the script. stop samba on both dcs. copy idmap from DC1 to DC2, and start up again. these last steps are in the latest?script also. ? Greetz, ? Louis ? ? Van: Min Wai Chan [mailto:dcmwai at gmail.com] Verzonden: zondag 21 juni 2015 19:23 Aan: L.P.H. van Belle CC: samba at lists.samba.org Onderwerp: Re: [Samba] Bi-directional sync for Sysvol folder -- Osync? Dear Belle, I think I'm using the 1.02 Version as we post question on Feb. But I don't think there are much different At least when I see from the cron script and also the unison default.prf I think this script have 2 major issue. 1. DC1 will Remove any empty directory on DC1 2. DC1 will overwrite any users/group change on DC2? the last issue I see is that cron.d are sending mail every 5 mins..(but I think that can be solved) I've not try osync before... but it look promising... Regards, Min Wai On Fri, Jun 19, 2015 at 2:53 PM, L.P.H. van Belle <belle at bazuin.nl> wrote: Hai Min Wai Chan, i'll go have a look in osync.. and how do you mean fixour issue? Can you explain more so i can have a look into that. which version are you running.. latest is : 2015-04-30: 1.0.6 these where the last changes : # 2014-05-02: 1.0 :? im considering this stable, but use at own risk. # 2014-05-09: 1.01 : missed sysvol in the cron line. ( sysvol-sync ) # 2014-06-23: 1.02 : added Extra Variable to make sure syncing is done correct. # 2015-02-19: 1.0.3: correction in the setup/copy of the sysvol. ( no more /home/samba/sysvol/sysvol ) # 2015-02-24: 1.0.4: corrected the mixed up of PATH and BASE in line 97 ( now relly no more double sysvol ) # 2015-04-29: 1.0.5: added extra copy of idmap.ldb, to make sure the uids/gids on both servers are correct. #? ? ? ? ? ? ? ? ? ? samba 4.2.1 did complain about wrong uid/gids in the sync. #? ? ? ? ? ? ? ? ? ? copy of sysvol did not always work, fixed it, #? ? ? ? ? ? ? ? ? ? removed the copy of sysvol on dc2, due to above fixed not needed anymore. # 2015-04-30: 1.0.6: small problems where detected with the idmap, as suggestedby achim, #? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? gencache.tdb is remove before startingsamba again.>-----Oorspronkelijk bericht----- >Van: dcmwai at gmail.com [mailto:samba-bounces at lists.samba.org] >Namens Min Wai Chan >Verzonden: donderdag 18 juni 2015 20:04 >Aan: samba at lists.samba.org >Onderwerp: [Samba] Bi-directional sync for Sysvol folder -- Osync? > >Hello all, > >Just to ask have anyone try osync before? >https://github.com/deajan/osync > >And would you think that this will fix our issue on >https://wiki.samba.org/index.php/SysVol_Bidirectional_Replication > >Where DC2 files or folder will be removed? > >Thank You.>-- >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