Link to home
Start Free TrialLog in
Avatar of Net_Admin1
Net_Admin1

asked on

SCR Exchange 2007 Error

Hello Experts,

I am getting this error message when i tried to run the command for the SCR:

         Welcome to the Exchange Management Shell!

 Full list of cmdlets:          get-command
 Only Exchange cmdlets:         get-excommand
 Cmdlets for a specific role:   get-help -role *UM* or *Mailbox*
 Get general help:              help
 Get help for a cmdlet:         help <cmdlet-name> or <cmdlet-name> -?
 Show quick reference guide:    quickref
 Exchange team blog:            get-exblog
 Show full output for a cmd:    <cmd> | format-list

Tip of the day #40:

To set the dial restrictions on a specific Unified Messaging dial plan, type:

 $Dp = Get-UmDialPlan -Identity <Your_DialPlan_Identity>
 $Dp.ConfiguredInCountryGroups.Add("Group1,91xxxxxxxxxx,91xxxxxxxxxx")
 $Dp.ConfiguredInCountryGroups.Add("Group1,9xxxxxxxxxx,91xxxxxxxxxx")
 $Dp.ConfiguredInCountryGroups.Add("Group1,9xxxxxxx,9xxxxxxx")
 $Dp.AllowedInCountryGroups.Add("Group1")
 $Dp.OutsideLineAccessCode = 9
 $Dp | Set-UmDialPlan

[PS] C:\Windows\System32>get-mailbox -status
Get-Mailbox : A parameter cannot be found that matches parameter name 'status'.
At line:1 char:19
+ get-mailbox -status <<<<
[PS] C:\Windows\System32>get-mailboxdatabase -status

Name                 Server          StorageGroup         Recovery
----                 ------          ------------         --------
Mailbox Database     MAIL1           First Storage Group  False
Mailbox Database     MAIL2           First Storage Group  False


[PS] C:\Windows\System32>Enable-StorageGroupCopy -Identity First Storage Group -
StandbyMachine Mail2 -ReplayLagTime 0.1:0:0
Enable-StorageGroupCopy : A parameter cannot be found that matches parameter na
me 'Storage'.
At line:1 char:24
+ Enable-StorageGroupCopy  <<<< -Identity First Storage Group -StandbyMachine M
ail2 -ReplayLagTime 0.1:0:0
[PS] C:\Windows\System32>
Avatar of endital1097
endital1097
Flag of United States of America image

you need to put "First Storage Group" in quotes :)
Avatar of Net_Admin1
Net_Admin1

ASKER

I put the quote and still getting the same error message:

         Welcome to the Exchange Management Shell!

 Full list of cmdlets:          get-command
 Only Exchange cmdlets:         get-excommand
 Cmdlets for a specific role:   get-help -role *UM* or *Mailbox*
 Get general help:              help
 Get help for a cmdlet:         help <cmdlet-name> or <cmdlet-name> -?
 Show quick reference guide:    quickref
 Exchange team blog:            get-exblog
 Show full output for a cmd:    <cmd> | format-list

Tip of the day #36:

Do you want to see a list of all devices that synchronize with a user's mailbox?
 Type:

 Get-ActiveSyncDeviceStatistics

A variety of information is returned including device name, operating system, an
d last sync time.

[PS] C:\Windows\System32>Enable-StorageGroupCopy -identity "First Storage Group"
- StanbyMachine Mail2 -ReplayLagTime 0.1:0:0
Enable-StorageGroupCopy : A parameter cannot be found that matches parameter na
me '-'.
At line:1 char:24
+ Enable-StorageGroupCopy  <<<< -identity "First Storage Group"- StanbyMachine
Mail2 -ReplayLagTime 0.1:0:0
[PS] C:\Windows\System32>Enable-StorageGroupCopy -identity "First Storage Group"
- StanbyMachine Mail2 -ReplayLagTime 0.1:0:0
Enable-StorageGroupCopy : A parameter cannot be found that matches parameter na
me '-'.
At line:1 char:24
+ Enable-StorageGroupCopy  <<<< -identity "First Storage Group"- StanbyMachine
Mail2 -ReplayLagTime 0.1:0:0
[PS] C:\Windows\System32>
you have a space and misspelling
- StanbyMachine Mail2 should by -StandbyMachine Mail2
Ok Thanks,
What is the command to view the current replication settings?
Right now it is showing disabled

         Welcome to the Exchange Management Shell!

 Full list of cmdlets:          get-command
 Only Exchange cmdlets:         get-excommand
 Cmdlets for a specific role:   get-help -role *UM* or *Mailbox*
 Get general help:              help
 Get help for a cmdlet:         help <cmdlet-name> or <cmdlet-name> -?
 Show quick reference guide:    quickref
 Exchange team blog:            get-exblog
 Show full output for a cmd:    <cmd> | format-list

Tip of the day #38:

Do you want to move the storage group path to another location? Type:

 Move-StorageGroupPath -LogFolderPath DestLogFolder

To change only the path setting without moving data, use this command together w
ith the ConfigurationOnly parameter. This command is especially useful for disas
ter recovery. Caution: Misuse of this cmdlet will cause data loss.

[PS] C:\Windows\System32>Get-StorageGroupCopyStatus

Name                      SummaryCopySt CopyQueueLeng ReplayQueueL LastInspecte
                          atus          th            ength        dLogTime
----                      ------------- ------------- ------------ ------------
First Storage Group       Disabled      0             0


[PS] C:\Windows\System32>
Get-StorageGroupCopyStatus SGName -StandbyMachine TargetNode
you must include the standbymachine switch
If it is showing disabled, what is the command to enable it
post the results from
Get-StorageGroup -Server Mail1 | Get-StorageGroupCopyStatus -StandbyMachine Mail2

         Welcome to the Exchange Management Shell!

 Full list of cmdlets:          get-command
 Only Exchange cmdlets:         get-excommand
 Cmdlets for a specific role:   get-help -role *UM* or *Mailbox*
 Get general help:              help
 Get help for a cmdlet:         help <cmdlet-name> or <cmdlet-name> -?
 Show quick reference guide:    quickref
 Exchange team blog:            get-exblog
 Show full output for a cmd:    <cmd> | format-list

Tip of the day #74:

Do you want to customize your Exchange Management Shell profile? Run the followi
ng command to determine the location of your Microsoft.PowerShell_profile.ps1 fi
le is:

 $Profile

You may have to create the PSConfiguration folder and Microsoft.PowerShell_profi
le.ps1 file. After you've done that, you can add your favorite functions and ali
ases, which will be loaded every time that the Exchange Management Shell is open
ed.

[PS] C:\Windows\System32>Get-StorageGroup -Server Mail1 | Get-StorageGroupCopySt
atus -StandbyMachine Mail2

Name                      SummaryCopySt CopyQueueLeng ReplayQueueL LastInspecte
                          atus          th            ength        dLogTime
----                      ------------- ------------- ------------ ------------
Second Storage Group      NotConfigured 0             0
First Storage Group       Disabled      0             0


[PS] C:\Windows\System32>
Enable-StorageGroupCopy "Mail1\First Storage Group" -StandbyMachine Mail2 -ReplayLagTime 0.1:0:0
when i ran the command it is saying it is already enable but the status shows disable...

         Welcome to the Exchange Management Shell!

 Full list of cmdlets:          get-command
 Only Exchange cmdlets:         get-excommand
 Cmdlets for a specific role:   get-help -role *UM* or *Mailbox*
 Get general help:              help
 Get help for a cmdlet:         help <cmdlet-name> or <cmdlet-name> -?
 Show quick reference guide:    quickref
 Exchange team blog:            get-exblog
 Show full output for a cmd:    <cmd> | format-list

Tip of the day #40:

To set the dial restrictions on a specific Unified Messaging dial plan, type:

 $Dp = Get-UmDialPlan -Identity <Your_DialPlan_Identity>
 $Dp.ConfiguredInCountryGroups.Add("Group1,91xxxxxxxxxx,91xxxxxxxxxx")
 $Dp.ConfiguredInCountryGroups.Add("Group1,9xxxxxxxxxx,91xxxxxxxxxx")
 $Dp.ConfiguredInCountryGroups.Add("Group1,9xxxxxxx,9xxxxxxx")
 $Dp.AllowedInCountryGroups.Add("Group1")
 $Dp.OutsideLineAccessCode = 9
 $Dp | Set-UmDialPlan

[PS] C:\Windows\System32>Get-StorageGroup -Server Mail1 | Get-StorageGroupCopySt
atus -StandbyMachine Mail2

Name                      SummaryCopySt CopyQueueLeng ReplayQueueL LastInspecte
                          atus          th            ength        dLogTime
----                      ------------- ------------- ------------ ------------
Second Storage Group      NotConfigured 0             0
First Storage Group       Disabled      0             0


[PS] C:\Windows\System32>Enable-StorageGroupCopy "Mail1\First Storage Group" -St
andbyMachine Mail2 -ReplayLagTime 0.1:0:0
Enable-StorageGroupCopy : mail2.dbconsultinggroup.com is already enabled for st
andby continuous replication. To reconfigure the storage group, you must first
disable standby continuous replication.
At line:1 char:24
+ Enable-StorageGroupCopy  <<<< "Mail1\First Storage Group" -StandbyMachine Mai
l2 -ReplayLagTime 0.1:0:0
[PS] C:\Windows\System32>
When i use the command
Resume-StorageGroupCopy "Mail1\First Storage Group" -StandbyMachine Mail2
it looks like it is taking it but then when i type in the command
Get-StorageGroup -Server Mail1 | Get-StorageGroupCopyStatus -StandbyMachine Mail2
i still get:

       [PS] C:\Windows\System32>Get-StorageGroup -Server Mail1 | Get-StorageGroupCopySt
atus -StandbyMachine Mail2

Name                      SummaryCopySt CopyQueueLeng ReplayQueueL LastInspecte
                          atus          th            ength        dLogTime
----                      ------------- ------------- ------------ ------------
Second Storage Group      NotConfigured 0             0
First Storage Group       Disabled      0             0


[PS] C:\Windows\System32>
try the following

Suspend-StorageGroupCopy "Mail1\First*" -StandbyMachine Mail2
Update-StorageGroupCopy "Mail1\First*" -StandbyMachine Mail2

this should reseed the copy
then Resume-StorageGroupCopy "Mail1\First*" -StandbyMachine Mail2
Thanks for these steps Endital 1097, still not working though. Here are the results


Confirm
Are you sure you want to perform this action?
Suspending Storage Group Copy "First Storage Group".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):y
WARNING: The Microsoft Exchange Replication Service has not responded to the
suspend request in 5 seconds. The service may not be running. Press CTRL-C to
stop waiting for the service to respond, or alternatively, wait another 5
seconds before the operation times out.
Suspend-StorageGroupCopy : The Microsoft Exchange Replication Service has not r
esponded to the suspend request in 10 seconds. The ExecutionTimeout period has
elapsed. Operation exited without receiving a confirmation from the Microsoft E
xchange Replication Service. The service may not be running. Get-StorageGroupCo
pyStatus cmdlet will show updated status when the service completes the suspend
 request. Resume-StorageGroupCopy will clear the request.
At line:1 char:25
+ Suspend-StorageGroupCopy  <<<< "Mail1\First*" -StandbyMachine Mail2
[PS] C:\Windows\System32>Get-StorageGroup -Server Mail1 | Get-StorageGroupCopySt
atus -StandbyMachine Mail2

Name                      SummaryCopySt CopyQueueLeng ReplayQueueL LastInspecte
                          atus          th            ength        dLogTime
----                      ------------- ------------- ------------ ------------
Second Storage Group      NotConfigured 0             0
First Storage Group       Disabled      0             0


[PS] C:\Windows\System32>Update-StorageGroupCopy "Mail1\First*" -StandbyMachine
Mail2

Confirm
Continuous replication seeding found an obsolete checkpoint 'C:\Program
Files\Microsoft\Exchange Server\Mailbox\First Storage Group\E00.chk' file for
storage group copy 'First Storage Group'. The checkpoint file will be deleted,
and then the database will be seeded if you confirm now.
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):y
Update-StorageGroupCopy : Seeding failed : Database seeding error: Storage grou
p 'First Storage Group' is not suspended. The storage group must be suspended b
efore seeding. Use the Suspend-StorageGroupCopy cmdlet in the Exchange Manageme
nt Shell to suspend the storage group.
At line:1 char:24
+ Update-StorageGroupCopy  <<<< "Mail1\First*" -StandbyMachine Mail2
[PS] C:\Windows\System32>



restart the Microsoft Exchange Replication Service is running on both Mail1 and Mail2

Suspend-StorageGroupCopy "Mail1\First*" -StandbyMachine Mail2
then on Mail2, go the directory that has the database and log files and delete them

then run
Update-StorageGroupCopy "Mail1\First*" -StandbyMachine Mail2
this should reseed the database

then Resume-StorageGroupCopy "Mail1\First*" -StandbyMachine Mail2
this should get replication running
You mean delete the files in this folder
C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group
yes, from the target server Mail2
the update-storagegroupcopy will fail if files exist

you can move them to a temp location too
It wont let me delete these ramaining files because the "file is open in another program and i check task manager but nothing is running
which program might that be?
CatalogDat-354ad
E00
E00TMP
Mailbox Database.edb
tmp.edb
did you suspend the copy first?
you can stop the msexch replication service
It won't let me suspend the copy:

         Welcome to the Exchange Management Shell!

 Full list of cmdlets:          get-command
 Only Exchange cmdlets:         get-excommand
 Cmdlets for a specific role:   get-help -role *UM* or *Mailbox*
 Get general help:              help
 Get help for a cmdlet:         help <cmdlet-name> or <cmdlet-name> -?
 Show quick reference guide:    quickref
 Exchange team blog:            get-exblog
 Show full output for a cmd:    <cmd> | format-list

Tip of the day #2:

Are you tired of typing a long command every time that you want to do something?
 Alias it! Type:

 Set-Alias GetSg Get-StorageGroup

For all the current aliases, type:

 Get-Alias

[PS] C:\Windows\System32>Suspend-StorageGroupCopy "Mail1\First*" -StandbyMachine
 Mail2

Confirm
Are you sure you want to perform this action?
Suspending Storage Group Copy "First Storage Group".
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help
(default is "Y"):y
WARNING: The Microsoft Exchange Replication Service has not responded to the
suspend request in 5 seconds. The service may not be running. Press CTRL-C to
stop waiting for the service to respond, or alternatively, wait another 5
seconds before the operation times out.
Suspend-StorageGroupCopy : The Microsoft Exchange Replication Service has not r
esponded to the suspend request in 10 seconds. The ExecutionTimeout period has
elapsed. Operation exited without receiving a confirmation from the Microsoft E
xchange Replication Service. The service may not be running. Get-StorageGroupCo
pyStatus cmdlet will show updated status when the service completes the suspend
 request. Resume-StorageGroupCopy will clear the request.
At line:1 char:25
+ Suspend-StorageGroupCopy  <<<< "Mail1\First*" -StandbyMachine Mail2
[PS] C:\Windows\System32>
ASKER CERTIFIED SOLUTION
Avatar of endital1097
endital1097
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
After i ran the disable storage group command, I get the message below
but these D; and E; are empty...do i need to create the folder E:\logs and "D:\Store\Mailbox Database.edb"
[PS] C:\Windows\System32>Disable-StorageGroupCopy "Mail1\First*" -StandbyMachine
 Mail2 -Confirm:$False
WARNING: Storage group "Mail1\First*" has standby continuous replication (SCR)
disabled.  Manually delete all SCR target files from "E:\Logs" and
"D:\Store\Mailbox Database.edb" on server "Mail2".
[PS] C:\Windows\System32>
run the following
get-mailboxdatabase -server mail1 | fl edbfilepath
get-storagegroup "mail1\first*" | fl logfolder*,system*

this will give you the location of the database and log files that you need to remove on mail2
For get-mailboxdatabase -server mail1 | fl edbfilepath
EdbFilePath : D:\Store\Mailbox Database.edb  (However this folder does not exit, drive D: is empty right now)
C:\Windows\System32>get-storagegroup "mail1\first*" | fl logfolder*,system*
LogFolderPath    : E:\Logs (This folder does not exist either and drive E; is empty)
SystemFolderPath : C:\Program Files\Microsoft\Exchange Server\Mailbox\First Sto
                   rage Group (the system won't let me delete these files because it is in use by another program)

Do i need to create these folders?

Thanks
is the database under First Storage Group mounted? if it is mounted, then files must exist in these directories.
it is mounted but the only files right now are on the C: drive, the D: and E: drives are empty...
try the following
Get-MailboxDatabase -StorageGroup "mail1\first*" | fl Edb*

post results
if i use mail1
EdbFilePath : D:\Store\Mailbox Database.edb
but when i use mail2
EdbFilePath : C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage
              Group\Mailbox Database.edb
You should not have a database on the target system with the same storage group and name

scr will replicate the database from mail1 and part of the failover process is creating the storage group and database
you need to decide what type of resilience you want
http://technet.microsoft.com/en-us/library/bb691321(EXCHG.80).aspx