Link to home
Start Free TrialLog in
Avatar of king daddy
king daddyFlag for United States of America

asked on

Deleted about 20 GB of email from Exchange 2003, no reduction in drive size

Greetings,

I deleted over 20 GB of users emails but the Exchange drive did not decrease in size. I ran an info store backup and also imaged the server just after, but that did nothing. I have deleted email retention set to 3 days and it has been about 5 days since the email deletion. Running Exchange 2003 on Server 2003. Any suggestions much appreciated.
Avatar of Premkumar Yogeswaran
Premkumar Yogeswaran
Flag of India image

Have you deleted the logs...!

When you take the last backup..! the logs could be deleted on taking the backup..

So it could reduce the database size.
You won't see a reduction in the size of the database unless you run an offline defrag.

I would recommend you have a read of my article here: https://www.experts-exchange.com/articles/Software/Server_Software/Email_Servers/Exchange/Exchange-Offline-Defrag.html

If you find the article useful please vote for it :)
Deleting mail from the mailstore won't reduce the size if the database as the database will have a default retention period set on it and once the retention period has passed, the space that was used by deleted emails, becomes "White Space" which will get reused by Exchange next time it needs to write to the store.

So, this is why Exchange stores never reduce in size.

To reclaim space, delete messages, set the retention period to zero and then run an offline defrag of the store using eseutil /d.
Avatar of SnowWolf
SnowWolf

You need to defrag the database offline.

http://support.microsoft.com/kb/192185
Avatar of king daddy

ASKER

First, thank y'all for the quick responses.

premglitz - I have not deleted the logs. Also, thanks for the links.

demazter - easily, got the vote

alanhardisty - thanks for the info.

SnowWolf - Thanks for the link.

Now, my 1221's from this morning show that I should have about 43 GB of free space distributed over 2 storage groups and 4 databases. That's a lot more than I thought. However, my Exchange drive is down to about 10 GB out of the 300 GB total size. I can reclaim 21 GB from one of my databases, but of course this is the paralegals database and will be heavily used over this upcoming weekend, and for the foreseeable future. The current database size is about 78 GB. Based on demazter's article, that could take it down for a day. Also, I need to find some space around here to use for the 110% defrag requirement. That'd likely be on either an external 1 TB USB drive or maybe on a network share where I have about 400 GB of space. Any issues with using either of those for the defrag? Any other suggestions that won't require taking it offline? Thanks again for the help with this.
Well in that case, create a new mailbox store, move the mailboxes to it and there you go.
No downtime, defragged mail store, no chance of dataloss.

As explained in my article :D
demazter - I did see that but I don't have the space to do so as I only have 10 GB free and can't create a new store and move 77 GB (well, about 57 GB taking into account the free space). This machine is virtual so I may have to delete some other virtual things and use that space for this drive. I am guessing that moving to a new store would be much quicker than the offline defrag, correct? Thanks again.
>>I am guessing that moving to a new store would be much quicker than the offline defrag, correct?
Yes, and safer and no downtime for your users

hmmm, can you move all mailboxes out of one store in to the other stores?  Exchange will use the space in the store before it increases the size.  Thus enabling you to delete one store, to create a new one.

does that make sense?
>> does that make sense?

only somewhat. if I move them to other stores, and delete the original store, won't the original store be empty at that point? couldn't I just leave that original store, now empty, and move the mailboxes right back but now with a smaller size? if that is the case, could I just move the few mailboxes that deleted the largest emails and move them back, thus reducing the size of the mailbox due to the move(s)? it was only about 10 mailboxes that were ridiculous.
>>won't the original store be empty at that point?
Yes it would be empty but the file size will still be the same.  The ONLY way to reduce the size of the mailstore file is an offline defrag.
>> The ONLY way to reduce the size of the mailstore file is an offline defrag.

or creating a new store, moving the mailboxes then deleting the old store, correct? based on your previous post
 >> "Well in that case, create a new mailbox store, move the mailboxes to it and there you go. No downtime, defragged mail store, no chance of dataloss."
Yes, but that's not reducing the file size is it :) That's deleting the file and creating a new one :)
Hilarious!
Sorry, no joke intended.

I was just trying to explain the situation without it sounding like I was patronising you.  Hence the smiley faces.
it was funny to me because I am somewhat sarcastic at times (in a funny way) and you are correct, that is definitely 2 different things. didn't think you were patronizing at all.

Thanks for your help. Since it is not at all feasible to take down a store for a day right now, I will have to create a new store and do the move and delete. could you explain this a little further, not sure I fully get it >> "Exchange will use the space in the store before it increases the size.  Thus enabling you to delete one store, to create a new one."
does this mean that I can do this with only about 10 GB left on the drive because I am not increasing mailbox size, just moving around so-to-speak? or is that not correct?

OK, check Event 1221 in your mailstores
You said you have 4 of them?
How much free space do they all have (reported by Event 1221)?

Try and move the mailboxes out of one store in to the other 3 if possible.  When you move a mailbox to a store that has free space in it the free space will beused before it makes the database bigger.
The important is to create 1 store that can be completely deleted.

Then you create a new one, move the mailboxes from your smallest store in to that one and delete the now empty store.

And so on until all mailboxes have been moved to NEW stores.  They will now be fully defragmented, error free and you will have more disk space.
gotcha, I will check that out and post back later
demazter - I am going to have to do the move to another store method. Can you explain one more thing? I don't follow "The important thing is to create 1 store that can be completely deleted." I thought I should just move the mailboxes to a new store I create then delete the store I moved them out of after they're all moved.

Thanks again for working with me on this.
ASKER CERTIFIED SOLUTION
Avatar of Glen Knight
Glen Knight
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
got it! Thanks a lot.
Excellent, no worries.
demazter - still looking at this? if so, I have another question. It'll likely turn into questions. Should I post to a new thread? It is directly related to your accepted solution above. Thanks - I'm new to posting to the forum and not sure of the protocol.
rpliner, I am still monitoring, how can I help?
Although to be honest, you may wish to open a new question(s) as I am in training all week so may not be able to assist you very quickly.
thanks for your willingness to help even more. I moved all mailboxes in one store to another. I then dismounted the original store, now empty of mailboxes (well somewhat, they were there but had the red x circle and only about 16 kb in size at most). The users are having no problems. I moved the .edb and .stm files of the original, now empty store to a backup server. Don't know if that was necessary, but it made me feel better. Now I don't know which log files are related to that original store. Do I need to move the database back and run eseutil to determine the log files? Also, my image ran last night but there was an error stating it couldn't truncate the log files because not all stores were mounted. Can I move the files back, remount, and let my image run tonight in order to have the log files truncated? I was expecting to recover a lot more space than I did. I don't know if this is becasue of the log files created for the move and/or from the backup not removing log files due to the dismounted store. Anyway, hope I explained this well enough. Essentially, I need to know how to get rid of the log files from the old store and from the move. Thanks again for your help. It's not an emergency as I have space now, but would like to figure this out so I can reclaim as much space as possible.
OK, after searching around I was able to figure out which log files I could delete. I also deleted the original store I moved the mailboxes from. I am going to leave the machine alone now until this weekend when I move some more mailboxes per your posting above. Thanks again.