Announcement

Collapse
No announcement yet.

offline defrag vs moving mailboxes

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

  • offline defrag vs moving mailboxes

    Our mailbox store (priv1.edb) is almost 70GB big, recently I had to remove several mailboxes, it may be a good time to do offline defrag. However it'll require some downtime which I am unwilling to have unless I have no other option.

    Can I create a second mailbox store (priv2.edb) move all mailboxes from Store1 to Store2 and delete Store1? It should copy only the data omitting empty space, at the end I should have smaller database size.

    Will that work, or should I proceed with offline defrag?

    Thank you

    PS. Exchange 2003 ent, MS Srv 2003 std. SCSI drives, exchange is backed up daily.

  • #2
    Re: offline defrag vs moving mailboxes

    This is a good read:
    http://msexchangeteam.com/archive/20...08/177574.aspx
    cheers
    Andy

    Please read this before you post:


    Quis custodiet ipsos custodes?

    Comment


    • #3
      Re: offline defrag vs moving mailboxes

      If it is Enterprise edition of Exchange, then the move mailboxes to a new store method is the preferred route to go down. Zero data risk, zero downtime.

      However, offline defrag should not be considered something that needs to be done as a regular task. I haven't done an offline defrag for over three years on any system I manage - they are unnecessary and cause unwanted downtime.

      You haven't said how much data was removed from the store, but unless you are going to gain 50% of the space back AND are not going to use it again, then I consider an offline defrag a waste of time.

      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


      • #4
        Re: offline defrag vs moving mailboxes

        Originally posted by AndyJG247 View Post
        I agree moving would be safer all around BUT what about the fact it breaks single instance store for Attachments?
        My store is now 65GB for EDB and 17GB for STM with 18 GB white space reported in the EDB.


        The last time I migrated my store grew 10GB

        Is there a guide for creating a new store DB and Moving mailboxes to it?

        Thanks,
        Doc
        Last edited by Docyit; 2nd July 2008, 14:44.

        Comment


        • #5
          Re: offline defrag vs moving mailboxes

          I agree offline defrag should be done only if no other option is possible. In my case I had to remove about 50% of mailboxes (1GB-2GB each) over few days which will qualify for space recovery.
          My biggest challenge was the down time as it is very undesirable, with mailbox store being almost 70GB it's take about 10 hrs to defrag and additional few hours to restore full backup in case something went wrong.

          I am going to move mailboxes over to a second mail store, it's less risky doesn't require down time and will remove empty space from the database.
          Thank you for your input.

          Comment


          • #6
            Re: offline defrag vs moving mailboxes

            Is this any good?
            http://support.microsoft.com/kb/175481/en-us

            Originally posted by Docyit View Post
            I agree moving would be safer all around BUT what about the fact it breaks single instance store for Attachments?
            cheers
            Andy

            Please read this before you post:


            Quis custodiet ipsos custodes?

            Comment


            • #7
              Re: offline defrag vs moving mailboxes

              Great Article Thanks I missed that one....Really helps explain the SIS issue.

              Thanks

              Comment


              • #8
                Re: offline defrag vs moving mailboxes

                I haven't seen anything on creating the new store and moving mailboxes, because there is little to it. As long as you are running Enterprise edition, create a new Storage Group (Right click the server and choose New, Storage Group) and/or New Mailbox Store (as above, but choosing Mailbox Store). Set the locations for the database files and the logs as appropriate. If you are creating a new SG then use a different directory for the transaction logs than the current transaction logs.

                Once created, mirror the settings from the existing SG/Store to the new one.

                Finally move the mailboxes by using the move mailbox wizard in ESM. If you are doing it out of hours then select everything and leave Exchange to get on with it. It will move four at a time and any with an error will stay on the screen for you to check.

                Once complete and you have moved all of the mailboxes, dismount the store and delete it. If it was the default store I suggest that you immediately restart the server, so that the system mailboxes (which you cannot move) are recreated correctly.

                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


                • #9
                  Re: offline defrag vs moving mailboxes

                  Thanks Guys

                  The moral support and guidance is always good to have....


                  MY OFF-LINE DEFRAG IS CANCELLED.

                  Have a great weekend

                  Comment


                  • #10
                    Re: offline defrag vs moving mailboxes

                    Have a good weekend too!

                    Make sure you get backups before and after though.
                    cheers
                    Andy

                    Please read this before you post:


                    Quis custodiet ipsos custodes?

                    Comment


                    • #11
                      Re: offline defrag vs moving mailboxes

                      Everything worked as it should (on the exchange side), it's been over a week and everything is still running fine no need to reatore anything from backup tapes.

                      However.... when a mailbox is moved between mail stores, BES does not follow it needs to be changed manually and rebooted.

                      Final numbers:

                      To move about 100 mailboxes 70GB file it takes.... 34hrs!
                      After move it only had 34GB.

                      My server's specs:
                      Compaq DL380
                      5x72GB SCSI in RAID5 (single array) partitioned in to two partitions (C=OS and D=exchange).
                      Single XEON 3.4Ghz
                      3GB RAM

                      I had about 10-12 mailboxes with 1GB-2GB of emails, top mailbox had over 33,000 messages. Moving mailboxes one by one would speed up the process, moving 4 at once slowed it down but I wasn't baby sitting it for 2 days.
                      Thanks to all.

                      Comment

                      Working...
                      X