Re: Disk space usage



On Aug 22, 4:31 am, "luna" <lun...@xxxxxxxxxxx> wrote:
Whats the best practice for monitoring disk space and managing it
efficiently,
or what to look out for ?
(came in today to severe lack of diskspace - its a 700gig raid) (the data
folder is 279gig - also ive noticed a lot of LDF files
are bigger than the relevent MDF file)
cheers

It sounds like you have a few different things you need to configure.

To answer your initial question, you can use the performance monitor
to alert you when you're low on disk space. Run PERFMON, then use the
"Performance Logs and Alerts" Tab. The counter you'll want is
LogicalDisk/% Free Space. Perfmon doesn't allow you to send emails by
default, but you can use a simple command line mail program if you
need. The rest is fairly self explanatory.

Your log files sound like they've never been shrunk and have just been
growing for the life of the database. You have a couple options here
- At this point, you're probably best backing up the database itself
and running a Backup Log with NO_LOG statement to truncate the log.
If you need to save the transaction log for recovery purposes, then
you can specify a backup location and exclude the NO_LOG statement,
but you've got quite a space hog right now.

Afterwards, run a DBCC SHRINKFILE on the name of the log file and
specify a size, in megabytes, the reduce the actual physical size of
the log.

.



Relevant Pages

  • Re: Import Text with existing schema.ini file utility
    ... the database engine looks for schema.ini. ... As far as I know it's not possible to specify schema.ini in SQL; ... DAO is specifically designed to work with the Jet ... >> oDB.Execute strSQL ...
    (microsoft.public.access.modulesdaovba)
  • Re: KirbyBase
    ... creating objects from the database records was much easier. ... Hal, I don't know if you have had a chance to take a look at the beta yet, but I basically tried to implement a uniform way to specify one-to-one links, one-to-many links, and calculated fields in the ... I suppose it would in effect be embedding an array where all the ... My first couple of attempts at adding more complexity to KirbyBase did not honor this concept. ...
    (comp.lang.ruby)
  • Re: Database testing with automated verifications of your modifications ?
    ... Using some kind of capture/playback tool? ... Or some specify the changes in some xml file? ... but some XML file could be okay too. ... .NET that can be used for database testing? ...
    (comp.software.testing)
  • Re: Using an intranet webserver...would setting affinity mask help?
    ... in size, according to PerfMon. ... have control of the database. ... >Have you tried running Profiler (within the SQL Server ... >> second processor and you can even set affinity for it. ...
    (microsoft.public.sqlserver.setup)
  • Re: Database testing with automated verifications of your modifications ?
    ... Using some kind of capture/playback tool? ... Or some specify the changes in some xml file? ... but some XML file could be okay too. ... Define the expected database changes that I want my following code ...
    (comp.software.testing)

Quantcast