Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Snapshot size is tooo large Expand / Collapse
Author
Message
Posted Wednesday, January 29, 2014 7:04 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 9:08 AM
Points: 227, Visits: 719
Hi Team,

My sql server backup size is 500mb, i've created a snapshot on the same database,
but the size of snapshot is 4GB.

Please help...
Post #1535891
Posted Wednesday, January 29, 2014 7:09 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 3:25 PM
Points: 43,008, Visits: 36,164
How are you determining that?


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1535892
Posted Wednesday, January 29, 2014 7:14 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 9:08 AM
Points: 227, Visits: 719

This is the first time i've created snapshot, i want to know that is snapshot size is more than the Database?

here my snapshot size is almost 8 times the database.


Please suggest
Post #1535899
Posted Wednesday, January 29, 2014 7:32 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 3:25 PM
Points: 43,008, Visits: 36,164
A snapshot size cannot be larger than the database it's a snapshot of. Hence why I asked how you're checking size and what values you're looking at where.


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1535914
Posted Wednesday, January 29, 2014 8:55 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 9:08 AM
Points: 227, Visits: 719

Creating snapshot using below code...


create database Unify_snapshot on (
name = Unify_data,
filename = 'd:\Unify_Data\sn\Unify_snapshot.ss')
as snapshot of Unify;



and the fule "Unify_snapshot.ss" size is showing 4GB.
Post #1535959
Posted Wednesday, January 29, 2014 10:18 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 3:25 PM
Points: 43,008, Visits: 36,164
Minnu (1/29/2014)
and the fule "Unify_snapshot.ss" size is showing 4GB.


Where is it showing 4GB? What are you checking, looking at or running to get the size of the file?



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1536020
Posted Wednesday, January 29, 2014 10:34 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Today @ 1:51 PM
Points: 3,136, Visits: 11,491
Database snapshot files are sparse files that show an allocated size the same size as the database file that are a snapshot of, but typically use much less space on disk.

If you open Windows Explorer, right click on the snapshot file, and click properties, you will see numbers for "Size", and "Size on Disk".

The "Size on Disk" is the amount of space that it is actually using, while the "Size" is the size it will grow to if necessary.

The size of the database backup file is related to the amount of data in the database, not the size of the database files.

Post #1536032
Posted Thursday, January 30, 2014 3:42 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Today @ 9:08 AM
Points: 227, Visits: 719

Physical size of my actual backup is showing :500 MB

Physical size of my snapshot is showing : 4 GB.

Is a snapshot will take that much size?

Please clarify...
Post #1536235
Posted Thursday, January 30, 2014 3:49 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 3:25 PM
Points: 43,008, Visits: 36,164
GilaMonster (1/29/2014)
Where is it showing 4GB? What are you checking, looking at or running to get the size of the file?


Post your query or screenshot or whatever else is showing you that.

Also, what is the size of the database that the snapshot is of? (Not the backup size, the database size)



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1536237
Posted Thursday, January 30, 2014 9:28 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Monday, August 18, 2014 3:04 AM
Points: 1,362, Visits: 15,269
Minnu (1/30/2014)

Physical size of my actual backup is showing :500 MB


Is this a native compressed backup? Backups have no bearing on the size of a snapshot. They are completely different.

Minnu (1/30/2014)

Physical size of my snapshot is showing : 4 GB.


How large is the actual database? A snapshot of a DB uses sparse files which could have you confused over the actual size on disk.
Post #1536417
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse