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

Urgent! Exchange C drive out of space!! Trying to move transaction logs

hi guys

Got exchange 2007. The C drive is basically completely full up now and we can't do anything.

I have also two other drives; one with 200GB free and another with 150gb free.
Our transaction logs is on the C drive.

I tried moving the database logs for our 'Third Storage' group to one of the bigger disks. But as it was doing so, the amount of space on our C drive was reducing drastically so I cancelled it.

This is the method I tried using: http://exchangeshare.wordpress.com/2008/05/22/move-committed-exchange-transaction-logs/

Please can someone help me to do this as I'm utterly stuck?!

Thanks
Yashy
0
Yashy
Asked:
Yashy
  • 3
  • 3
  • 3
2 Solutions
 
Martin_J_ParkerCommented:
Which version of Windows are you running on?  

If it is Server 2008 you could use an NTFS symbolic link to point to the driectory on the other drive.
See: http://en.wikipedia.org/wiki/NTFS_symbolic_link

If you are using Server 2003 and the bigger disk is on the local machine you could achieve the same thing using an NTFS junction point.  
See: http://en.wikipedia.org/wiki/NTFS_junction_point

Either way, first stop all Exchange processed then just copy the existing folder across to the bigger disk, rename the old folder and make a link or junction point from the new drive to the old folder name on C:.  That way the same folder on C: will just point to the one on the other disk.

If you are on Windows 2003 and the other disk is not local you need to persuade Exchange to use a different folder, which is probably more tricky!

If you need to give yourself a bit of breathing space you could drop the page file size down on C: while you do the other work.  It will mean another reboot, but you could get away with 1/2GB of page file for a while while you get the rest of the disk sorted out.
0
 
YashyAuthor Commented:
I'm on server 2008. Trying to work out how to do this NTFS symbolic link.

0
 
YashyAuthor Commented:
Martin, I'm a little confused and evidently a little rattled by this as getting frantic phonecalls:(.

So i have the C drive with the transaction logs. I have an E drive which is where I'd like the transaction logs to go to.

Would you be able to show me how to do this with a few steps? The makelink is not working as I'm probably doing it incorrectly.
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
kevinhsiehCommented:
Doing junctions or symlinks is totally nonstandard and asking for trouble down the road IMHO. If you can move the pagefile off the C drive to another drive and do the reboot I would do that. Medium term neither your Exchange log files nor databases should be on the C drive. You need to move them using the Exchange Manager. A regular backup will truncate your log files. If you temporarily switch to circular logging your log files will take less space, but you also won't be able to use them for recovery and is only a very temporary solution until you get things moved.
0
 
Martin_J_ParkerCommented:
Some programs did have problems with Junctions, but simlinks should be closer to the Linux soft links in functionality and should be okay to use.

It is quite easy to make a link.

First start up a Command Prompt, but run as Administrator.
To do that, go to Start->All Programs->Accessories and right click on the "Command Prompt" icon and select "Run as Administrator"

In the command prompt, first make the directory that you want to link to with the command:
mkdir  e:\myfolder

Next make the link with the command
mklink  /D  c:\mylink  e:\myfolder

Now any file created in C:\mylink will actually be in e:\myfolder.
0
 
Martin_J_ParkerCommented:
By the way, kevinhsieh is probably right that you would be better off doing it properly - it's just that a symbolic link would be a quick and dirty - but nonstandard - fix which could get you back up and running quickly.

You will need to stiop the Exchange services for a while whatever you decide to try though.  You won't be able to copy or move the log files if they are in use.
0
 
kevinhsiehCommented:
The log files should be moved by using the Exchange System Manager while all services are running. It will take care of taking the databases offline.

Instructions can be found by following this link
http://support.microsoft.com/kb/821915 
0
 
YashyAuthor Commented:
Guys, I ended up doing a Symantec Backup Exec FULL backup of the entire information store and the C drive (where the logs were). When it completed, freed up around 40GB of space so it took us through to the clear.
0
 
kevinhsiehCommented:
Now you can move your log files... :-)
0

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

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