How long does it take to resize a 200 GB SQL database by 50%?

We have a 200 GB production system which I'd like to resize to 300 GB.  Approximately how long does it take to resize the database and what will be the impact on my users?    Also, please confirm that this can be done without taking the database offline.
PetEdgeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Scott PletcherSenior DBACommented:
You can do it without prevent others from using the db.  They might see some slowdown, depending on the disk subsystem's capacity.

How long will directly depend on disk speed and how much data SQL has to move to 'repack' existing data into a smaller space.  There's no way to generically state how long it will take.
0
Brendt HessSenior DBACommented:
How long this expansion would take depends on so many factors - how busy is the disk subsystem, how fragmented is the disk subsystem, how fast is the disk subsystem - notice a common feature? The disk subsystem performance is very important! But other subsystems (memory, CPU, etc) also have an effect.  The optimal speed would happen when you had the most cpu and memory free, on a totally defragmented disk with continuous free space blocks of 100GB or more.

Without knowing a lot about the technical specifications of your system, and probably without having used a comparable system, I can not provide an accurate estimate.  The good news? This can be done online.

My recommendation would be to perform this at the slowest point on your system (disk, cpu, and memory), with the data location as clean, defragmented, and contiguous as possible.
0
Anthony PerkinsCommented:
i cannot imagine it would take longer than 15 minutes even on a slow system.  But as everyone has pointed out it depends.  One of the biggest boosts you can have is if you have enabled IFI.   See here for an article on the subject:
How and Why to Enable Instant File Initialization  But I suspect that if you are asking then it is probably not enabled or you would have pointed it out.

Having said all of this.  Try increasing it by say 20GB and see how long it takes.  As has been mentioned you cannot automatically assume it will take you 5x to reach 100GB, but it should give you a good idea.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Scott PletcherSenior DBACommented:
CORRECTION:

Oops, I misread/misunderstood.  I assumed you were trying to shrink from 200GB to 100GB.

Increasing from 200GB to 300GB will be virtually instantaneous if IFI is on.  If not, the time will vary according to disk speed.
0
PetEdgeAuthor Commented:
Thanks all.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.