You have to remove all the passive copies then move the active copy. Once done, you add the replicas again to the other servers
Move passive database to new drive on backup exchange server
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.
2 answers
Sort by: Most helpful
-
-
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.