Announcement

Collapse
No announcement yet.

DB Size: 435.4GB ... DB Free space 194.4GB - how to shrink actual .edb ?

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

  • DB Size: 435.4GB ... DB Free space 194.4GB - how to shrink actual .edb ?

    Good day, and happy Friday to all.

    On one of my Exchange2010 servers I have a mailbox database which I need to move, and also i'm having trouble backing it up due to it's size.

    I'll keep this short:

    Code:
    >Get-MailboxDatabase -status | select-object Name, DatabaseSize, AvailableNewMailboxSpace

    Database Size: 435.4 GB (467,505,053,696 bytes)
    Database Free Space: 194.4 GB (208,699,129,856 bytes)


    Is there a reason Exchange is not releasing this free space back to the file system?
    I was under the impression that Exchange 2010 defragmented on the fly.


    Basically, I would like to cut my database file down by 190 or so gigabytes so I don't have to work all weekend.

    Any assistance greatly appreciated

  • #2
    Re: DB Size: 435.4GB ... DB Free space 194.4GB - how to shrink actual .edb ?

    Exchange doesn't release free space to the OS. It never has (as far as I'm aware) and probably never will (I'm assuming). To reclaim the free space you need to do one of two things:

    1. Perform an offline defrag of the database using the eseutil utility.

    2. Move the mailboxes to a new mailbox database and delete the original mailbox database.

    Comment


    • #3
      Re: DB Size: 435.4GB ... DB Free space 194.4GB - how to shrink actual .edb ?

      Thanks, I was afraid of that.

      I must have misunderstood something, I know in the past it has not released the space itself and you were required to do an offline defrag, but I thought in 2010 it now took care of all this for you.


      Not a big deal really, I just don't want to have to spend the time moving the mailboxes etc.

      Also, I think i've hit the 5 database limit, so I might not have any choice but to defrag, and this client is really difficult with down time (more so than others)

      Comment


      • #4
        Re: DB Size: 435.4GB ... DB Free space 194.4GB - how to shrink actual .edb ?

        The downtime to do an offline defrag of a database of that size will be considerable. If you have hit the five database limit then you have two options open to you.

        1. Build a temporary server.
        2. Move all of the mailboxes in to the other databases so that you can drop the original, then create a new one, move the databases mailboxes in to that new one, spread the others around the older two, so you can drop the second one (otherwise it will contain a lot of white space) and repeat.

        While you may not want to move the mailboxes, that is going to be preferable to trying to run an offline defrag of a 500gb store. Even on decent hardware that could take days.

        Simon.
        --
        Simon Butler
        Exchange MVP

        Blog: http://blog.sembee.co.uk/
        More Exchange Content: http://exchange.sembee.info/
        Exchange Resources List: http://exbpa.com/
        In the UK? Hire me: http://www.sembee.co.uk/

        Sembee is a registered trademark, used here with permission.

        Comment


        • #5
          Re: DB Size: 435.4GB ... DB Free space 194.4GB - how to shrink actual .edb ?

          Thanks as always for your great ideas.

          Comment

          Working...
          X