SQL Server Central is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
Search:  
 
 

Managing Disk Space

By Steve Jones, 2008/05/02

Total article views: 115 | Views in the last 30 days: 115

Lately it seems that there are a lot of newer DBAs/developers working with SQL Server. I tend to see these trends in our forums where there are a lot of beginner questions for awhile and then it tapers off. And they are the same types of questions I've been answering for years, so I can get an idea of someone's experience level by which questions they answer.

One of the main topics lately seems to do with database sizing. I see questions on how to estimate space, why is the log so large, how do I shrink a database (you shouldn't), and other similar questions.

I thought this was a fairly basic skill, but perhaps not. So for the Friday poll:

How often should one expand space?

Or how often do you expand space. Do you track usage? Growth? Do you know which tables are growing fastest?

I used to track table sizes over time, so I knew how fast each table was growing. For the most part this turned out to be a waste of time because most tables don't grow much, a few do, and so it didn't make sense to track each table's growth.

However I did think it made sense to track database sizes. I tended to do this by tracking backup sizes for a couple reasons. The first is that comparing the daily backup size to the previous day's allowed me to catch any strange loads of data. If there was more than a 10-20% growth (depending on the db), I raised a flag to myself and would check on things.

The second reason is that it gave me some history that allowed me to plan for space needs for the database. I didn't track server space because databases occassionally get moved to other servers, so the database history is more important.

However for databases, my goal was to guess how much space I'd need for 6 months, add a pad, and then grow the database to that size. That way I didn' have to worry about sizes and could manage the space twice a year. I did have alerts set up to notify me if I was running low on space and autogrow was turned on for emergencies, but my goal was to proactively, albeit rarely, manage the space myself. These days I might shorten that interval and look to actively grow databases every 3-4 months with better tools and larger database sizes.

Let us know what your thoughts are and what techniques you've found that work well.

Steve Jones


The Voice of the DBA Podcasts

Everyday Jones

The podcast feeds are now available at sqlservercentral.podshow.com to get better bandwidth and maybe a little more exposure :). Comments are definitely appreciated and wanted, and you can get feeds from there.

Overall RSS Feed: or now on iTunes!

Today's podcast features music by Everyday Jones. No relation, but I stumbled on to them and really like the music. Support this great duo at www.everydayjones.com.

I really appreciate and value feedback on the podcasts. Let us know what you like, don't like, or even send in ideas for the show. If you'd like to comment, post something here. The boss will be sure to read it.

By Steve Jones, 2008/05/02

Total article views: 115 | Views in the last 30 days: 115
Your response
 
 
Related tags

Editorial    
 
Related content

What Should A DBA Be Doing?

By Steve Jones | Category: Editorial
(not yet rated) | 620 reads

Not Just At Home

By Steve Jones | Category: Editorial
(not yet rated) | 235 reads

Dog Food

By Steve Jones | Category: Editorial
(not yet rated) | 145 reads

Halo 3

By Steve Jones | Category: Editorial
(not yet rated) | 158 reads
Already registered?  

Free registration required

To read the rest of this article, and access thousands of other articles, we ask you to register on the site and subscribe to our newsletters.

Register

E-mail address:
Password:
Password (confirm):

  

Subscriptions

We ask you to register on the site and subscribe to our newsletters. Subscribing to our newsletters gets you:

  • ALL of our content (thousands of articles, scripts, and forum postings)
  • A daily newsletter (example)
  • A weekly news round up (example)
  • The opportunity to ask and answer questions in our forums
  • A daily Question of the Day to test and help you increase your knowledge of SQL Server.

We ask that you give the newsletter a try for a week. Over 200,000 SQL Server Professionals a day find it entertaining and useful. If not, you are welcome to unsubscribe at anytime.

Steve Jones
Editor, SQLServerCentral.com