How do I change the default drive where new exchange 2016 database are created?

How do I change the default drive where new exchange 2016 database are created? The current default is the C:\ drive and it runs out of space when someone makes a mistake and creates a database on it.
LVL 1
masterofallAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Valentina PerezExchange ServersCommented:
Hi,

You need to use the Move-DatabasePath command:

https://technet.microsoft.com/es-es/library/bb124742(v=exchg.160).aspx

Regards
Valentina
0
yo_beeDirector of Information TechnologyCommented:
When creating a new DB you have the option to point it to any local drive.   I think you are asking for a similar issue.  When creating a new DB you should check your system resources prior to doing this/
0
Muhammad AsifSenior Solutions ArchitectCommented:
Hi,

You can move the mailbox database from C drive to any other drive with the help of given below article:
https://practical365.com/exchange-server/moving-an-exchange-server-2016-mailbox-database/
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

yo_beeDirector of Information TechnologyCommented:
I was in the process of editing my comment when Muhammad posted, but is your question for future DB's or because you are constantly running out of space due to log growth?  If that is the case you need to move the DB and use Muhammad's suggestion.
0
masterofallAuthor Commented:
This is for future Dbs.  The issue that I am trying to solve is the create process defaults to the C: drive, I need it to default to another drive. (I know to specify the drive at creation and I know move database after creation.)
0
yo_beeDirector of Information TechnologyCommented:
You can change it, but there is a chance that you will run into the same situation as your environment grows. So I recommend that prior to creating a new DB that you assess your current available space and plan accordingly. This should not be done blindly.
0
MASEE Solution Guide - Technical Dept HeadCommented:
Hi masterofall,
Please move your current DB to other drive. Please do it on non-working hours as it requires downtime.
Move-Databasepath -Identity "DatabaseName" –EdbFilepath "D:\Newlocation\DBname.edb" –LogFolderpath "D:\Newlocation"

Open in new window


Please change log folder path.
Open EAC-->Servers-->Servers-->Double server name--> transport  logs--> Change locations here as well.
Capture2.png
I suggest you create a drive with minimum 200GB (Increase it depends on number users and transaction) and move logs to that drive. i.e. you have to use below command if you use a different drive for logs.
Move-Databasepath -Identity "DatabaseName" –EdbFilepath "D:\NewlocationforDB\DBname.edb" –LogFolderpath "E:\NewlocationforLogs"

Open in new window


Hope it helps.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RoninCommented:
You can use the Scripting agent cmdlet extension agent in Exchange 2013 to insert your own scripting logic into the execution of Exchange cmdlets. Using the Scripting agent, you can add conditions, override values, and set up reporting.
https://technet.microsoft.com/en-us/library/dd335054(v=exchg.150).aspx
0
masterofallAuthor Commented:
I did not get an answer how to change the default from C: to something else.  However, I moved the location of the Exchange log files to a drive that is reserved for log files.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.