安裝 DPMGet DPM installed

重要

已不再支援此版本的 Data Protection Manager (DPM),建議升級至 DPM 2019This version of Data Protection Manager (DPM) has reached the end of support, we recommend you to upgrade to DPM 2019.

以下是您需要執行以設定 System Center Data Protection Manager (DPM) 的動作:Here's what you need to do to set up System Center Data Protection Manager (DPM):

  1. 閱讀安裝必要條件Read the Setup prerequisites
  2. 驗證 DPM 作業系統是否相容。Verify the DPM operating system is compatible.
  3. 設定 SQL Server 資料庫以儲存 DPM 設定和組態資訊。Set up a SQL Server database to store DPM settings and configuration information.
  4. 設定 DPM。Set up DPM. 您可以從使用者介面安裝 DPM,或執行自動安裝You can Install DPM from the user interface, or Run an unattended install. 如果您想要在網域控制站上安裝 DPM,請遵循這些指示Follow these instructions if you want to Install DPM on a domain controller

安裝必要條件Setup prerequisites

環境Environment 安裝的詳細資料或詳細資訊Details or specifics for the installation
基本的 DPM 安裝必要條件Basic DPM installation prerequisites 在 DPM 伺服器上需要多個元件。A number of components are needed on the DPM server. 這些會在安裝期間自動安裝︰These are installed automatically during setup:

- .NET Framework 4.0 或 4.5 (DPM 2016/2019);SQL 安裝 (SQL 2016 之前) 需要的 .NET Framework 3.5;SQL 安裝 (SQL 2016 及更新版本) 需要的 .NET Framework 4.6。- .NET Framework 4.0 or 4.5 (DPM 2016/2019); .NET Framework 3.5 required for SQL installation (Before SQL 2016); .NET Framework 4.6 required for SQL installation (SQL 2016 onwards) . 如果未自動安裝,請使用伺服器管理員中的 [新增功能] 安裝。Install with Add Features in Server Manager if it doesn't install automatically.
- Windows Installer 4.5 (或更新版本)。- Windows Installer 4.5 (or later). 已在安裝作業系統時一起安裝,但也可以使用系統管理員身分從 DPM\setup\redist\WindowsInstaller\INSTMSI45.EXE 進行安裝。Installed as part of the operating system but can also be installed as an administrator from DPM\setup\redist\WindowsInstaller\INSTMSI45.EXE.
- Microsoft Visual C++ 2012 可轉散發套件;Microsoft Visual C++ 2010 可轉散發套件;Microsoft Visual C++ 2008 可轉散發套件。- Microsoft Visual C++ 2012 Redistributable; Microsoft Visual C++ 2010 Redistributable; Microsoft Visual C++ 2008 Redistributable.
- PowerShell 3.0 (隨附於 Windows Server 2012 R2 或 2012)- PowerShell 3.0 (included with Windows Server 2012 R2 or 2012)
DPM 資料庫DPM database
- 確認支援的 SQL Server 版本 (適用於 DPM 資料庫)。- Verify supported SQL server versions for the DPM database.
- 您可以在 DPM 伺服器或遠端伺服器上安裝 SQL Server。- You can install SQL server on the DPM server or on a remote server.
- 在安裝 DPM 之前,先在本機或遠端安裝 SQL。- Have SQL installed locally or remotely before you install DPM.
- 如果您遠端安裝資料庫,則執行遠端執行個體的電腦必須與 DPM 伺服器位於相同網域和時區。- If you install the database remotely, the computer running the remote instance must be in the same domain and time zone as the DPM server.
- 如果您是執行遠端資料庫,請務必在安裝 DPM 之前,先在遠端 SQL 電腦上執行 SQL 準備工具。- If you're running a remote database, make sure to run SQL Prep tool on the remote SQL computer before installing DPM.
- SQL Server 可以是獨立式或在叢集中執行。- SQL server can be standalone or running in a cluster.
- 如果 SQL Server 已叢集處理,報表伺服器與 SQL Server 應該位於不同的電腦上。- If SQL server is clustered, Reporting server and SQL server should be on different computers.
- 您無法在網域控制站上執行 SQL Server。- You can't run SQL server on a domain controller.
- 您無法使用 SQL Server Always-On 部署。- You can't use a SQL server Always-On deployment.
- 如果您將 DPM 部署為 Azure 虛擬機器 (VM),請將使用執行 SQL Server 的 Azure VM 作為遠端 SQL Server 執行個體。- If you deploy DPM as an Azure virtual machine (VM), use an Azure VM running SQL server as a remote SQL server instance. 您無法在此部署中使用內部部署 SQL Server,而且目前不支援 Azure SQL 資料庫。You can't use an on-premises SQL server in this deployment, and Azure SQL database isn't currently supported.
DPM 已安裝為 Hyper-V VMDPM installed as Hyper-V VM 如果您是將 DPM 安裝為 Hyper-V 虛擬機器,請注意:If you're installing DPM as a Hyper-V virtual machine note that:

  • 虛擬 DPM 安裝不適用於擴充環境。Virtual DPM installation isn't for scaled up environments. 請改用直接連結/SAN 型存放裝置。Instead, use direct attach/SAN-based storage. 相較於使用 SAN,在使用 VHDX 檔案的擴充 (CSV 上的 Hyper-V) 環境中,效能可能會減損。Performance can suffer in scaled up (Hyper-V on CSV) environments using VHDX files compared to SAN. 因此,不建議您在擴充環境中使用 VHDX。Therefore, for scaled up environments we don't recommend using VHDX.
  • VHDX 沒有大小限制。There's no size limit for VHDX.
    支援固定和動態擴擴充 VHDX 檔案。Both fixed and dynamically expanding VHDX files are supported.
  • DPM 存放集區可支援 VHD 和 VHDX 檔案。Both VHD and VHDX files are supported in the DPM storage pool.
    需要虛擬 DPM 安裝,才能支援將虛擬硬碟新增至存放集區。A virtual DPM installation is required to support adding virtual hard drives to the storage pool.
  • 遠端 SMB 共用可支援使用 VHD 和 VHDX 檔案作為動態和固定虛擬硬碟。For dynamic and fixed virtual hard drives, VHD and VHDX files are supported on remote SMB shares.
  • 從 DPM 2012 R2 (含 Update 3) 開始,您可以將 DPM 執行為 Hyper-V 虛擬機器,並支援使用綜合 FC 的磁帶。From DPM 2012 R2 with Update 3 onwards you can run DPM as a Hyper-V virtual machine with support for tape drives using synthetic FC.
  • 若為高可用性 DPM 儲存體,虛擬硬碟應放在向外擴充的檔案伺服器 (SOFS) 上。For high availability DPM storage, virtual hard drives should be placed on scaled-out file servers (SOFS). 相應放大的檔案伺服器需要 SMB 3.0。SMB 3.0 is required for scaled-out file servers.
  • 虛擬 DPM 安裝不支援︰Virtual DPM installations don't support:

    • 建立在儲存空間上的 Windows 2012 儲存空間或虛擬硬碟。Windows 2012 Storage Spaces or virtual hard drives built on top of storage spaces.
      也不支援在 Windows 2012 儲存空間本機或遠端裝載 VHDX 檔案。Local or remote hosting of VHDX files on Windows 2012 storage space also isn't supported.
    • 在主控硬碟的磁碟區上啟用磁碟重複資料刪除。Enabling Disk Dedupe on volumes hosting virtual hard drives.
    • Windows 2012 iSCSI 目標 (使用虛擬硬碟) 作為 DPM 存放集區。Windows 2012 iSCSI targets (which use virtual hard drives) as a DPM storage pool.
    • 對主控 DPM 存放集區所用 VHD 檔案的磁碟區進行 NTFS 壓縮。NTFS compression for volumes hosting VHD files used in the DPM storage pool.
    • 在裝載用於存放集區之 VHD 檔案的磁碟區上使用 BitLocker。BitLocker on volumes hosting VHD files used for the storage pool.
    • DPM 存放集區中 VHDX 檔案之實體磁碟的原生 4K 磁區大小。A native 4K sector size of physical disks for VHDX files in the DPM storage pool.
    • Windows 2008 伺服器上主控的虛擬硬碟。Virtual hard drives hosted on Windows 2008 servers.
做為 Azure 虛擬機器的 DPMDPM as an Azure virtual machine
  • 任何 A2 大小或更大的 Azure IaaS 虛擬機器支援 DPM。DPM is supported on any Azure IaaS virtual machine of size A2 or higher.
    您可以使用 DPM Azure 虛擬機器大小計算機選取 DPM 虛擬機器的大小。You can select a size for the DPM virtual machine using the DPM Azure virtual machine size calculator. 因為標準層的每個連接磁碟的最大 IOPS 高過基本層,所以設定虛擬機器時,請在標準計算層中建立執行個體。When you set up the virtual machine create an instance in the Standard compute tier because the maximum IOPS per attached disk is higher in the Standard tier than in the Basic tier.
  • DPM 可以如保護矩陣中詳述的方式來保護工作負載。DPM can protect the workloads as detailed here in protection matrix.
  • DPM 可以保護跨多個具有相同 Azure 虛擬網路和 Azure 訂用帳戶的 Azure 雲端服務執行的工作負載。DPM can protect workloads that run across multiple Azure cloud services that have the same Azure virtual network and Azure subscription.
    作為 Azure 虛擬機器執行的 DPM 無法保護內部部署資料。DPM running as an Azure virtual machine can't protect on-premises data.
  • 請為 DPM 虛擬機器使用不同的儲存體帳戶,因為儲存體帳戶有大小和 IOPS 限制,如果與其他執行虛擬機器的機器共用,可能會對 DPM 虛擬機器的效能造成影響。Use a separate storage account for the DPM virtual machine, because there are size and IOPS limits on a storage account that might impact the performance of the DPM virtual machine if shared with other running virtual machines. DPM 虛擬機器和受保護的工作負載應同屬於相同 Azure 虛擬網路的一部分。The DPM virtual machine and the protected workloads should be part of the same Azure virtual network.
  • 可用於目標儲存體 (DPM 存放集區) 的磁碟數目會受限於虛擬機器 (最多 16 個) 的大小。The number of disks that can be used for the target storage (DPM storage pool) is limited by the size of the virtual machine (maximum of 16). 在 DPM 伺服器上執行的 Azure 備份代理程式需要暫存位置,以供自己使用 (快取位置) 和供從雲端還原的資料使用 (本機臨時區域)。The Azure Backup agent running on the DPM server needs temporary storage for its own use (a cache location), and for data restored from the cloud (local staging area). 請注意,每個 Azure 虛擬機器會隨附幾個暫存磁碟儲存體。Note that each Azure virtual machine comes with some temporary disk storage. 磁碟區 D:\ 可供使用者使用。This is available to the user as the volume D:\. Azure 備份所需的本機臨時區域可以位於 D:\ 內,而並快取位置可以放在 C:\ 上。The local staging area needed by Azure Backup can be configured to reside in D:\, and the cache location can be placed on C:\. 如此一來,連接至 DPM 虛擬機器的資料磁碟便無需劃分空間。In this way, no space needs to be carved out from the data disks attached to the DPM virtual machine.
  • 您可以將資料儲存到連接至 DPM 虛擬機器的 Azure 磁碟上。You store data on Azure disks attached to the DPM virtual machine. 連接至虛擬機器後,您可以從 DPM 內部管理磁碟和儲存空間。Once attached to the virtual machine, the disks and the storage space are managed from within DPM. 您可以備份的資料量,取決於連接至 DPM 虛擬機器的磁碟數量和大小。The amount of data you can back up depends on the number and size of disks attached to the DPM virtual machine. 每個 Azure 虛擬機器都有可連接的最大磁碟數量 (A2V2、A4V2、A8V2 為 4 個磁碟),和每個磁碟的最大大小限制 (1 TB)。There is a maximum number of disks that can be attached to each Azure virtual machine (4 disks for A2V2, A4V2, A8V2), and maximum size of each disk (1 TB). 這會決定可用的備份存放集區總和。This determines the total backup storage pool available. 我們建議您在連接 DPM 的 Azure 磁碟上將資料保留一天的時間,並將時間超過一天的資料儲存在 Azure 備份服務。We recommend you retain data for one day on DPM-attached Azure disk, and store data older than one day in the Azure Backup service. 這可提供較長保留範圍的資料存放區,並藉由將資料卸載至 Azure 備份進而保護更大量的資料。This provides data store for a longer retention range, and allows you to protect a larger amount of data by offloading it to Azure Backup.
  • 如果您想要調整部署,您可以使用下列選項:If you want to scale your deployment you have the following options:

    • 選項 1,擴大:將 DPM 虛擬機器的大小從 A2V2、A4V2、A8V2 增加,並新增多個本機儲存體。Option 1, Scale up: Increase the size of the DPM virtual machine from A2V2, A4V2, A8V2, and add more local storage.
    • 選項 2,卸載資料:將較舊的資料傳送至 Azure 備份,並只將最新資料保留在連結至 DPM 伺服器的儲存體上。Option 2, Offload data: Send older data to Azure Backup, and retain only the newest data on the storage attached to the DPM server.
    • 選項 3,擴增:新增更多的 DPM 伺服器來保護工作負載。Option 3, Scale out: Add more DPM servers to protect the workloads.
  • 下面的表格 A 摘要說明每種 DPM 虛擬機器大小的最大受保護工作負載數目。The maximum number of protected workloads for each DPM virtual machine size is summarized in Table A below.

表格 ATable A

VM 大小VM size 最大受保護工作負載Max protected workloads 平均工作負載大小Avg workload size 平均工作負載變換 (每日)Avg workload churn (daily)
A2V2A2V2 2020 100 GB100 GB 5% 淨變換Net 5% churn
A4V2A4V2 4040 150 GB150 GB 10% 淨變換Net 10% churn
A8V2A8V2 6060 200 GB200 GB 15% 淨變換Net 15% churn

設定 SQL Server 資料庫Set up a SQL Server database

在下列情況中,您必須設定 SQL Server 資料庫︰You'll need to set up a SQL Server database if:

  • 您執行的是 DPM 2019、2016You're running DPM 2019, 2016

設定 SQL Server 資料庫:To set up a SQL Server database:

  1. 在將安裝 DPM 的本機伺服器或遠端伺服器上,執行 SQL Server 安裝程式。Run SQL Server setup on the local server on which you'll install DPM, or on a remote server.

  2. 在 [安裝] 索引標籤上,按一下 [新增 SQL Server 獨立安裝或將功能加入至現有安裝] 。On the Installation tab, click New SQL Server stand-alone installation or add features to an existing installation.

  3. 在 [產品金鑰] 索引標籤上,輸入有效的授權金鑰。On the Product Key tab enter a valid license key. 在 [安裝程式支援規則] 索引標籤上,更正任何失敗,然後再繼續。On the Setup Support Rules tab, correct any failures before proceeding. 在 [安裝程式角色] 索引標籤上,選取 [SQL Server 功能安裝] On the Setup Role tab select SQL Server Feature Installation

  4. 在 [功能選擇] 索引標籤上,選取 [Database Engine Services] 。On the Feature Selection tab select Database Engine Services. 在 [執行個體功能] 中,選取 [Reporting Services - 原生] 。In Instance Features, select Reporting Service - Native. 在 [安裝規則] 索引標籤上檢閱規則。On the Installation Rules tab review the rules.

  5. 在 [執行個體組態] 索引標籤上,指定將用於 DPM 的 SQL Server 執行個體名稱。On the Instance Configuration tab specify the name of SQL Server instance you'll use for DPM. 請勿在名稱中使用底線或當地語系化的字元。Don't use an underscore or localized characters in the name. 在 [磁碟空間需求] 中檢閱資訊。In Disk Space Requirements review the information.

  6. 在 [伺服器組態] -> [服務帳戶] 中,指定要用於執行 SQL Server 服務的網域帳戶:In Server Configuration -> Service Accounts specify the domain accounts under which the SQL Server services should run:

    • 建議您使用單一的專用網域使用者帳戶,來執行 SQL Server 服務 (SQL Server Agent、SQL Server Database Engine 和 SQL Server Reporting Services)。We recommend you use a single, dedicated domain user account to run SQL Server services, SQL Server agent, SQL Server Database Engine, and SQL Server Reporting services.

    • 如果您要在 RODC 上安裝 DPM,則請使用您在該處建立的 DPMSQLSvcsAcctaccount。If you're installing DPM on an RODC then use the DPMSQLSvcsAcctaccount you created there. 請注意,此使用者帳戶必須是安裝遠端執行個體之網域控制站上的本機 Administrators 群組成員。Note that the user account must be a member of the local Administrators group on the domain controller where the remote instance is installed. 完成安裝之後,您可以從本機系統管理員群組移除該使用者帳戶。After setup is complete, you can remove the user account from the local Administrators group. 除了 RODC 上的安裝之外,您還需要輸入在針對 DPM 設定 RODC 並建立 DPMR$MACHINENAME 帳戶時所選取的密碼。In addition for installation on an RODC you'll need to enter the password you selected when you set up RODC for DPM and crated the DPMR$MACHINENAME account.

    • 當您建立網域使用者帳戶時,請為它提供可能的最低權限、指定不會到期的強式密碼,以及容易識別的名稱。When you create a domain user account give it the lowest possible privileges, assign it a strong password that does not expire, and give it a name that's easily identifiable. 您會將此帳戶新增至本機 Administrators 群組,以及稍後精靈中的 SQL Server Sysadmin 固定伺服器角色。You'll add this account to the local Administrators group and to the SQL Server Sysadmin fixed server role later in the wizard.

    • 除了「SQL 全文檢索篩選背景程式啟動器」以外,所有服務都應該設定為「自動」。All services except the SQL Full-text Filter Daemon Launcher should be set to Automatic.

  7. 在 [資料庫引擎組態] 索引標籤上,接受 [Windows 驗證模式] 設定。On the Database Engine Configuration tab, accept the Windows authentication mode setting. DPM 系統管理員需要「SQL Server 管理員」 權限。DPM admins need SQL Server administrator permissions. 在 [指定 SQL Server 管理員] 中,新增 DPM 系統管理員。In Specify SQL Server administrators, add DPM Admins. 如果需要,您可以新增其他帳戶。You can add additional accounts if you need to. 使用預設值完成精靈的其他步驟,然後按一下 [安裝準備就緒] -> [安裝] 。Complete the rest of the wizard with the default settings and click Ready to Install -> Install.

  8. 如果您要在遠端電腦上安裝 SQL Server,請執行下列作業︰If you're installing SQL Server on a remote computer do the following:

    • 安裝 DPM 支援檔案 (SQLPrep)。Install the DPM support files (SQLPrep). 若要這麼做,請在 SQL Server 電腦上插入 DPM DVD,並啟動 setup.exe。To do this, on the SQL Server computer insert the DPM DVD and start setup.exe. 遵循精靈來安裝 Microsoft Visual C++ 2012 可轉散發套件。Follow the wizard to install the Microsoft Visual C++ 2012 redistributable. DPM 支援檔案將自動安裝。The DPM support files will be installed automatically.

    • 設定防火牆規則,讓 DPM 伺服器可以與 SQL Server 電腦通訊:Set up firewall rules so that the DPM server can communicate with the SQL Server computer:

      • 確定使用預設失敗稽核啟用 TCP/IP,並啟用密碼原則檢查Make sure TCP/IP is enabled with default failure audit and enable password policy checking.

      • 若要允許連接埠 80 上的 TCP,請為 SQL Server 的 DPM 執行個體設定 sqlservr.exe 的傳入例外狀況。To allow TCP on port 80, configure an incoming exception for sqlservr.exe for the DPM instance of SQL Server. 報表伺服器會在連接埠 80 上接聽 HTTP 要求。The report server listens for HTTP requests on port 80.

      • 啟用遠端 SQL Server 上的 RPC。Enable RPC on the remote SQL Server.

      • 資料庫引擎的預設執行個體會在 TCP 連接埠 1443 上進行接聽。The default instance of the database engine listens on TCP port 1443. 您可以修改此設定。This setting can be modified. 若要使用 SQL Server Browser 服務連接到不在預設 1433 連接埠上接聽的執行個體,您將需要 UDP 連接埠 1434。To use the SQL Server Browser service to connect to instances that don't listen on the default 1433 port, you'll need UDP port 1434.

      • SQL Server 的具名執行個體預設會使用動態連接埠。Named instance of SQL Server uses Dynamic ports by default. 您可以修改此設定。This setting can be modified.

      • 您可以在 SQL Server 錯誤記錄檔中檢視資料庫引擎目前使用的連接埠號碼。You can see the current port number used by the database engine in the SQL Server error log. 您可以使用 SQL Server Management Studio 並連接到具名執行個體,以檢視錯誤記錄檔。You can view the error logs by using SQL Server Management Studio and connecting to the named instance. 您可以在伺服器接聽於 ['any' port_number] 上的項目中,在 [管理 - SQL Server 記錄檔] 下檢視目前的記錄檔。You can view the current log under the Management - SQL Server Logs in the entry Server is listening on ['any' port_number].

注意

安裝 DPMInstall DPM

重要

安裝 DPM 時,網域名稱和 SQL 電腦名稱請使用 NetBIOS 名稱。When installing DPM, use NetBIOS names for the domain name and SQL machine name. 請不要使用完整網域名稱 (FQDN)。Do not use fully qualified domain names (FQDN).

  1. 必要時,請將 DPM 2016.exe (適用於 DPM 2016)/DPM 2019.exe (適用於 DPM 2019) 檔案解壓縮到您要執行 DPM 的電腦。If required, extract the DPM 2016.exe (for DPM 2016)/DPM 2019.exe (for DPM 2019) file onto the machine on which you want to run DPM. 若要這樣做,請執行 exe 檔案,並按一下 [歡迎使用] 畫面上的 [下一步] 。To do this, run the exe file and on the Welcome screen, click Next. 在 [選取目的地位置] 中,指定您要在其中解壓縮安裝檔案的位置。In Select Destination Location specify where you want to extract the installation files to. 在 [Ready to Extract (解壓縮準備就緒)] 中,按一下 [解壓縮] 。In Ready to Extract click Extract.. 在解壓縮完成之後,請移至指定的位置,並執行 Setup.exeAfter the extraction finishes go to the specified location and run Setup.exe.

  2. 在 DPM 安裝程式的 [歡迎使用] 頁面上,按 [下一步] 。On the Welcome page of DPM Setup click Next. 在 [授權條款] 頁面上,接受合約 > [確定] 。On the License Terms page accept the agreement > OK.

  3. 在 [檢查必要條件] 頁面上,等待檢查,並先解決任何問題,再繼續進行。On the Prerequisites Check page, wait for the check and resolve any issues before proceeding.

  4. 在 [產品註冊] 頁面上,按 [下一步] 。On the Product Registration page click Next. 在 [Microsoft Update 選擇加入] 頁面上,選擇您是否要在 Microsoft Update 中包括 DPM。On the Microsoft Update Opt-In page, choose whether you want to include DPM in your Microsoft Updates.

  5. 在 [設定摘要] 頁面上檢查設定,然後按 [安裝] 。On Summary of Settings page check the settings and click Install. 安裝完成之後,請按一下 [關閉] 。After install is complete click Close. 這樣會自動啟動 Windows Update,檢查是否有任何變更。It will automatically launch Windows update to check for changes.

執行自動安裝Run an unattended install

如下所示執行自動安裝:Run an unattended install as follows:

  1. 請確定您已安裝必要條件,再開始。Make sure you have the prerequisites installed before you start.

  2. 在遠端 SQL Server 上,先確定 .NET 3.5 (適用於 SQL 2016) 4.0 或 4.5 (SQL 2017) 安裝於 Windows server 上,再安裝 SQL。On the remote SQL Server, make sure .NET Framework 3.5 (for SQL 2016) 4.0 or 4.5 (SQL 2017) is installed on Windows server before installing SQL.

  3. 您可以使用下列程式碼,確定已開啟防火牆︰Use the following code to make sure the firewall is opened:

    netsh advfirewall firewall add rule name=DPM_SqlServr.exe dir=in action=allow program=\"%PROGRAMFILES%\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqlservr.exe\" profile=Domain  
    netsh advfirewall firewall add rule name=DPM_UDP_Port_1434 dir=in action=allow protocol=UDP localport=1434 profile=Domain
    
  4. 在本機或遠端伺服器上安裝 SQL Server。Install SQL Server on the local or remote server.

  5. 複製下列文字貼入 「記事本」 (或其他文字編輯器),並在 DPM 伺服器上將指令碼儲存為 DPMSetup.ini。Copy the following text into Notepad (or another text editor) and save the script on the DPM server as DPMSetup.ini. 不論 SQL Server 執行個體是安裝在 DPM 伺服器還是遠端伺服器上,您都會使用相同的指令碼。You use the same script whether the SQL Server instance is installed on the DPM server or on a remote server.

    重要

    安裝 DPM 時,網域名稱和 SQL 電腦名稱請使用 NetBIOS 名稱。When installing DPM, use NetBIOS names for the domain name and SQL machine name. 請不要使用完整網域名稱 (FQDN)。Do not use fully qualified domain names (FQDN).

    建立 DPMSetup.ini 時,請使用您自己環境的值來取代 <> 中的文字。When creating DPMSetup.ini, replace the text inside <> with values from your own environment. 以雜湊 (#) 開頭的行會被標記為註解,且 DPM 安裝程式會使用預設值。Lines beginning with the hash (#) are commented out, and DPM setup uses the default values. 若要指定您自己的值,請在 <> 內輸入值,並刪除雜湊 (#)。To specify your own values, type the values within the <> and delete the hash (#).

    [OPTIONS]
    UserName = <A user with credentials to install DPM>
    CompanyName = <Name of your company>
    ProductKey = <The 25-character DPM product key in the format xxxxx-xxxxx-xxxxx-xxxxx-xxxxx>
    # SqlAccountPassword = <The password to the DPM$ account>
    # StandardAgentLicenses = <No. of standard agent licenses you have purchased>
    # EnterpriseAgentLicenses = <No. of enterprise agent licenses you have purchased>
    # ProgramFiles = C:\Program Files\Microsoft Data Protection Manager
    # DatabaseFiles = C:\Program Files\Microsoft Data Protection Manager\DPM\DPMDB
    # IntegratedInstallSource = <Location of the DPM setup files>
    # ---For using a remote SQL Server instance ---
    # SQLMachineName = <Name of the SQL Server computer> OR <SQL Cluster Name>
    # SQLInstanceName = <Name of the instance of SQL Server that Setup must use>
    # SQLMachineUserName = <User name that Setup must user>
    # SQLMachinePassword = <Password for the user name Setup must use>
    # SQLMachineDomainName = <Domain to which the SQL Server computer is attached>
    # ---For using a reporting SQL Server instance in case of DPMDB in SQL Cluster ---
    # ReportingMachineName = <Name of the SQL Server computer>
    # ReportingInstanceName = <Name of the instance of SQL Server that Setup must use, SSRS in case of SQL 2017>
    # ReportingMachineUserName = <User name that Setup must user>
    # ReportingMachinePassword = <Password for the user name Setup must use>
    # ReportingMachineDomainName = <Domain to which the SQL Server computer is attached>
    
  6. 儲存檔案後,請在安裝伺服器上提高權限的命令提示字元中,輸入:start /wait [media location]\setup.exe /i /f <path>\DPMSetup.ini /l <path>\dpmlog.txtAfter saving the file, at an elevated command prompt on the installation server, type: start /wait [media location]\setup.exe /i /f <path>\DPMSetup.ini /l <path>\dpmlog.txt.

    • [media location] 代表您將執行 setup.exe 的位置。[media location] indicates where you'll run setup.exe from.
    • <path> 代表 .ini 檔案的位置。<path> is the location of the .ini file.

在網域控制站上安裝 DPMInstall DPM on a domain controller

如果您想要在 RODC 上設定 DPM,則需要先執行幾個步驟,再設定 SQL Server 與安裝 DPM。If you want to set up DPM on an RODC you'll need to do a couple of steps before you set up SQL Server and install DPM.

  1. 建立 DPM 所需的安全性群組和帳戶。Create the security groups and accounts needed for DPM. 若要這樣做,請按一下 [開始] > [系統管理工具] > [Active Directory 使用者和電腦] > [網域/內建] ,然後建立下列安全性群組。To do this click Start > Administrative Tools > Active Directory Users and Computers > Domain/Builtin and create these security groups. 針對每個群組,使用 「範圍 (全域)」 和 「群組類型」 (安全性) 的預設設定:For each group use the default setting for Scope (Global) and Group type (Security):

    • DPMDBReaders$<電腦名稱 >;DPMDBReaders$<Computer Name>;
    • MSDPMTrustedMachines$<電腦名稱 >;MSDPMTrustedMachines$<Computer Name>;
    • DPMRADCOMTrustedMachines$<電腦名稱 >;DPMRADCOMTrustedMachines$<Computer Name>;
    • DPMRADmTrustedMachines$<電腦名稱 >;DPMRADmTrustedMachines$<Computer Name>;
    • DPMDBAdministrators$<電腦名稱 >;DPMDBAdministrators$<Computer Name>;
    • MSDPMTrustedUsers$<電腦名稱 >;MSDPMTrustedUsers$<Computer Name>;
    • DPMSCOM$<電腦名稱 >;DPMSCOM$<Computer Name>;
    • DPMRATrustedDPMRAs$<電腦名稱 >,其中 <電腦名稱 > 是網域控制站的名稱。DPMRATrustedDPMRAs$<Computer Name>, where <Computer Name> is the name of the domain controller.
  2. 將網域控制站的本機電腦帳戶 (<電腦名稱>) 新增到 MSDPMTrustedMachines$<電腦名稱> 群組。Add the local machine account for the domain controller (<Computer Name>) to the MSDPMTrustedMachines$<Computer Name> group. 接著,在網域主控站上,建立具有最低可能認證的網域使用者帳戶。Then on the primary domain controller create a domain user account with the lowest possible credentials. 將不會到期的強式密碼指派給它,並將它新增至本機 Administrators 群組。Assign it a strong password that doesn't expire and add it to the local administrators group.

    注意

    記下此帳戶,因為您需要在安裝 SQL Server 期間設定 SQL Server 服務。Make a note of this account because you need to configure the SQL Server services during the installation of SQL Server. 您可以將此使用者帳戶命名為任何您想要的名稱;但基於易於識別此帳戶用途的因素,您可能想要給予它一個明確名稱,例如 DPMSQLSvcsAcct。You can name this user account anything that you want; however, for the purposes of easily identifying the account's purpose, you might want to give it a significant name, such as DPMSQLSvcsAcct. 基於這些程序的用途,此帳戶會稱為 DPMSQLSvcsAcct 帳戶。For the purposes of these procedures, this account is referred as the DPMSQLSvcsAcct account.

  3. 在網域主控站上,利用最低的可能認證來建立另一個網域使用者帳戶並將該帳戶命名為 DPMR$MACHINENAME、為它指派尚未到期的強式密碼,然後將此帳戶新增到 DPMDBReaders$<電腦名稱> 群組。On the primary domain controller, create another domain user account with the lowest possible credentials and name the account DPMR$MACHINENAME, assign it a strong password that does not expire, and then add this account to the DPMDBReaders$<Computer Name> group.

  4. 然後使用範圍︰全域和群組類型︰安全性建立 SQL Server 資料庫所需的安全性群組和使用者帳戶。Then create the security groups and user accounts needed for the SQL Server database with scope: global and Group type: security. 群組或帳戶應該具有下列格式:<grouporaccountnameComputerName>。The group or account should be in this format <grouporaccountnameComputerName>.

    • SQLServerSQL2005BrowserUser$<電腦名稱>SQLServerSQL2005BrowserUser$<Computer Name>

    • SQLServerMSSQLServerADHelperUser$<電腦名稱>SQLServerMSSQLServerADHelperUser$<Computer Name>

    • SQLServerReportServerUser$<執行個體識別碼><執行個體名稱>SQLServerReportServerUser$<Instance ID><Instance Name>

    • SQLServerMSASUser$<電腦名稱><執行個體名稱>SQLServerMSASUser$<Computer Name><Instance Name>

    • SQLServerDTSUser$<電腦名稱>SQLServerDTSUser$<Computer Name>

    • SQLServerFDHostUser<電腦名稱><執行個體名稱>SQLServerFDHostUser<Computer Name><Instance Name>

    • 其中,<電腦名稱> 是將在其上安裝 SQL Server 2008 之網域控制站的電腦名稱。where <Computer Name> is the computer name of the domain controller on which SQL Server 2008 will be installed.

      • <執行個體名稱> 是您規劃要在網域控制站上建立的 SQL Server 執行個體名稱。<Instance Name> is the name of the instance of SQL Server that you plan to create on the domain controller. 執行個體名稱可以是預設 DPM 執行個體名稱 (MSDPM2010) 以外的任何名稱。The instance name can be any name other than the default DPM instance name (MSDPM2010).
      • <執行個體識別碼> 預設是由 SQL Server 安裝程式所指派,表示群組會針對主要版本的 SQL Server 執行個體 (10) 套用到 Reporting Services (MSRS)。<Instance ID> by default is assigned by SQL Server Setup and indicates that the group applies to Reporting Services (MSRS) for the major version of the instance (10) of SQL Server. 對於此版本,此值為 MSRS1A0_50。For this release, this value is MSRS1A0_50.
  5. 在網域主控站上,將您稍早建立的網域使用者帳戶 (DPMSQLSvcsAcct 帳戶) 新增到下列群組:SQLServerReportServerUser$<ComputerName>$MSRS10.<InstanceID> SQLServerMSASUser$<ComputerName>$<InstanceID>On the primary domain controller, add the domain user account that you created earlier (the DPMSQLSvcsAcct account) to the following groups: SQLServerReportServerUser$<ComputerName>$MSRS10.<InstanceID> SQLServerMSASUser$<ComputerName>$<InstanceID>

  6. 完成這些步驟之後,即可安裝 SQL Server:After you've complete these steps you can install SQL Server:

    • 使用您稍早建立的網域使用者帳戶,登入您想要安裝 DPM 的網域控制站。Log onto the domain controller on which you want to install DPM using the domain user account that you created earlier. 讓我們將此帳戶稱為 DPMSQLSvcsAcct。Let's refer to this account as DPMSQLSvcsAcct.

    • 開始安裝 SQL Server。Start to install SQL Server. 在安裝程式的 [伺服器設定 - 服務帳戶] 頁面上,指定 SQL Server 服務 (SQL Server Agent、SQL Server Database Engine 和 SQL Server Reporting Services) 的登入帳戶以透過使用者帳戶 DPMSQLSvcsAcct 執行。On the Server Configuration - Service Accounts page of Setup you specify the login account for the SQL Server services (SQL Server Agent, SQL Server Database Engine, SQL Server Reporting services) to run under the user account DPMSQLSvcsAcct.

    • 安裝 SQL Server 之後,開啟 [SQL Server 組態管理員] > [SQL Server 網路組態] > [通訊協定] ,並以滑鼠右鍵按一下 [具名管道] > [啟用] 。After SQL Server is installed, open SQL Server Configuration Manager > SQL Server Network Configuration > Protocols, right-click Named Pipes > Enable. 您需要停止並重新啟動 SQL Server 服務。You'll need to stop and restart the SQL Server service.

  7. 接著可以安裝 DPM:Then you can install DPM:

    • 在 [SQL Server 設定] 頁面上,以 localhost\<執行個體名稱>格式輸入您在程序中安裝的 SQL Server 執行個體名稱,然後輸入您所建立的第一個網域使用者帳戶的認證 (DPMSQLSvcsAcct 帳戶)。On the SQL Server Settings page type the name of the instance of SQL Server that you installed in procedure as localhost\<Instance Name>, and then type the credentials for the first domain user account you created (the DPMSQLSvcsAcct account). 此帳戶必須是安裝遠端執行個體之網域控制站上的本機 Administrators 群組成員。This account must be a member of the local Administrators group on the domain controller where the remote instance is installed. 完成安裝之後,您可以從本機系統管理員群組移除該使用者帳戶。After setup is complete, you can remove the user account from the local Administrators group.

    • 在 [安全性設定] 頁面上,您需要輸入稍早在建立 DPMR$MACHINENAME 使用者帳戶時使用的相同密碼。On the Security Settings page you'll need to enter the same password that you used when you created the DPMR$MACHINENAME user account earlier.

    • 開啟 SQL Server Management Studio,然後連線到設定為要使用 DPM 的 SQL Server 執行個體。Open SQL Server Management Studio and connect to the instance of SQL Server that DPM is configured to use. 按一下 [新增查詢] 、將下列文字複製到右窗格,然後按 F5 執行查詢。Click New Query, copy the text below to the right pane, and then press F5 to run the query.

      use DPMDB
      declare @refresh_jobid uniqueidentifier
      select @refresh_jobid = ScheduleId from tbl_SCH_ScheduleDefinition where JobDefinitionId in
      (select JobDefinitionId from tbl_JM_TaskDefinition where TaskDefinitionId in (select distinct TaskDefinitionID from tbl_TE_TaskTrail
      where VerbID = '53603503-C4C8-4D0E-8F1E-D2F3868E51E3')) and IsDeleted=0
      exec msdb.dbo.sp_update_job @job_name =@refresh_jobid, @enabled=0
      update tbl_SCH_ScheduleDefinition
      set IsDeleted=1
      where ScheduleId = @refresh_jobid
      

將 SQL 2016 升級到 SQL 2017Upgrade SQL 2016 to SQL 2017

如果您想要使用 SQL 2017 搭配 DPM 半年通道 1801 版或更新版本,您必須將 SQL 2016 升級到 SQL 2017。If you want to use SQL 2017 with DPM Semi Annual Channel 1801 or later, you must upgrade SQL 2016 to SQL 2017. 您可以將 SQL Server 2016 或 SQL Server 2016 SP1 Enterprise 或 Standard 升級到 SQL 2017。You can upgrade SQL Server 2016, or SQL Server 2016 SP1 Enterprise or Standard, to SQL 2017. 下列程序列出將 SQL 2016 升級到 SQL 2017 的步驟。The following procedure lists the steps to upgrade SQL 2016 to SQL 2017.

注意

SQL 2017 可支援作為 DPM 1801 升級案例中的資料庫。SQL 2017 is supported as a database with DPM 1801 in upgrade scenarios. 有了 DPM 2019,SQL 2017 可支援同時作為 DPM 新安裝與升級案例的 DPM 資料庫。With DPM 2019, SQL 2017 is supported as a DPM database, in both new installation and upgrade scenarios of DPM.

  1. 在 SQL Server 中,備份報表資料庫。On the SQL Server, back up the Reporting database.

  2. 備份加密金鑰。Back up the Encryption Keys.

  3. 清除本機電腦上的報表資料夾。Clean up the reporting folders on the local machine.

  4. 安裝報表服務。Install the Reporting service.

  5. 在 DPM 伺服器上,將下列 DPM 登錄機碼變更為新的報表執行個體名稱。On the DPM server, change the following DPM registry key to the new reporting instance name.

    • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Data Protection Manager\DB<ReportingInstanceName>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Data Protection Manager\DB<ReportingInstanceName>
  6. 將報表服務虛擬目錄名稱變更為 ReportServer_SSRS。Change the Reporting Service virtual directory name to ReportServer_SSRS.

  7. 設定報表服務,並還原資料庫和加密金鑰。Configure the Reporting Service, and restore the database and encryption keys.