Exchange 2003, EDB, STM Move mailbox

Posted on 2011-10-15
Last Modified: 2012-05-12
Good morning people,

Doubts about the EDB and STM Exchange 2003.

I'm doing a defragmentation process of mailstore "MS1" of my environment.

I have a mailstore size following:
ms1.edb giga = 16
ms1.stm = 33.giga

I created a new mailstore "ms2", and now I'm moving all the mailboxes from MS1 to MS2.

Is there any reason to be so stm size smaller?
Question by:eduardort
    LVL 10

    Expert Comment

    You will have a second streaming file for the other mail store (STM file)  they will still be the same size combined.

    Author Comment

    Sorry but i dont understood, how i have 2 stm ?
    LVL 6

    Expert Comment

    by:Em Man
    is that the result after the defragmentation?
    LVL 6

    Accepted Solution

    When Eseutil defragments a database by eliminating unused storage and compacting the database, Eseutil actually creates a new database that contains all the information from the original database. When defragmentation is complete, the original database is deleted or saved to a user-specified location, and the new version is copied over the original. If the utility encounters a serious logical problem in the database, defragmentation stops. The database must then first be repaired with Eseutil /P before it can be defragmented.

    When an offline defragmentation is performed, Exchange makes temporary copies of the database file (.edb file) and the streaming database file (.stm file). Tables from the .edb file are preserved and copied into the temporary database, but empty pages and indexes are discarded. Because this causes physical page numbers in the database to be changed, pages are not copied unaltered; the page links between them are all updated, and all pages left in the database undergo integrity checks. All pages in the .stm file that has information on them are preserved in the temporary .stm file, and references to the pages are updated in the .edb file.
    LVL 32

    Expert Comment

    Yes, if you look in your application log you will find 1221 events that identify how much whitespace there is within a database
    When you move mailboxes between database you will eliminate this whitespace
    You will also lose all messages in the recovery bin for each mailbox which will also reduce file sizes
    LVL 12

    Expert Comment

    by:Deepu Chowdary
    Yes after defragging automatically size will be reduced.
    If you want to confirm yourself, just check the event id 1221 before and after the defrag process.
    You will clearly come to know how much size is reduced by this process.

    Author Comment

    Thanks for the replies.

    Once you've move all mailboxes from MS1 to MS2. See how the files got.

    ms1.edb giga giga = 16
    ms1.stm giga = 33

    after move

    ms2.edb giga = 22
    ms2.stm mega = 63

    Our decreases too.

    Now I remove the mailbox MS1, defragment it and move the accounts again from MS1 to MS2.

    I'll post the results.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Find out how to use dynamic social media in email signatures with this top 10 DOs & DON’Ts.
    Get an idea of what you should include in an email disclaimer with these Top 5 email disclaimer tips.
    In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
    In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now