Solved

SCR Exchange 2007 Error

Posted on 2010-08-18
32
1,020 Views
Last Modified: 2012-05-10
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
Comment
Question by:Net_Admin1
  • 17
  • 15
32 Comments
 
LVL 32

Expert Comment

by:endital1097
ID: 33466072
you need to put "First Storage Group" in quotes :)
0
 

Author Comment

by:Net_Admin1
ID: 33475480
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
 
LVL 32

Expert Comment

by:endital1097
ID: 33475760
you have a space and misspelling
- StanbyMachine Mail2 should by -StandbyMachine Mail2
0
 

Author Comment

by:Net_Admin1
ID: 33476245
Ok Thanks,
What is the command to view the current replication settings?
0
 

Author Comment

by:Net_Admin1
ID: 33476386
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
 
LVL 32

Expert Comment

by:endital1097
ID: 33476397
Get-StorageGroupCopyStatus SGName -StandbyMachine TargetNode
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33476404
you must include the standbymachine switch
0
 

Author Comment

by:Net_Admin1
ID: 33476495
If it is showing disabled, what is the command to enable it
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33476569
post the results from
Get-StorageGroup -Server Mail1 | Get-StorageGroupCopyStatus -StandbyMachine Mail2
0
 

Author Comment

by:Net_Admin1
ID: 33476650

         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
 
LVL 32

Expert Comment

by:endital1097
ID: 33476686
Enable-StorageGroupCopy "Mail1\First Storage Group" -StandbyMachine Mail2 -ReplayLagTime 0.1:0:0
0
 

Author Comment

by:Net_Admin1
ID: 33476832
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
 

Author Comment

by:Net_Admin1
ID: 33477650
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
 
LVL 32

Expert Comment

by:endital1097
ID: 33477706
try the following

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

this should reseed the copy
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33477710
then Resume-StorageGroupCopy "Mail1\First*" -StandbyMachine Mail2
0
 

Author Comment

by:Net_Admin1
ID: 33477912
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 32

Expert Comment

by:endital1097
ID: 33477969
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
 

Author Comment

by:Net_Admin1
ID: 33478266
You mean delete the files in this folder
C:\Program Files\Microsoft\Exchange Server\Mailbox\First Storage Group
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33478299
yes, from the target server Mail2
the update-storagegroupcopy will fail if files exist

you can move them to a temp location too
0
 

Author Comment

by:Net_Admin1
ID: 33478439
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
 
LVL 32

Expert Comment

by:endital1097
ID: 33478460
did you suspend the copy first?
you can stop the msexch replication service
0
 

Author Comment

by:Net_Admin1
ID: 33478494
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
 
LVL 32

Accepted Solution

by:
endital1097 earned 500 total points
ID: 33478539
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
 

Author Comment

by:Net_Admin1
ID: 33478747
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
 
LVL 32

Expert Comment

by:endital1097
ID: 33478782
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
 

Author Comment

by:Net_Admin1
ID: 33478947
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
 
LVL 32

Expert Comment

by:endital1097
ID: 33479028
is the database under First Storage Group mounted? if it is mounted, then files must exist in these directories.
0
 

Author Comment

by:Net_Admin1
ID: 33479100
it is mounted but the only files right now are on the C: drive, the D: and E: drives are empty...
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33479135
try the following
Get-MailboxDatabase -StorageGroup "mail1\first*" | fl Edb*

post results
0
 

Author Comment

by:Net_Admin1
ID: 33479194
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
 
LVL 32

Expert Comment

by:endital1097
ID: 33479225
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
 
LVL 32

Expert Comment

by:endital1097
ID: 33479253
you need to decide what type of resilience you want
http://technet.microsoft.com/en-us/library/bb691321(EXCHG.80).aspx
0

Featured Post

Want to promote your upcoming event?

Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
"Migrate" an SMTP relay receive connector to a new server using info from an old server.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now