Move passive database to new drive on backup exchange server

Kenny Placido 1 Reputation point
2023-05-24T19:57:17.81+00:00

I currently have 2 2016 exchange server. One is the primary (A) and then I have a backup for the database (B). They are in a DAG. The database are both in the Dag with A serving as the active copy and B as the passive copy.

On the B server, I need to move the database and logs to a new G drive (both are currently on the F drive). I ran the command below:

Move-DatabasePath "SA-DB02" -EdbFilePath "G:\SA-DB02\SA-DB02.edb" -LogFolderPath "G:\SA-DB02"

I got an error that stated:

This operation cannot be performed on a remote server. Please use the -ConfigurationOnly option and then manually move
the files.
Parameter name: ConfigurationOnly
    + CategoryInfo          : InvalidArgument: (SA-DB02:ADObjectId) [Move-DatabasePath], ArgumentException
    + FullyQualifiedErrorId : [Server=B,RequestId=de678593-0e4b-4dbc-9a0e-9e88ba777ccc,TimeStamp=5/24/2023 7
   :34:33 PM] [FailureCategory=Cmdlet-ArgumentException] 89090299,Microsoft.Exchange.Management.SystemConfigurationTa
  sks.MoveDatabasePath
    + PSComputerName        : B.domain.local

I tried to run -configurationonly at the end of the command but it gave me a warning about the Active Directory and I abort the command.

How do I move a passive mounted database and logs to another drive without the error above? Or do I run it with the -configurationonly? Or do I remove it from the DAG and then run the command above? I don't care if the the passive database is dismount, it's just a passive copy. I just want to move it to another drive.

Any help would be appreciated.

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,572 questions
Microsoft Exchange
Microsoft Exchange
Microsoft messaging and collaboration software.
510 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Andy David - MVP 147.3K Reputation points MVP
    2023-05-24T21:24:22.6466667+00:00

    You have to remove all the passive copies then move the active copy. Once done, you add the replicas again to the other servers

    https://video2.skills-academy.com/en-us/exchange/high-availability/manage-ha/move-db-copies?view=exchserver-2019

    1 person found this answer helpful.
    0 comments No comments

  2. Kenny Placido 1 Reputation point
    2023-05-31T13:23:18.4933333+00:00

    I ended up deleting the passive copy, renaming the drives and then reseeding the database. Everything worked after that.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.