Failure restoring Samba hierarchy
Failure of a Samba hierarchy restore can leave the daemon processes smbd and nmbd running. (The restore operation is initiated via the completion of a create, failover, or manual switchover, or via a local recovery caused by a connection failure to smbd and nmbd.) If the daemons are not stopped and restarted after the problem is corrected, and the restore is attempted again, the restore could fail again.
Correct the cause of the connection failure (for instance, an incorrect mask setup for the interfaces directive). Next, manually stop the smbd and/or nmbd daemons. Then bring the hierarchy in service, or re-create the hierarchy if the failure occurred during creation.
Stopping the daemons ensures that a re-read of the configuration file occurs during the restore.