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

Manually Grow w/Multi files. Expand / Collapse
Author
Message
Posted Wednesday, June 23, 2010 5:31 PM


Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, June 3, 2014 10:50 AM
Points: 22, Visits: 292
We have a huge database with auto grow on, I am trying to setup a job to manually grow the database because the databse is always growing and locking things out. (not my setup)

Because of the size, there are two database files everytime I execute a command to grow the db I get this error:
Msg 1842, Level 16, State 1, Line 1
The file size, max size cannot be greater than 2147483647 in units of a page size. The file growth cannot be greater than 2147483647 in units of both page size and percentage.

Searching online showed nothing, only 3 or 4 pages from the net, most errors related to Sharepoint.

from sp_spaceused: The database_size: 29427824.94 MB unallocated space:506.73 MB

and from the sysfiles tables:
Size Grow Name:

2147481600 0 VSD
4380792 12800 VSD_log
1614899200 12800 VSD2

What does this mean, and how can I grow a database this large through a TSQL statement..?

Thanks,
-David
Post #942145
Posted Wednesday, June 23, 2010 7:29 PM


Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Today @ 8:09 AM
Points: 736, Visits: 3,728
Hello,

Can you let us know what are you trying to achieve by growing db ? What TSQL are you executing?

There is an option for growing your db in chuncks of MB or as percentage.

Let us know to help you better.

Cheers !


______________________________________________________________________________________________________________________________________________________________________________________
HTH !
Kin
MCTS : 2005, 2008
Active SQL Server Community Contributor
Post #942166
Posted Thursday, June 24, 2010 2:04 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:07 PM
Points: 42,812, Visits: 35,931
digdave7 (6/23/2010)
Because of the size, there are two database files everytime I execute a command to grow the db I get this error:
Msg 1842, Level 16, State 1, Line 1
The file size, max size cannot be greater than 2147483647 in units of a page size. The file growth cannot be greater than 2147483647 in units of both page size and percentage.


What command are you running?



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 #942289
Posted Thursday, June 24, 2010 7:30 PM


Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, June 3, 2014 10:50 AM
Points: 22, Visits: 292
I was using
ALTER DATABASE [XXXX] MODIFY FILE ( NAME = N'VSD2', SIZE = NumberBiggerThatbeforeKB )

Technically they are in filegroups, right now we can't even open the database properties because we get the conversaion failure error.
Post #942785
Posted Thursday, June 24, 2010 8:21 PM


Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Today @ 8:09 AM
Points: 736, Visits: 3,728
digdave7 (6/24/2010)
I was using
ALTER DATABASE [XXXX] MODIFY FILE ( NAME = N'VSD2', SIZE = NumberBiggerThatbeforeKB )

Technically they are in filegroups, right now we can't even open the database properties because we get the conversaion failure error.


The error message itself says "Msg 1842, Level 16, State 1, Line 1
The file size, max size cannot be greater than 2147483647 in units of a page size. The file growth cannot be greater than 2147483647 in units of both page size and percentage."

You are trying to grow the file size greater than 2147483647 which is a limitation.

Ref: http://www.sql-server-performance.com/faq/max_size_cannot_be_greater_than_2147483647_p1.aspx

HTH,

Cheers !


______________________________________________________________________________________________________________________________________________________________________________________
HTH !
Kin
MCTS : 2005, 2008
Active SQL Server Community Contributor
Post #942787
Posted Friday, June 25, 2010 1:14 AM
SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 8:50 AM
Points: 1,631, Visits: 5,578
If my calculations are correct, that means the file size limit is 16Tb (assuming 8kb pages). If that's the case, how has the OP's database file ended up at a smidgeon over 28Tb?
Post #942841
Posted Friday, June 25, 2010 1:24 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:07 PM
Points: 42,812, Visits: 35,931
digdave7 (6/24/2010)
I was using
ALTER DATABASE [XXXX] MODIFY FILE ( NAME = N'VSD2', SIZE = NumberBiggerThatbeforeKB )


With exactly what value for NumberBiggerThatbeforeKB ?



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 #942843
Posted Friday, June 25, 2010 1:27 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:07 PM
Points: 42,812, Visits: 35,931
digdave7 (6/23/2010)
from sp_spaceused: The database_size: 29427824.94 MB unallocated space:506.73 MB


Is that a correct output? Is the sum total of all the database files 29 427 824 MB? (29 427 GB, 29.4 TB)

If not, please run DBCC UPDATEUSAGE and see if the output of sp_spaceused changes?



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 #942844
Posted Tuesday, June 29, 2010 7:53 PM


Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, June 3, 2014 10:50 AM
Points: 22, Visits: 292
Hi Gail,

I ran
ALTER DATABASE [VSD] MODIFY FILE ( NAME = N'VSD', SIZE = 29864824 MB )

and this is the error again:
Msg 1842, Level 16, State 1, Line 1
The file size, max size cannot be greater than 2147483647 in units of a page size. The file growth cannot be greater than 2147483647 in units of both page size and percentage.

Oddly Enough the max size is close to the size of the first database file.
2147481600 VSD
1669644800 VSD2
Post #945151
Posted Wednesday, June 30, 2010 1:04 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:07 PM
Points: 42,812, Visits: 35,931
digdave7 (6/29/2010)
Hi Gail,

I ran
ALTER DATABASE [VSD] MODIFY FILE ( NAME = N'VSD', SIZE = 29864824 MB )


29 Terabytes? That's what the alter database you have there sets the file size to. Is that really the size that you want the file?

The maximum size of a database file is 16 terabytes, so I would fully expect that alter database to fail. If you really do have a database that's many terabytes in size, you'll have to add more files to the existing filegroups rather than grow existing files, as the hard limit on the size of a single file is 16 TB (16777216 MB)



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 #945239
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse