When trying to replicate between two DCs, the “Device timeout” problem always occurs.
root@dc002:~# samba-tool drs replicate DC002 DC1 DC=campus,DC=sertao,DC=ifrs,DC=edu,DC=br --full-sync -d10
ERROR(<class 'samba.drs_utils.drsException'>): DsReplicaSync failed - drsException: DsReplicaSync failed (3221225653, '{Device Timeout} The specified I/O operation on %hs was not completed before the time-out period expired.')
File "/usr/lib/python3/dist-packages/samba/netcmd/drs.py", line 567, in run
drs_utils.sendDsReplicaSync(server_bind, server_bind_handle, source_dsa_guid, NC, req_options)
File "/usr/lib/python3/dist-packages/samba/drs_utils.py", line 100, in sendDsReplicaSync
raise drsException("DsReplicaSync failed %s" % estr)
I had already tried several of the options in the link you shared.
This is my link to the samba list, but I’ve had no success with it either.
I’ve checked the MTU of all the DCs and they’re all 1500.
Unfortunately, not yet!
Could I use the command below to replicate? samba-tool drs replicate --local dc1 200.132.xxx.xxx 'DC=campus,DC=sertao,DC=ifrs,DC=edu,DC=br' -P -U Administrator -k no
Is there any other way to debug replication besides setting -d10?
The whole problem was in the replication time. If the --async-op option is not used, samba sets a 5 minute timeout and then ends the replication process.