SQL DBs with HyperBac files suspect after server restart
cnilsson
Posts: 9
Over the last three times we have rebooted servers with files in the SQL Storage Compress/HyperBac format, we have had trouble with databases after the restart.
The first time it happened, it was a replication subscriber database (all tables published) that functions as a reporting database and disaster recovery db. I tried to use ALTER DATABASE [name] SET ONLINE but no go, so I ended up restoring and rebuilding replication to recover.
It happened again with more than one database on more than one server during the restarts after Windows Updates a weekend ago. On one SQL server three databases came back as "in recovery" but after a couple of hours two of them finished recovering on their own before I had to do anything. The other one was the same database as before, and again I had to restore it, but this time I was able to reinitialize rather than having to rebuild replication from the ground up.
One of the SQL Servers that I rebooted this weekend turned out fine, but at least one HyperBac database on each of the other SQL Servers had to be fixed.
So my questions are: are there any steps that we can take to mitigate this, or to keep it from happening? Would it help to say stop all processes (SQL Replication, SQL Agent jobs doing logshipping, other SQL Agent jobs, Windows Scheduled Tasks) and disable them so nothing is active when the reboot happens? Do I need to move all of my dbs out of SQL Storage Compress and stop using the software?
Any ideas?
Thanks.
Chris Nilsson
Senior Systems Engineer
Altos Solutions
The first time it happened, it was a replication subscriber database (all tables published) that functions as a reporting database and disaster recovery db. I tried to use ALTER DATABASE [name] SET ONLINE but no go, so I ended up restoring and rebuilding replication to recover.
It happened again with more than one database on more than one server during the restarts after Windows Updates a weekend ago. On one SQL server three databases came back as "in recovery" but after a couple of hours two of them finished recovering on their own before I had to do anything. The other one was the same database as before, and again I had to restore it, but this time I was able to reinitialize rather than having to rebuild replication from the ground up.
One of the SQL Servers that I rebooted this weekend turned out fine, but at least one HyperBac database on each of the other SQL Servers had to be fixed.
So my questions are: are there any steps that we can take to mitigate this, or to keep it from happening? Would it help to say stop all processes (SQL Replication, SQL Agent jobs doing logshipping, other SQL Agent jobs, Windows Scheduled Tasks) and disable them so nothing is active when the reboot happens? Do I need to move all of my dbs out of SQL Storage Compress and stop using the software?
Any ideas?
Thanks.
Chris Nilsson
Senior Systems Engineer
Altos Solutions
Comments
To mitigate this, if you know a shutdown or restart is imminent (such as when Windows Updates are to be applied), you can take each of the compressed databases offline (using ALTER DATABASE or SSMS) prior to the shutdown. This will typically close down the files in a controlled manner, then recovery upon restart will be much faster.
Product Management - HyperBac Technologies
Red Gate Software
Is there some issue whereby when SQL Server is instructed to stop, the databases under HyperBac auspices cannot shutdown each and every time in a manner whereby a huge "recovering" window is not risked? If a "normal" shutdown cannot guarantee my databases will ALL be ready and available immediately upon restart, then I have no option but to suspect the technology that renders them "recovering". Taking 150GB databases potentially an hour to recover is untenable!
Can you alleviate my fears/suspicions whereby I DO NOT have to intervene to take my databases offline just so SQL Storage Compress doesn't mess up?
Decide wisely...
Decide wisely...
NEVER Use Storage Compress for productive Systems!!!
But after we buy this tool, we would like to use it, WITHOUT pulling out hairs.
Is this issue still being addressed?
Am I the only 1 seeing IN RECOVERY for at least 45 min after restart?
What is the current version others are successful with?
Product Management - HyperBac Technologies
Red Gate Software