• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1854
  • Last Modified:

Defrag Exchange DB (DAG)

I have a 2 server DAG with 5 DB's.  I'm running low on disk space and I've done a lot of cleanup and have had users do a lot of email cleanup but I'm not gaining any space back.  From everything I've been reading, it looks like I need to defrag my db's before I will actually see any space gain in the OS.  My question is since I have a DAG, I have all of the databases mounted on 1 server (ServerA) and the db's on ServerB are Healthy but not active at the moment.  Am I able to run the defrag on the inactive db's without affecting my live system since the db's are actually mounted on ServerA?  If so, what is process of taking them offline on ServerB to do the defrag?

Thanks so much,
caseym
0
npc_caseym
Asked:
npc_caseym
  • 5
  • 4
  • 4
3 Solutions
 
Exchange_GeekCommented:
If you perform a defrag on server B, you'll end up diverging you're database -since passive node database would be offline until active node would receive emails, totally in a situation that you wouldn't want to work with.

So, you have to take the active database offline, run a defrag and then mount and reseed on to passive node. this is how MS recommends.

Regards,
Exchange_Geek
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
I have a 2 server DAG with 5 DB's.  I'm running low on disk space and I've done a lot of cleanup and have had users do a lot of email cleanup but I'm not gaining any space back - You wont gain anything till you do Offline defrag :(

Defrag has to be done on the Active Database after dismount and then mount and Reseed or else you will have a database mindsplit meaning both database with different information and you will have Failed Copy status and cant failover again you have to Reseed.

- Rancy
0
 
npc_caseymAuthor Commented:
Wow that totally blows.  Problem is that 1 of the DB's is 475GB.  It's going to take forever and a day to do the defrag.  Any other options/opinions?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
Exchange_GeekCommented:
You've got any clue how much white space you are to gain from the defrag?

run the cmdlet

Get-MailboxDatabase | FT Name,AvaiableNewMailboxSpace

Regards,
Exchange_Geek
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Wow that totally blows.  Problem is that 1 of the DB's is 475GB.  It's going to take forever and a day to do the defrag.  Any other options/opinions? - Create New Mailbox database and move Mailboxes online ... possibly bunch movements :)

- Rancy
0
 
npc_caseymAuthor Commented:
"You've got any clue how much white space you are to gain from the defrag?

run the cmdlet

Get-MailboxDatabase | FT Name,AvaiableNewMailboxSpace"


When I run that command, here's what I get...
get-mailboxdatabase results
0
 
Exchange_GeekCommented:
My bad.....

here is the cmdlet.

Get-MailboxDatabase -Status | Select-Object Server,Name,AvailableNewMailboxSpace

Regards,
Exchange_Geek
0
 
npc_caseymAuthor Commented:
OK...the large db (Tipton) is showing 1.837GB available...I was hoping for a lot more than that.  We've permanently deleted over 100,000 emails from users mailboxes.
0
 
Exchange_GeekCommented:
Well, you'll need to wait for Exchange to clear that data - check for how long are those items placed in dumpster.

You can see this in limits tab on Store properties, if the limit is to keep deleted items for 7 days, Exchange would give more space to you on 8th day, post online maintenance completes.

Exchange doesn't provide space on-the-fly

Regards,
Exchange_Geek
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Defrag ..... means 110% of DB space and time :) Huff

I would still stick with move mailbox as Defrag wouldnt make so much sense as you would again have to Re-seed the database to Passive server :(

- Rancy
0
 
npc_caseymAuthor Commented:
"Well, you'll need to wait for Exchange to clear that data - check for how long are those items placed in dumpster.

You can see this in limits tab on Store properties, if the limit is to keep deleted items for 7 days, Exchange would give more space to you on 8th day, post online maintenance completes.

Exchange doesn't provide space on-the-fly"


OK that makes total sense.  Thanks for the explanation.


"Defrag ..... means 110% of DB space and time :) Huff

I would still stick with move mailbox as Defrag wouldnt make so much sense as you would again have to Re-seed the database to Passive server :("


I understand that but the problem is that I have 4 mailboxes currently and 1 Public folder db.  I'm on Exchange Standard so I'm pretty sure the limit is 5 db's...does that include the public folder db?

Thanks so much guys.  You guys rock!
0
 
Exchange_GeekCommented:
You're welcome my friend :)

Regards,
Exchange_Geek
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
I understand that but the problem is that I have 4 mailboxes currently and 1 Public folder db.  I'm on Exchange Standard so I'm pretty sure the limit is 5 db's...does that include the public folder db? - Yes your fullly occupied :)

- Rancy
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now