Samba-tool drs replicate error - {Device Timeout}


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/", 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/", line 100, in sendDsReplicaSync
    raise drsException("DsReplicaSync failed %s" % estr)

Execution with -d10

Could you help me?

Any idea what might be going on?


When I replicate with the sub-options below, the replication is successful.


When I leave only the domain “DC=campus,DC=sertao,DC=ifrs,DC=edu,DC=br” the error occurs.

Hi empbilly,

In the pastebin i read this:

3221225653, '{Device Timeout} The specified I/O operation on %hs was not completed before the time-out period expired

I sounds like that you have replications issues, you check that with the following knowledge base article:

And googled a bit for that issue:

Will that help you?

Kind regards,

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

Below is Rowland’s explanation on the samba list.