Restore Log with Standby Mode on Virtual VHDX disk cause a 9004 error in SQL Server 2014 ( test performed on Web edition and Standard version )
Similar Bug for SQL 2008R2 is already registered with number hotfixKB2987585
Restore operations always fail in Hyper-V R2 Server in situations ( text copied fromKB2987585 page )
- The primary database has its transaction log file (.ldf) stored on a disk that has "Bytes per Physical Sector" set as 512 bytes.
- You take the transaction log backups of this database, and then you try to restore it by using the standby option on the secondary database.
- The secondary database transaction log file (.ldf) is located on a VHDX disk that has "Bytes per Physical Sector" set as 4,096 bytes.
In this scenario, the restore operation fails and returns the following error message:
Error: 9004, Severity: 16, State: 6.
An error occurred while processing the log for database '<databasename>'. If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.
After this error occurs, the secondary database goes into a suspect state.
So restore from Generation1 to Generation2 machine ( where only VHDX disk is possible ) always fails and database is not accessible.
Please create hotfix for SQL 2014 version