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

How to move Exchange 2007 to different hard drive/volume?

How can we move an Exchange 2007 installation from the C: drive to a different volume? We are getting errors when the logs fill up the C: drive. It eventually dismounts the store and causes havoc.

Thanks,

Ed
0
IT
Asked:
IT
2 Solutions
 
rakeshmiglaniCommented:
i don't think that you can actually move the installation to another drive
however it is possible to move the databases and logs
check http://www.exchangeninjas.com/MoveLogs
0
 
patelbg2001Commented:
I cannot remember if you can move the first SG in Ex07 its kinda cemented into the system...

as sugessted above create another SG and move you mailboxes to that.  Do you have PF's if so you will need to replicate this to other EX server.

the best way to stop logs filling up is to run full backups, VSS snap shots etc...  alternative which I don't recommened unless you preforming migration is to switch on ciruclar logging

Cheers
B
0
 
ITAuthor Commented:
Ok.....here's the whole scoop.

Backups were not running on this server successfully, therefore all logs were being kept around filling up the C: drive. This morning there was only 84Mb of free space on the C: drive.

Ended up calling Microsoft to get the procedure of moving the Exchange DB and logs. Here it is below. This is to the best of my recollection and note-taking skills, so please be cautious if you're going to follow this as a solution for your situation.

1) Store was already dismounted. If it wasn't already, I would've dismounted it.
2) Stopped all Exchange related services.
3) Copied C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group to another volume that had plenty of free space (E:\Exchange Server\Mailbox\First Storage Group)
4) Copied C:\Program Files\Microsoft\Exchange Server\Mailbox\Second Storage Group to another volume that had plenty of free space (E:\Exchange Server\Mailbox\Second Storage Group)
5) Use the command prompt for Windows Support Tools (obviously you need the support tools installed) and run "adsiedit.msc".
6) In the ADSI Edit tool expand down the tree in this order:
    + "Configuration" -> CN=Configuration,DC=DOMAINNAME,DC=local
     +CN=Services
      +CN=Microsoft Exchange
       +CN=CLIENT_NAME First Organization
        +CN=Administrative Groups
         +CN=Exchange Administrative Group
          +CN=Servers
           +CN=SERVER_NAME
            +CN=InformationStore
             +CN=First Storage Group
                     1) In right side pane, right-click "CN=Mailbox Database", select Properties, edit attribute "msExchEDBFile" to reflect new path where you copied the First Storage Group in Step 3.
                     2) Right click CN=First Storage Group folder (left (main) pane), select Properties, change attribute "msExchESEParamLogFilePath" to reflect the new path in Step 3.
              +CN=Second Storage Group  --> same modifications to same attributes as for First Storage Group, only with the new path from Step 4.  

7) Restart all Exchange services. I started Information Store last....don't know if that makes any difference, but I'm paranoid.
8) Open Exchange Management Console to see new paths and "Mount" status.
9) Delete old copies of First and Second Storage Group from old path.
10) We enabled LCR as well so we've got a 2nd copy of databases and logs.

That solved our problem. Maybe it will help you too.

Ed


0
 
PlusITCommented:
Moving Logs

From the Exchange Management Console (EMC), locate the Storage Group you would like to move the log files for.  Either right-click on the Storage group and choose "Move Storage Group" or left-click and choose "Move Storage Group..." from the Action pane.  This will open a wizard for you to select the new log and system file location.  To do the same from the Exchange Management Shell (EMS), To move your log and system files you would type:
 

    Move-StorageGroupPath -identity SERVER\Name of the StorageGroup -LogFolderPath X:\PathToLogFiles -SystemFolderPath X:\SystemFolderPath

Moving Databases

From the Exchange Management Console (EMC), locate the Storage Group you would like to move the log files for.  Either right-click on the database and choose "Move Database files" or left-click and choose "Move Database files..." from the Action pane.  This will open a wizard for you to select the new file location.  To do the same from the Exchange Management Shell (EMS), To move your log and system files you would type:

    Move-DatabasePath  Server\StorageGroup\MailboxStore -EDBFilePath X:\PathToDatabase
0
 
mdeenuCommented:
this is very very useful post, I had successfully recovered my CCR nodes by this post
0

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

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