Microsoft On-Premise Server/Microsoft Server Solutions

Exchange 기본 Mailbox Database 삭제 방법

o959 2024. 1. 3. 11:07
반응형

Exchange 기본 Mailbox Database 삭제 방법

 

 

 

 

Exchange를 처음 설치한 뒤에 생성되는

기본 Mailbox Database를 삭제 해보려고 해요

 

 

 

 

 

 

새로운 Mailbox Database 생성

 

 

 

Exchange의 새로운 Database를 생성하여

기존 Database의 Mailbox를 이관해줘야 해요

 

 

 

신규 Database 생성

Exchange 관리 센터 - [서버] - [데이터베이스] "+" 클릭

저는 위 정보로 Database를 생성했어요

 

 

 

신규 Database 생성

정상적으로 생성되고 Mount 상태가 되었어요

 

 

 

 

기본 Mailbox Database의 Mailbox 이관

 

 

Mailbox가 있는지 확인 후 생성한 Database로 마이그레이션이 필요해요

아래 명령어를 참조해주세요

Get-MailboxDatabase | Get-Mailbox 

Name                      Alias                ServerName       ProhibitSendQuota                                                                                                                                                    
----                      -----                ----------       -----------------                                                                                                                                                    
Administrator             Administrator        ex01             Unlimited                                                                                                                                                            
DiscoverySearchMailbox... DiscoverySearchMa... ex01             50 GB (53,687,091,200 bytes)                                                                                                                                         



Get-MailboxDatabase | Get-Mailbox | New-MoveRequest -TargetDatabase EX-DB01 -BatchName Mailbox

DisplayName              StatusDetail        TotalMailboxSize         TotalArchiveSize PercentComplete
-----------              ------------        ----------------         ---------------- ---------------
Administrator            WaitingForJobPickup 540.9 KB (553,932 bytes)                  0              
Discovery Search Mailbox WaitingForJobPickup 0 B (0 bytes)                             0

 

 

 

 

 

Arbitration Mailbox도 있는지 확인 후 생성한 Database로 마이그레이션이 필요해요

아래 명령어를 참조해주세요

Get-MailboxDatabase | Get-Mailbox -Arbitration

Name                      Alias                ServerName       ProhibitSendQuota                                                                                                                                                    
----                      -----                ----------       -----------------                                                                                                                                                    
SystemMailbox{1f05a927... SystemMailbox{1f0... ex01             Unlimited                                                                                                                                                            
SystemMailbox{bb558c35... SystemMailbox{bb5... ex01             Unlimited                                                                                                                                                            
SystemMailbox{e0dc1c29... SystemMailbox{e0d... ex01             Unlimited                                                                                                                                                            
Migration.8f3e7716-201... Migration.8f3e771... ex01             300 MB (314,572,800 bytes)                                                                                                                                           
FederatedEmail.4c1f4d8... FederatedEmail.4c... ex01             1 MB (1,048,576 bytes)                                                                                                                                               
SystemMailbox{D0E409A0... SystemMailbox{D0E... ex01             Unlimited                                                                                                                                                            
SystemMailbox{2CE34405... SystemMailbox{2CE... ex01             Unlimited                                                                                                                                                            



Get-MailboxDatabase | Get-Mailbox -Arbitration | New-MoveRequest -TargetDatabase EX-DB01 -BatchName ArbitrationMailbox

DisplayName                           StatusDetail        TotalMailboxSize         TotalArchiveSize PercentComplete
-----------                           ------------        ----------------         ---------------- ---------------
Microsoft Exchange Approval Assistant WaitingForJobPickup 0 B (0 bytes)                             0              
Microsoft Exchange                    WaitingForJobPickup 74.55 KB (76,336 bytes)                   0              
Microsoft Exchange                    WaitingForJobPickup 163.2 KB (167,165 bytes)                  0              
Microsoft Exchange Migration          WaitingForJobPickup 0 B (0 bytes)                             0              
Microsoft Exchange Federation Mailbox WaitingForJobPickup 0 B (0 bytes)                             0              
E4E Encryption Store - Active         WaitingForJobPickup 0 B (0 bytes)                             0              
Microsoft Exchange                    WaitingForJobPickup 0 B (0 bytes)                             0

 

 

 

 

Monitoring Mailbox도 있는지 확인 후 생성한 Database로 마이그레이션이 필요해요

아래 명령어를 참조해주세요

Get-MailboxDatabase | Get-Mailbox -Monitoring

Name                      Alias                ServerName       ProhibitSendQuota                                                                                                                                                    
----                      -----                ----------       -----------------                                                                                                                                                    
HealthMailbox4eca5a6db... HealthMailbox4eca... ex01             Unlimited                                                                                                                                                            
HealthMailboxc5b41b1e7... HealthMailboxc5b4... ex01             Unlimited                                                                                                                                                            
HealthMailbox3aa3bfd48... HealthMailbox3aa3... ex01             Unlimited                                                                                                                                                            
HealthMailbox33e39f393... HealthMailbox33e3... ex01             Unlimited                                                                                                                                                            
HealthMailboxb5c811235... HealthMailboxb5c8... ex01             Unlimited                                                                                                                                                            
HealthMailboxf29d16259... HealthMailboxf29d... ex01             Unlimited                                                                                                                                                            
HealthMailboxdbd9220c4... HealthMailboxdbd9... ex01             Unlimited                                                                                                                                                            
HealthMailbox8b2700bfc... HealthMailbox8b27... ex01             Unlimited                                                                                                                                                            
HealthMailboxee8298085... HealthMailboxee82... ex01             Unlimited                                                                                                                                                            
HealthMailbox8ea18b457... HealthMailbox8ea1... ex01             Unlimited                                                                                                                                                            
HealthMailbox4a8625d88... HealthMailbox4a86... ex01             Unlimited                                                                                                                                                            
HealthMailboxcf0c15064... HealthMailboxcf0c... ex01             Unlimited                                                                                                                                                            
HealthMailbox6c759e9cd... HealthMailbox6c75... ex01             Unlimited                                                                                                                                                            



Get-MailboxDatabase | Get-Mailbox -Monitoring | New-MoveRequest -TargetDatabase EX-DB01 -BatchName MonitoringMailbox

DisplayName                                    StatusDetail        TotalMailboxSize         TotalArchiveSize         PercentComplete
-----------                                    ------------        ----------------         ----------------         ---------------
HealthMailbox-EX01-Mailbox-Database-0811166626 WaitingForJobPickup 560.9 KB (574,340 bytes) 115.8 KB (118,531 bytes) 0              
HealthMailbox-EX01-001                         WaitingForJobPickup 626.4 KB (641,407 bytes) 586.1 KB (600,150 bytes) 0              
HealthMailbox-EX01-002                         WaitingForJobPickup 69.17 KB (70,829 bytes)  109.8 KB (112,449 bytes) 0              
HealthMailbox-EX01-003                         WaitingForJobPickup 69.17 KB (70,832 bytes)  109.8 KB (112,449 bytes) 0              
HealthMailbox-EX01-004                         WaitingForJobPickup 69.17 KB (70,828 bytes)  109.8 KB (112,449 bytes) 0              
HealthMailbox-EX01-005                         WaitingForJobPickup 69.17 KB (70,833 bytes)  109.8 KB (112,449 bytes) 0              
HealthMailbox-EX01-006                         WaitingForJobPickup 88.12 KB (90,232 bytes)  109.8 KB (112,449 bytes) 0              
HealthMailbox-EX01-007                         WaitingForJobPickup 69.17 KB (70,829 bytes)  109.8 KB (112,449 bytes) 0              
HealthMailbox-EX01-008                         WaitingForJobPickup 69.17 KB (70,832 bytes)  106.9 KB (109,501 bytes) 0              
HealthMailbox-EX01-009                         WaitingForJobPickup 69.17 KB (70,830 bytes)  106.9 KB (109,501 bytes) 0              
HealthMailbox-EX01-010                         WaitingForJobPickup 69.17 KB (70,829 bytes)  106.9 KB (109,501 bytes) 0              
HealthMailbox-EX01-Default-Database            WaitingForJobPickup 59.66 KB (61,092 bytes)  0 B (0 bytes)            0

 

 

 

 

AuditLog Mailbox도 있는지 확인 후 생성한 Database로 마이그레이션이 필요해요

아래 명령어를 참조해주세요

Get-MailboxDatabase | Get-Mailbox -AuditLog

Name                      Alias                ServerName       ProhibitSendQuota                                                                                                                                                    
----                      -----                ----------       -----------------                                                                                                                                                    
SystemMailbox{8cc370d3... SystemMailbox{8cc... ex01             50 GB (53,687,091,200 bytes)                                                                                                                                         



Get-MailboxDatabase | Get-Mailbox -AuditLog | New-MoveRequest -TargetDatabase EX-DB01 -BatchName AuditLogMailbox

DisplayName                                         StatusDetail        TotalMailboxSize TotalArchiveSize PercentComplete
-----------                                         ------------        ---------------- ---------------- ---------------
SystemMailbox{8cc370d3-822a-4ab8-a926-bb94bd0641a9} WaitingForJobPickup 0 B (0 bytes)                     0

 

 

 

 

 

이후 마이그레이션이 완료된 상태 인지 확인 후 Request 상태를 삭제 해주세요

Get-MoveRequest

DisplayName                                         Status    TargetDatabase
-----------                                         ------    --------------
Administrator                                       Completed EX-DB01       
Microsoft Exchange Approval Assistant               Completed EX-DB01       
Microsoft Exchange                                  Completed EX-DB01       
Microsoft Exchange                                  Completed EX-DB01       
Discovery Search Mailbox                            Completed EX-DB01       
Microsoft Exchange Migration                        Completed EX-DB01       
Microsoft Exchange Federation Mailbox               Completed EX-DB01       
E4E Encryption Store - Active                       Completed EX-DB01       
Microsoft Exchange                                  Completed EX-DB01       
SystemMailbox{8cc370d3-822a-4ab8-a926-bb94bd0641a9} Completed EX-DB01       
HealthMailbox-EX01-Mailbox-Database-0811166626      Completed EX-DB01       
HealthMailbox-EX01-001                              Completed EX-DB01       
HealthMailbox-EX01-002                              Completed EX-DB01       
HealthMailbox-EX01-003                              Completed EX-DB01       
HealthMailbox-EX01-004                              Completed EX-DB01       
HealthMailbox-EX01-005                              Completed EX-DB01       
HealthMailbox-EX01-006                              Completed EX-DB01       
HealthMailbox-EX01-007                              Completed EX-DB01       
HealthMailbox-EX01-008                              Completed EX-DB01       
HealthMailbox-EX01-009                              Completed EX-DB01       
HealthMailbox-EX01-010                              Completed EX-DB01       
HealthMailbox-EX01-Default-Database                 Completed EX-DB01       



Get-MoveRequest | Remove-MoveRequest

 

 

 

여기까지 진행했으면 Default Mailboxdatabase에 사서함 정보가 없게 돼요

 

 

 

 

Default Mailbox Dabase 삭제

 

우선 기본 Database를 Dismount 해주세요

Remove-MailboxDatabase -Identity Default-DataBase
WARNING: The specified database has been removed. You must remove the database file located in C:\Program Files\Microsoft\Exchange Server\V15\Mailbox\Mailbox Database 0811166626\Mailbox Database 0811166626.edb from your computer m
anually if it exists. Specified database: Default-Database

 

 

폴더 내 프로그램은 직접 삭제해달라는 Warning 메시지 입니다

 

 

 

기본 Mailbox Database가 삭제가 완료 되었습니다!

 

 

 

 

 

 

 

 

반응형