Solved

Problem with backing up sql server

Posted on 2013-12-12
4
6,862 Views
Last Modified: 2013-12-12
Hi,

We just moved a a sql database from a server to another. When we try to backup the database we get the following error message:


TITLE: Microsoft SQL Server Management Studio
------------------------------

Backup failed for Server 'INTRANET'.  (Microsoft.SqlServer.SmoExtended)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.3000.0+((SQL11_PCU_Main).121019-1325+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Backup+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

System.Data.SqlClient.SqlError: Cannot use the backup file 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\myrornaDB.bak' because it was originally formatted with sector size 4096 and is now on a device with sector size 512. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.3000.0+((SQL11_PCU_Main).121019-1325+)&LinkId=20476


Anyone of you expert ts that have a solution?

Peter
0
Comment
Question by:peternordberg
4 Comments
 
LVL 19

Assisted Solution

by:jss1199
jss1199 earned 167 total points
ID: 39714897
Are you appending to an existing backup file?  Try backing up to a new file.
0
 
LVL 8

Assisted Solution

by:virtuadept
virtuadept earned 166 total points
ID: 39714898
What if you remove that file and let it create a new backup file on the new server?

C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\myrornaDB.bak

Seems like it is trying to re-use the file but can't because:

it was originally formatted with sector size 4096 and is now on a device with sector size 512

Maybe if that file was not there it would make a new file with the right sector size.
0
 
LVL 3

Accepted Solution

by:
Jerry_Justice earned 167 total points
ID: 39714903
When you moved SQL, did you move this backup file along with the database?

If so, simply rename myrornaDB.bak to something else.  It sounds like it is trying to write to the same backup set and it can't because of the different sector size.  If you rename or delete the existing myrornaDB.bak, it will create a new one.

Personally, I prefer each back up to go to a new file with the date embedded in the file name.  It looks like you are using a batch file or scheduled task to backup to the same file every time.
0
 

Author Closing Comment

by:peternordberg
ID: 39714923
Hi,

I created a totally new backup set and then it worked. Thanks all.

Peter
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now