ssue:
While creating a copy of the database on the 2nd server, we got the following errors.
1st Error
The seeding operation failed. Error: An error occurred while performing the seed operation. Error: Failed to notify source server “server fqdn ” about the local truncation point. Hresult: 0xc8000713. Error: Unable to find the file.
2nd error
Failed to open a log truncation context to source server. Hresult: 0xc7ff1004. Error: Error returned from an ESE function call (-1305).
Resolution:
This is the issue with the old logs folder which was not in the sync.
For the 1st error.
-Login to the source server (登录到源服务器)
-Remove the 2nd copy of the database(删除目的服务器已复制的文件夹)
-Dismount the database(ECP中卸载数据库)
-Verify database is clean shutdown by running the command (使用以下命令 确保数据库state 为 clean shutdown)
eseutil /mh driveletter:\database\database.edb
-Move all logs file to new folder.(注意 除了edb文件之外的 jsr和txt等等 全部移动到该目录下新建的文件夹中)
-Now rename the logs file folder to logs old.
-Mount the database(装载数据库)
-Now the 1st issue will be fixed.
For the 2nd error.
-Login to the destination server where we are creating the 2nd copy
-Now rename the logs and database file folder by adding old prefix.
-Add the 2nd database copy.
-Now the 2nd issue will be fixed.
This environment was not backed up so there was a time when circular logging was enabled then disabled. After this one of the administrator messed up the database copies while expanding the C drive.
Conclusion:
This most important thing is to remember the error and its code because error will not clearly tell you the cause of the issue.
Next important thing is to take all precaution even if the environment is not in production.