Announcement

Collapse
No announcement yet.

ESEUTIL defrag to different partition

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • ESEUTIL defrag to different partition

    Hello everone,

    We're doing an offline Exchange 2003 Defrag this weekend (The first on this database store in a few years...) I could really use a little help!

    Here's the setup-

    Databases are in - E:\Exchsrvr\mdbdata
    Logs are in - D:\Exchsrvr\mdbdata

    Now the e:\ partition is 279GB with only 122GB free (155GB database size inc. EDB and STM file) So I'd like to defrag the priv1.ebd and stm on e:\ to the d:\ partition where the logs live which is also a 279GB partition but as I type has 270GB free (Basically today's log files and some saved PST files from ex-merge's)

    So if I create a dir called d:\newdb how would I execute eseutil to defrag E:\Exchsrvr\mdbdata\priv1.edb (And priv1.stm) to d:\newdb

    Daniel's article here discusses using the /p command but I thought /p was used to repair damaged databases or those that were not shut-down cleanly?

    All help greatly appreciated!

    Thanks
    Dan

  • #2
    Re: ESEUTIL defrag to different partition

    http://www.petri.com/defragment_exch..._databases.htm

    It actually states /d as the example then says:

    Run ESEUTIL with the /p switch to configure ESEUTIL to create the new defragmented database on an alternate location (for example, to a location on a different hard disk). This switch lets you preserve your original defragmented database (which lets you revert back to your original database if necessary). This switch also significantly reduces the amount of time it takes to defragment a database, because you are rebuilding to a new location, rather then rebuilding the database in place.

    The key thing here is that you use the /d and /p

    if you just use /P on its own then it is for repair, in your scenario /p is additional to /d as it allows /d to use a different location as an additional switch and therefore allows you to have the pre and post databases afterwards. You can also use other switches

    DEFRAGMENTATION/COMPACTION:
    DESCRIPTION: Performs off-line compaction of a database.
    SYNTAX: ESEUTIL /d <database name> [options]
    PARAMETERS: <database name> - filename of database to compact
    OPTIONS: zero or more of the following switches, separated by a space:
    /s<file> - set streaming file name (default: NONE)
    /t<db> - set temp. database name (default: TEMPDFRG*.EDB)
    /f<file> - set temp. streaming file name
    (default: TEMPDFRG*.STM)
    /i - do not defragment streaming file
    /p - preserve temporary database (ie. don't instate)
    /b<db> - make backup copy under the specified name
    /8 - set 8k database page size (default: auto-detect)
    /o - suppress logo
    NOTES: 1) If instating is disabled (ie. /p), the original database
    is preserved uncompacted, and the temporary database will
    contain the defragmented version of the database.
    cheers
    Andy

    Please read this before you post:


    Quis custodiet ipsos custodes?

    Comment


    • #3
      Re: ESEUTIL defrag to different partition

      Thanks Andy, so would it be-


      c:\eseutil /d /p E:\Exchsrvr\mdbdata\priv1.edb d:\newdb

      or would the /p go somewhere different?

      Thanks
      Dan

      Comment


      • #4
        Re: ESEUTIL defrag to different partition

        I would make sure you have FULL backups before AND after (sorry to capitalise the words here as normally I hate that but it is critical. The text below has possibly wrapped

        C:\Program Files\Exchsrvr\bin>eseutil /d e:\exchsrvr\mdbdata\priv1.edb /s e:\exchsrvr\mdbdata\priv1.stm /t d:\newdb\priv1.edb /f d:\newdb\priv1.stm

        You can then add on the /p if you want a copy of the before and after databases but be warned the after databases are in the newdb folder so you will need to swap them around.

        /d is for defragment
        /s is for the streaming file to defrag as well
        /t is for the temp location of the defrag file
        /f for the temp location of the defrag streaming file
        /p would leave the new databases in the newdb folder.
        cheers
        Andy

        Please read this before you post:


        Quis custodiet ipsos custodes?

        Comment


        • #5
          Re: ESEUTIL defrag to different partition

          Thank-you very much for that, out of interest does the streaming file need to be included? Would there be any consequences of not doing it?

          Also where would the /p to leave the new databases in the tempd folder need to be put in the syntax?

          Thanks
          Dan

          Comment


          • #6
            Re: ESEUTIL defrag to different partition

            How big is it?

            This may be worth a read.

            http://bobchristian.blogspot.com/200...-exchange.html
            cheers
            Andy

            Please read this before you post:


            Quis custodiet ipsos custodes?

            Comment


            • #7
              Re: ESEUTIL defrag to different partition

              64 gig, however not unusual as a lot of our clients are IMAP (Linux users) so not MAPI clients. I guess the streaming file is a definite to do then!

              Comment


              • #8
                Re: ESEUTIL defrag to different partition

                Personally I would do but Sembee etc may want input later so check back then too
                Good luck (and don't forget the backups!)
                cheers
                Andy

                Please read this before you post:


                Quis custodiet ipsos custodes?

                Comment

                Working...
                X