[Samba] sysvol replication via unison
Anton Shevtsov
shevtsovay at basealt.ru
Tue Aug 30 11:13:14 UTC 2022
Hi,
Tried sysvol replication with unison -
https://wiki.samba.org/index.php/Bidirectional_Rsync/Unison_based_SysVol_replication_workaround
But get error on GPT.INI always..
/usr/bin/rsync -XAavz --log-file /var/log/sysvol-sync.log --delete-after
-f"+ */" -f"- *" /var/lib/samba/sysvol root at dc2:/var/lib/samba &&
/usr/bin/unison
building file list ... done
sent 1.225 bytes received 11 bytes 2.472,00 bytes/sec
total size is 0 speedup is 0,00
Unison 2.51.3 (ocaml 4.12.0): Contacting server...
Connected [//dc1.test.alt//var/lib/samba -> //dc2.test.alt//var/lib/samba]
Looking for changes
Waiting for changes from server
Reconciling changes
new file ---->
sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI
new file ---->
sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI
Propagating updates
UNISON 2.51.3 (OCAML 4.12.0) started propagating changes at 16:11:36.77
on 30 Aug 2022
[BGN] Copying
sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI
from /var/lib/samba to //dc2.test.alt//var/lib/samba
/usr/bin/rsync -XAavz --rsh='ssh -p 22' --inplace --compress
'/var/lib/samba/sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI'
'root at dc2:'\''/var/lib/samba/sysvol/test.a
lt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/.unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp'\'''
Failed: External copy program did not create target file (or bad
length): .unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp
[BGN] Copying
sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI
from /var/lib/samba to //dc2.test.alt//var/lib/samba
Failed
[sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI]:
External copy program did not create target file (or bad length):
.unison.GPT.INI.ce56f4b547d3de696152a1d634e0
20c0.unison.tmp
/usr/bin/rsync -XAavz --rsh='ssh -p 22' --inplace --compress
'/var/lib/samba/sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI'
'root at dc2:'\''/var/lib/samba/sysvol/test.a
lt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/.unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp'\'''
Failed: External copy program did not create target file (or bad
length): .unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp
Failed
[sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI]:
External copy program did not create target file (or bad length):
.unison.GPT.INI.ce56f4b547d3de696152a1d634e0
20c0.unison.tmp
UNISON 2.51.3 (OCAML 4.12.0) finished propagating changes at 16:11:36.94
on 30 Aug 2022
Saving synchronizer state
Synchronization incomplete at 16:11:36 (0 items transferred, 0 skipped,
2 failed)
failed:
sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI
failed:
sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI
Looking for changes
Waiting for changes from server
Reconciling changes
new file ---->
sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI
new file ---->
sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI
Propagating updates
UNISON 2.51.3 (OCAML 4.12.0) started propagating changes at 16:11:36.94
on 30 Aug 2022
[BGN] Copying
sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI
from /var/lib/samba to //dc2.test.alt//var/lib/samba
/usr/bin/rsync -XAavz --rsh='ssh -p 22' --inplace --compress
'/var/lib/samba/sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI'
'root at dc2:'\''/var/lib/samba/sysvol/test.a
lt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/.unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp'\'''
Failed: External copy program did not create target file (or bad
length): .unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp
[BGN] Copying
sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI
from /var/lib/samba to //dc2.test.alt//var/lib/samba
Failed
[sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI]:
External copy program did not create target file (or bad length):
.unison.GPT.INI.ce56f4b547d3de696152a1d634e0
20c0.unison.tmp
/usr/bin/rsync -XAavz --rsh='ssh -p 22' --inplace --compress
'/var/lib/samba/sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI'
'root at dc2:'\''/var/lib/samba/sysvol/test.a
lt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/.unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp'\'''
Failed: External copy program did not create target file (or bad
length): .unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp
Failed
[sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI]:
External copy program did not create target file (or bad length):
.unison.GPT.INI.ce56f4b547d3de696152a1d634e0
20c0.unison.tmp
UNISON 2.51.3 (OCAML 4.12.0) finished propagating changes at 16:11:37.12
on 30 Aug 2022
Saving synchronizer state
Synchronization incomplete at 16:11:37 (0 items transferred, 0 skipped,
2 failed)
failed:
sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI
failed:
sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI
Looking for changes
Waiting for changes from server
Reconciling changes
new file ---->
sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI
new file ---->
sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI
Propagating updates
UNISON 2.51.3 (OCAML 4.12.0) started propagating changes at 16:11:37.12
on 30 Aug 2022
[BGN] Copying
sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI
from /var/lib/samba to //dc2.test.alt//var/lib/samba
/usr/bin/rsync -XAavz --rsh='ssh -p 22' --inplace --compress
'/var/lib/samba/sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI'
'root at dc2:'\''/var/lib/samba/sysvol/test.a
lt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/.unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp'\'''
Failed: External copy program did not create target file (or bad
length): .unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp
[BGN] Copying
sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI
from /var/lib/samba to //dc2.test.alt//var/lib/samba
Failed
[sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI]:
External copy program did not create target file (or bad length):
.unison.GPT.INI.ce56f4b547d3de696152a1d634e0
20c0.unison.tmp
/usr/bin/rsync -XAavz --rsh='ssh -p 22' --inplace --compress
'/var/lib/samba/sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI'
'root at dc2:'\''/var/lib/samba/sysvol/test.a
lt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/.unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp'\'''
Failed: External copy program did not create target file (or bad
length): .unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp
Failed
[sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI]:
External copy program did not create target file (or bad length):
.unison.GPT.INI.ce56f4b547d3de696152a1d634e0
20c0.unison.tmp
UNISON 2.51.3 (OCAML 4.12.0) finished propagating changes at 16:11:37.29
on 30 Aug 2022
Saving synchronizer state
Synchronization incomplete at 16:11:37 (0 items transferred, 0 skipped,
2 failed)
failed:
sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI
failed:
sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI
Looking for changes
Waiting for changes from server
Reconciling changes
new file ---->
sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI
new file ---->
sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI
Propagating updates
UNISON 2.51.3 (OCAML 4.12.0) started propagating changes at 16:11:37.29
on 30 Aug 2022
[BGN] Copying
sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI
from /var/lib/samba to //dc2.test.alt//var/lib/samba
/usr/bin/rsync -XAavz --rsh='ssh -p 22' --inplace --compress
'/var/lib/samba/sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI'
'root at dc2:'\''/var/lib/samba/sysvol/test.a
lt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/.unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp'\'''
Failed: External copy program did not create target file (or bad
length): .unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp
[BGN] Copying
sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI
from /var/lib/samba to //dc2.test.alt//var/lib/samba
Failed
[sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI]:
External copy program did not create target file (or bad length):
.unison.GPT.INI.ce56f4b547d3de696152a1d634e0
20c0.unison.tmp
/usr/bin/rsync -XAavz --rsh='ssh -p 22' --inplace --compress
'/var/lib/samba/sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI'
'root at dc2:'\''/var/lib/samba/sysvol/test.a
lt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/.unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp'\'''
Failed: External copy program did not create target file (or bad
length): .unison.GPT.INI.ce56f4b547d3de696152a1d634e020c0.unison.tmp
Failed
[sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI]:
External copy program did not create target file (or bad length):
.unison.GPT.INI.ce56f4b547d3de696152a1d634e0
20c0.unison.tmp
UNISON 2.51.3 (OCAML 4.12.0) finished propagating changes at 16:11:37.47
on 30 Aug 2022
Saving synchronizer state
Synchronization incomplete at 16:11:37 (0 items transferred, 0 skipped,
2 failed)
failed:
sysvol/test.alt/Policies/{31B2F340-016D-11D2-945F-00C04FB984F9}/GPT.INI
failed:
sysvol/test.alt/Policies/{6AC1786C-016F-11D2-945F-00C04FB984F9}/GPT.INI
What i can do wrong? How fix it?
--
Anton
More information about the samba
mailing list