Symptoms
A SQL Server 2008 database having filestream enabled is in either recovery or being restored fails with below error
Error: 17207, Severity: 16, State: 1
STREAMFCB::Startup: Operating system error 0xc01c0012(failed to retrieve text for this error. Reason: 317) occurred while creating or opening file 'i:\FileStream\OpsFileStream'. Diagnose and correct the operating system error, and retry the operation.
Error: 17204, Severity: 16, State: 1
FCB::Startup () failed: Could not open file i:\FileStream\OpsFileStream for file number 65537. OS error: 0xc01c0012(failed to retrieve text for this error. Reason 317).
Error: 5105, Severity: 16, State: 14.
A file activation error occurred. The physical file name 'i:\FileStream\OpsFileStream' may be incorrect. Diagnose and correct additional errors, and retry the operation.
The issue most likely will happen after SQL Server is restarted or it terminated abnormally.