Topic Last Modified: 2013-02-21
Flushes the Lync Server Storage Service database on each Front End server in a pool. Flushing a database involves writing all the queued data to disk, and then clearing the database queue. This cmdlet was introduced in Lync Server 2013.
Syntax
Invoke-CsStorageServiceFlush -FlushType <FullFlush |
SteadyStateFlush> -PoolFqdn <Fqdn> [-Binding
<String>] [-Force <SwitchParameter>]
[-HostNameStorageService <String>] [-WaitTime
<TimeSpan>]
|
Examples
Example 1
The command shown in Example 1 performs a “steady state” flush of the Storage Service databases found on the pool atl-cs-011.litwareinc.com. In a steady state flush, the only data removed from the queue (and written to disk) is data that can be removed without affecting the database operation.
Copy Code | |
---|---|
Invoke-CsStorageServiceFlush -PoolFqdn "atl-cs-001.litwareinc.com" -FlushType "SteadyState" |
Detailed Description
The Lync Server Storage Service provides a common interface and infrastructure for managing Lync Server data, including session data for monitoring, archiving, and conversation history, as well as for integrating with the Microsoft Exchange Server 2013 storage system. Like other databases, the Storage Service caches data in memory and then, as system resources permit, periodically writes that data to disk.
As a general rule, administrators do not have to interact with this queued data. However, there could be times when the queue becomes too large or because the Registrar pool associated with the database is being failed over. In cases like that, the Invoke-CsStorageServiceFlush cmdlet can be called in order to write all the queued data to disk and then clear the database cache.
The Invoke-CsStorageServiceFlush cmdlet is also useful when multiple Front End servers must be shut down at the same time (for example, in order to do a software upgrade). As a general rule, Front End servers in a pool should be shut down, and restarted, one-by-one; that helps prevent data loss that could occur due to routing group rebalancing. However, there might be occasions when you need to shutdown multiple servers at the same time. To help guard against potential loss, you can run the Invoke-CsStorageServiceFlush cmdlet before doing the computer shutdowns. This will flush the queue for the pool and write all that data to disk before any of the servers are actually shut down.
To return a list of all the role-based access control (RBAC) roles this cmdlet has been assigned to (including any custom RBAC roles you have created yourself), run the following command from the Windows PowerShell command-line interface prompt:
Get-CsAdminRole | Where-Object {$_.Cmdlets –match "Invoke-CsStorageServiceFlush"}
Lync Server Control Panel: The functions carried out by the Invoke-CsStorageServiceFlush cmdlet are not available in the Lync Server Control Panel.
Parameters
Parameter | Required | Type | Description |
---|---|---|---|
FlushType |
Required |
Microsoft.Rtc.Management.Hadr.FlushType |
Specifies the type of storage flush to be performed. Allowed values are: * SteadyState – The only data that will be flushed is data that can be removed from the queue without affecting normal operations of the storage service. This is typically done to remove older data from the queue. * FullFlush – Flushes all the data from the queue. This is typically used when a pool is being failed over, and when there is no expectation that the queue will be receiving any new data. |
PoolFqdn |
Required |
Microsoft.Rtc.Management.Deploy.Fqdn |
Fully qualified domain name of the pool containing the storage service to be flushed. |
Binding |
Optional |
System.String |
Windows Communication Foundation (WCF) binding. A WCF binding determines the transport, encoding, and protocol details required for clients and services to communicate with each other. valid values are: * NetNamedPipe * NetTCP |
Force |
Optional |
System.Management.Automation.SwitchParameter |
Suppresses the display of any non-fatal error message that might occur when running the command. |
HostNameStorageService |
Optional |
System.String |
Fully qualified domain name of the server where the Lync Server Storage Service is running. This parameter is required if the Binding is set to NetTCP. |
WaitTime |
Optional |
System.TimeSpan |
Specifies the maximum amount of time the cmdlet will wait before assuming that flushing has begun and moving on to the next step in the flushing process. |
Input Types
None. The Invoke-CsStorageServiceFlush cmdlet does not accept pipelined data.
Return Types
String value.