autogrowth

  • I would like to know as a dba practice, do you setup the autogrow for file size to a restricted file growth or unrestricted file growth.

    Thanks

  • Personally, unrestricted with warnings that watch the drive(s) itself for space issues.


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • If you have the ability to receive alerts when disk space is getting low, then unrestricted growth makes sense.

    On the other hand, you don't want one out-of-control database to create problems for other databases on a shared server, so for some environments it makes sense to set a restricted size and monitor file usage carefully.

    Personally I receive alerts when a filegroup is getting full, and also when an autogrowth has occurred, so I get plenty of advance warning of potential space problems.

  • Reasoning for wanted to limit frequent file growth is because of the contention created by having to grow the data/log files on the disk(s). It's often best to choose an appropriate size in advance to minimize this growth, if the file does have to grown, consider choosing a large enough size in MB's so that it won't have to do it again.

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • This was removed by the editor as SPAM

  • Personally, unrestricted with lots and lots and lots of monitoring and alerts in place so that I can try to prevent the disks from filling up. Either approach has downsides. If you restrict the growth, you avoid filling the drive, but, you put a database into read only mode. Depending on the database in your system, that could be a resume generating event.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Thanks, currently we do have own DiskspaceCheck sql job to monitor the disk space.

    So we set it to unrestricted.

    But I see some people are using restricted method.

    I am curious if it is set to restricted size and if it is full, what will happen, does it generate any errors or an alert and notifiy DBA, how is this alert set up?

    You said the database will become to readonly, is it automatically change it readonly mode?

    Thanks

  • Yes & no. It just stops allowing writes. You get errors. Reads work fine. All writes stop because there's nowhere for them to go.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • So, it doesnot send any kind of alerts to DBA proactively?

  • I wasn't aware that SQL Server on it's own EVER sent anything to the DBA proactively. All monitoring has to be built or bought.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • sqlfriends (11/29/2012)


    So, it doesnot send any kind of alerts to DBA proactively?

    If you've configured alerts, you get alerts. If not, you don't (how would SQL intuit who to send alerts to?)

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    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
  • There are many SQL Server Events, SQL Performance Condition Alerts, as well as WMI Events that can be set up rather easily under SQL Server Agent >> Alerts.

    Settings up these alerts gives you the option to specify a response i.e. (notify a particular operator), and additionally specify if you want to Email, Page, or netsend the event should one occur.

    These are free 😛

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • Thanks, we do have sql agent alerts setup, I wonder if it is the Severity 17- insufficient resources that does the work?

    I never got the alert because we have a diskspace check job so I can take care of the space proactively.

    But just wonder it is the above insufficient resources alert will be triggered if there is no enough file space for mdf file and ldf file.

    Thanks,

  • If you create a custom alert for SQL Error # 1101 or 1105 (not sure exactly which is which, you can Google that) it will send you an alert should your data file become full and it is unable to grow

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • MyDoggieJessie (11/29/2012)


    If you create a custom alert for SQL Error # 1101 or 1105 (not sure exactly which is which, you can Google that) it will send you an alert should your data file become full and it is unable to grow

    in this case DBA will reactively respond there (DIsk is full now what to do :w00t:) , but here person should be informed proactively.

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

Viewing 15 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic. Login to reply