Mail Queue Warteschlange Exchange Datenbank verschieben

Mail Queue Warteschlange Exchange Datenbank verschieben

Move Mail Queue Database

Nach der Installation des Exchange Server ist es von Vorteil, wenn die Datenbanken direkt auf eigene Platten ausgelagert werden, ebenso die Logdateien.

Zum einen ist es besser für die Performance und Sicherheit, sowie ein weiterer Schritt dafür zu sorgen, das die Installationplatte “C” nicht vollaufen kann. Denn auch die Datenbank für die Mail-Queue kann mal eben schnell an die 150 GB anwachsen.

Den Queue Viewer finden wir in der Exchange Toolbox.

Mail Queue Warteschlange Exchange Datenbank verschieben

Über die Exchange Management-Shell können wir die Mail-Queue wie folgt einsehen:

Get-Queue

Get-Queue Exchange Management Shell

Mail Queue Warteschlange Exchange Datenbank verschieben

Als erstes sollte man dfür sorgen, das der oder die Exchange Server eine weitere Platte bekommen, die dann wie folgt zu formatieren gilt.

Mit dem Befehl Get-Disk kann die Nummer der Disk abgefragt werden. In meinem Fall ist es die Disk 3 die ich neu an das System angehängt habe.

Get-Disk 3 | Initialize-Disk -PartitionStyle GPT -PassThru | New-Partition -UseMaximumSize -DriveLetter Q | Format-Volume -FileSystem NTFS -AllocationUnitSize 65536 -NewFileSystemLabel Queue

Get-Disk 3 Initialize-Disk

Nachdem die neue Platte formatiert und Laufwerksbuchstaben zugewiesen bekommen hat, kann die Verschiebung der Datenbank beginnen. Microsoft stellt dafür ein fertiges Skript zur Verfügung.

Der Exchange Installationspfad kann über verschiedene Wege abgefragt werden. Hier ein Beispiel:

$env:exchangeInstallPath

Um zum Pfad zu wechseln in denen die Skripte liegen reicht das Absetzen des Befehls cd $exScripts

Exchange Install Path

Der Befehl zur Verschiebung der Datenbank, muss hinsichtlich des Laufwerksbuchstaben angepasst werden, mehr nicht! In diesem Fall ist es der Laufwerksbuchstabe “J” (das Ziel).

Mail Queue Warteschlange Exchange Datenbank verschieben

.\Move-TransportDatabase.ps1 -queueDatabasePath ‘J:\TransportRoles\data\Queue’ -queueDatabaseLoggingPath ‘J:\TransportRoles\data\Queue’ -iPFilterDatabasePath ‘J:\TransportRoles\data\IpFilter’ -iPFilterDatabaseLoggingPath ‘J:\TransportRoles\data\IpFilter’ -temporaryStoragePath ‘J:\TransportRoles\data\Temp’

Die Mail-Queue Datenbank wurde erfolgreich verschoben.

New Space Mail-Queue Database

Ausgabe der Shell beim verschieben der Mail Queue Datenbank
[PS] C:\Program Files\Microsoft\Exchange Server\V15\scripts>.\Move-TransportDatabase.ps1 -queueDatabasePath ‘J:\TransportRoles\data\Queue’ -queueDa
tabaseLoggingPath ‘J:\TransportRoles\data\Queue’ -iPFilterDatabasePath ‘J:\TransportRoles\data\IpFilter’ -iPFilterDatabaseLoggingPath ‘J:\Transport
Roles\data\IpFilter’ -temporaryStoragePath ‘J:\TransportRoles\data\Temp’
Queue Database Logging : Original path is C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\data\Queue; New path is J:\TransportRoles\data\Queue
Temporary Storage : Original path is C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\data\Temp; New path is J:\TransportRoles\data\Temp
IP Filter Database Logging : Original path is C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\data\IpFilter; New path is J:\TransportRoles\data\IpFilter
IP Filter Database : Original path is C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\data\IpFilter; New path is J:\TransportRoles\data\IpFilter
Queue Database : Original path is C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\data\Queue; New path is J:\TransportRoles\data\Queue
Required disk space: 2404384768 bytes. Target drive J: has 235963744256 bytes free.
Required disk space: 2147483648 bytes. Target drive J: has 235963744256 bytes free.
Required disk space: 2151677952 bytes. Target drive J: has 235963744256 bytes free.
Required disk space: 2155945984 bytes. Target drive J: has 235963744256 bytes free.
Required disk space: 145223589888 bytes. Target drive J: has 235963744256 bytes free.
Creating J:\TransportRoles\data\Queue.
Adding full control access to the directory for NetworkServiceSid.
Adding full control access to the directory for LocalSystemSid.
Adding full control access to the directory for BuiltinAdministratorsSid.
Creating J:\TransportRoles\data\Temp.
Adding full control access to the directory for NetworkServiceSid.
Adding full control access to the directory for LocalSystemSid.
Adding full control access to the directory for BuiltinAdministratorsSid.
Creating J:\TransportRoles\data\IpFilter.
Adding full control access to the directory for NetworkServiceSid.
Adding full control access to the directory for LocalSystemSid.
Adding full control access to the directory for BuiltinAdministratorsSid.
J:\TransportRoles\data\IpFilter already exists. Skipping directory creation.
NetworkServiceSid already has full control to the directory.
LocalSystemSid already has full control to the directory.
BuiltinAdministratorsSid already has full control to the directory.
J:\TransportRoles\data\Queue already exists. Skipping directory creation.
NetworkServiceSid already has full control to the directory.
LocalSystemSid already has full control to the directory.
BuiltinAdministratorsSid already has full control to the directory.
Preparing to stop the MSExchangeTransport service…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to stop…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to stop…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to stop…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to stop…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to stop…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to stop…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to stop…
MSExchangeTransport service is stopped sucessfully.
Saving a copy of original configuration file in C:\Program Files\Microsoft\Exchange Server\V15\bin\EdgeTransport.exe.config.20240108183708.old.
File trn.log has moved to the destination.
File trn002A8114.log has moved to the destination.
File trn002A8115.log has moved to the destination.
File trn002A8116.log has moved to the destination.
File trn002A8117.log has moved to the destination.
File trn002A8118.log has moved to the destination.
File trn002A8119.log has moved to the destination.
File trn002A811A.log has moved to the destination.
File trn002A811B.log has moved to the destination.
File trn002A811C.log has moved to the destination.
File trn002A811D.log has moved to the destination.
File trn002A811E.log has moved to the destination.
File trn002A811F.log has moved to the destination.
File trn002A8120.log has moved to the destination.
File trn002A8121.log has moved to the destination.
File trn002A8122.log has moved to the destination.
File trn002A8123.log has moved to the destination.
File trn002A8124.log has moved to the destination.
File trn002A8125.log has moved to the destination.
File trn002A8126.log has moved to the destination.
File trn002A8127.log has moved to the destination.
File trn002A8128.log has moved to the destination.
File trn002A8129.log has moved to the destination.
File trn002A812A.log has moved to the destination.
File trn002A812B.log has moved to the destination.
File trn002A812C.log has moved to the destination.
File trn002A812D.log has moved to the destination.
File trn002A812E.log has moved to the destination.
File trn002A812F.log has moved to the destination.
File trn002A8130.log has moved to the destination.
File trn002A8131.log has moved to the destination.
File trn002A8132.log has moved to the destination.
File trn002A8133.log has moved to the destination.
File trn002A8134.log has moved to the destination.
File trn002A8135.log has moved to the destination.
File trn002A8136.log has moved to the destination.
File trn002A8137.log has moved to the destination.
File trn002A8138.log has moved to the destination.
File trn002A8139.log has moved to the destination.
File trn002A813A.log has moved to the destination.
File trn002A813B.log has moved to the destination.
File trn002A813C.log has moved to the destination.
File trn002A813D.log has moved to the destination.
File trn002A813E.log has moved to the destination.
File trn002A813F.log has moved to the destination.
File trn002A8140.log has moved to the destination.
File trntmp.log has moved to the destination.
File Trnres00001.jrs has moved to the destination.
File Trnres00002.jrs has moved to the destination.
Skipping file Temp.edb because it doesn’t exist.
Queue Database Logging path is updated to J:\TransportRoles\data\Queue
Temporary Storage path is updated to J:\TransportRoles\data\Temp
File trn.log has moved to the destination.
File trn00000004.log has moved to the destination.
File trn00000005.log has moved to the destination.
File trn00000006.log has moved to the destination.
File trn00000007.log has moved to the destination.
File trntmp.log has moved to the destination.
File Trnres00001.jrs has moved to the destination.
File Trnres00002.jrs has moved to the destination.
Skipping file Temp.edb because it doesn’t exist.
IP Filter Database Logging path is updated to J:\TransportRoles\data\IpFilter
File IPFiltering.edb has moved to the destination.
File trn.chk has moved to the destination.
IP Filter Database path is updated to J:\TransportRoles\data\IpFilter
File mail.que has moved to the destination.
File trn.chk has moved to the destination.
Queue Database path is updated to J:\TransportRoles\data\Queue
Preparing to start the MSExchangeTransport service…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
WARNING: Waiting for service ‘Microsoft Exchange Transport (MSExchangeTransport)’ to start…
MSExchangeTransport service is started sucessfully.
Script execution completed successfully.
[PS] C:\Program Files\Microsoft\Exchange Server\V15\scripts>
[PS] C:\Program Files\Microsoft\Exchange Server\V15\scripts>