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

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>
0
Net_Admin1
Asked:
Net_Admin1
  • 17
  • 15
1 Solution
 
endital1097Commented:
you need to put "First Storage Group" in quotes :)
0
 
Net_Admin1Author Commented:
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>
0
 
endital1097Commented:
you have a space and misspelling
- StanbyMachine Mail2 should by -StandbyMachine Mail2
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
Net_Admin1Author Commented:
Ok Thanks,
What is the command to view the current replication settings?
0
 
Net_Admin1Author Commented:
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>
0
 
endital1097Commented:
Get-StorageGroupCopyStatus SGName -StandbyMachine TargetNode
0
 
endital1097Commented:
you must include the standbymachine switch
0
 
Net_Admin1Author Commented:
If it is showing disabled, what is the command to enable it
0
 
endital1097Commented:
post the results from
Get-StorageGroup -Server Mail1 | Get-StorageGroupCopyStatus -StandbyMachine Mail2
0
 
Net_Admin1Author Commented:

         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>
0
 
endital1097Commented:
Enable-StorageGroupCopy "Mail1\First Storage Group" -StandbyMachine Mail2 -ReplayLagTime 0.1:0:0
0
 
Net_Admin1Author Commented:
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>
0
 
Net_Admin1Author Commented:
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>
0
 
endital1097Commented:
try the following

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

this should reseed the copy
0
 
endital1097Commented:
then Resume-StorageGroupCopy "Mail1\First*" -StandbyMachine Mail2
0
 
Net_Admin1Author Commented:
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>



0
 
endital1097Commented:
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
0
 
Net_Admin1Author Commented:
You mean delete the files in this folder
C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group
0
 
endital1097Commented:
yes, from the target server Mail2
the update-storagegroupcopy will fail if files exist

you can move them to a temp location too
0
 
Net_Admin1Author Commented:
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
0
 
endital1097Commented:
did you suspend the copy first?
you can stop the msexch replication service
0
 
Net_Admin1Author Commented:
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>
0
 
endital1097Commented:
let's start the process over
Disable-StorageGroupCopy "Mail1\First*" -StandbyMachine Mail2 -Confirm:$False

remove/move all file from C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group on Mail2

run the following to verify both SGs are "Not Configured"
Get-StorageGroup -Server Mail1 | Get-StorageGroupCopySt
atus -StandbyMachine Mail2

enable the storage group copy
Enable-StorageGroupCopy "Mail1\First Storage Group" -StandbyMachine Mail2 -
ReplayLagTime 0.1:0:0

run the following to check the current status
Get-StorageGroup -Server Mail1 | Get-StorageGroupCopySt
atus -StandbyMachine Mail2
0
 
Net_Admin1Author Commented:
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>
0
 
endital1097Commented:
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
0
 
Net_Admin1Author Commented:
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
0
 
endital1097Commented:
is the database under First Storage Group mounted? if it is mounted, then files must exist in these directories.
0
 
Net_Admin1Author Commented:
it is mounted but the only files right now are on the C: drive, the D: and E: drives are empty...
0
 
endital1097Commented:
try the following
Get-MailboxDatabase -StorageGroup "mail1\first*" | fl Edb*

post results
0
 
Net_Admin1Author Commented:
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
0
 
endital1097Commented:
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
0
 
endital1097Commented:
you need to decide what type of resilience you want
http://technet.microsoft.com/en-us/library/bb691321(EXCHG.80).aspx
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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