NetWorker:Red Hat Pacemaker 叢集如何升級 NetWorker 伺服器和最佳實務

Riepilogo: 本知識文章概述如何在安裝在 Red Hat Pacemaker (pcs) 高可用性叢集上時,升級 NetWorker 伺服器軟體。

Questo articolo si applica a Questo articolo non si applica a Questo articolo non è legato a un prodotto specifico. Non tutte le versioni del prodotto sono identificate in questo articolo.

Istruzioni

重要:在完成這些步驟之前,請仔細檢閱此程序。如果需要協助執行任何 NetWorker 升級,請聯絡您的 Dell 銷售客戶代表,與 Dell 專業服務團隊接洽。標準 NetWorker 支援小組不會執行軟體升級。

先決條件:

  1. 從 NetWorker Management Console (NMC) 或 NetWorker Web 使用者介面 (NWUI) 完成伺服器保護備份工作。這可確保 NetWorker 伺服器資源資料庫 (nsrdb), 媒體資料庫 (mm) 和客戶機檔案索引 (index) 進行備份,並在需要災難恢復時可用。預期不會發生災難恢復事件;但是,始終建議您準備一個。
  2. 收集引導程式備份詳細資訊,並在另一個位置記下它們:
mminfo -B

 

  1. 確認叢集使用的共用儲存位置和邏輯主機名稱:

適用於 NetWorker 19.11 及更新版本:

    1. 在出現 ONIE 提示時,執行下列命令: lcmap
    2. 「hostname」和共用的「ownered」路徑標識邏輯叢集名稱和共用儲存掛載點 

範例:

NWrhelNode1:~# lcmap
type: NSR_CLU_TYPE;
clu_type: NSR_LC_TYPE;
interface version: 1.0;

type: NSR_CLU_VIRTHOST;
hostname: NWrhelClusA.emclab.local;
local: TRUE;
owned paths: /nsr_share;

clu_nodes: NWrhelNodeA.emclab.local NWrhelNodeB.emclab.local;

適用於 NetWorker 19.10 及更早版本:

    1. 使用 lcmap 命令以取得邏輯叢集資源的 IP 位址:
NWrhelNode1:~# lcmap
type: NSR_CLU_TYPE;
clu_type: NSR_LC_TYPE;
interface version: 1.0;

type: NSR_CLU_VIRTHOST;
hostname: 192.168.25.26;
local: TRUE;
owned paths: /nsr_share;

clu_nodes: NWrhelNodeA.emclab.local NWrhelNodeB.emclab.local;

b: 使用 nslookup 命令以確認與叢集的 IP 資源相關聯的邏輯叢集名稱:

root@NWrhelNode1:~# nslookup 192.168.25.26
20.25.168.192.in-addr.arpa      name = NWrhelClusA.emclab.local.
  1. 從以下位置下載 NetWorker Linux 安裝套件: 

https://www.dell.com/support/home/product-support/product/networker/drivers

  1. 將安裝套件複製到叢集中的每個節點。如需更多資訊,請參閱: 

NetWorker (Linux):如何將檔案複製到 Linux NetWorker 伺服器/從 Linux NetWorker 伺服器複製檔案。

  1. 將安裝套件解壓縮到您選擇的位置: 
tar xvf nwVERSION_linux_x86_64.tar.gz

升級程序:

在其中一個節點上,執行下列步驟:

  1. 停止 NetWorker 伺服器服務:
pcs resource disable nws
  1. 等待 NetWorker 資源 (nws) 顯示為「已停止 (停用)」
watch -n 5 pcs resource


在叢集中 的每個節點 上,執行下列步驟。

  1. 停止用戶端服務:
nsr_shutdown
  1. 取得已安裝的 NetWorker 套裝清單。
rpm -qa | grep lgto
  1. 將目錄變更為解壓縮的安裝套件 (請參閱先決條件 步驟 5):
cd linux_x86_64
  1. 使用新的安裝套件升級現有的 NetWorker 套件:
rpm -Uvh PACKAGE_1 PACKAGE_2 PACKAGE_3 ...
注意:叢集中不支援 NMC 和 NWUI 套裝。這些包必須安裝在獨立伺服器上。獨立 NMC/NWUI 伺服器可設定為管理叢集 NetWorker 伺服器。如果升級以下內容,請參閱「其他資訊」欄位: lgtoserv 在其中一個節點上失敗。
  1. 執行身份驗證服務設定文稿:
/opt/nsr/authc-server/scripts/authc_configure.sh

重新設定叢集,以使用伺服器開啟叢集框架 (OCF) 檔案中的任何變更,或 lcmap 設定。

  1. 在每個節點上,執行:
pcs cluster stop --force
  1. 在每個節點上,執行下列命令以移除叢集設定檔 (稍後會重新加入這些設定)
/usr/sbin/networker.cluster -r
  1. 重新加入叢集組態:
/usr/sbin/networker.cluster
注意:當系統提示您是否要設定伺服器和用戶端時,請輸入「yes」。系統將提示您指定群集的共用位置 /nsr 資源。請參閱先決條件步驟中的「擁有的路徑」。系統會提示您輸入 nsr 叢集使用的邏輯名稱。這是 NetWorker 伺服器的名稱。

範例:

[root@NWrhelNodeA: ~]# /usr/sbin/networker.cluster
Pacemaker (a CRM solution)  is detected.
Would you like to configure NetWorker for it [Yes]?
-----------------------------------------------------------------
Pacemaker is a high availability product for LINUX.
It allows administrators to connect separate systems together to
create failover clusters that ensure application availability and
data integrity under several failure conditions. Administrators
can use OS's Cluster Manager with database applications, file
sharing services, web servers, and more.
-----------------------------------------------------------------
Do you wish to continue? [Yes]?
Shutting down NetWorker services...

Enter directory where local NetWorker database is installed [/nsr]?

Do you wish to configure for both NetWorker server and client?
Yes or No [Yes]?

Creating /usr/lib/ocf/resource.d/EMC_NetWorker directory ...

The mountpoint of the shared NetWorker directory (the nsr
directory) must be the same for all the nodes where NetWorker
server can failover to.

In what path will the shared nsr directory be created/located? /nsr_share

Enter the Logical Hostname to be used for NetWorker? NWrhelClusA.emclab.local

Creating /usr/lib/ocf/resource.d/EMC_NetWorker/Server file ...
-rwxr-xr-x. 1 root root 5689 Oct  1 15:41 /usr/lib/ocf/resource.d/EMC_NetWorker/Server
Finished creating /usr/lib/ocf/resource.d/EMC_NetWorker/Server file ...

Creating /usr/sbin/lcmap file ...
-rwxrwxr-x. 1 root root 9259 Oct  1 15:41 /usr/sbin/lcmap
Finished creating /usr/sbin/lcmap file.


NetWorker has been successfully cluster-configured.
  1. 啟動叢集服務:
pcs cluster start --all
  1. 在每個節點上,確保用戶端服務已啟動:
ps -ef | grep nsrexecd

如果用戶端尚未啟動,請執行以下作業來啟動:

/usr/sbin/nsrexecd

 

其中一個節點上,執行下列步驟:

  1. 重新啟用 NetWorker 資源,此程序會啟動 NetWorker 伺服器服務:
pcs resource enable nws
  1. 等待 NetWorker 資源顯示為「started」:
watch -n 5 pcs resource

叢集 NetWorker 伺服器已升級。

如在伺服器啟動期間出現任何問題,請參閱:
NetWorker:Red Hat 叢集服務問題故障診斷指南

Informazioni aggiuntive

如果伺服器套件無法安裝:

   5:lgtoserv-19.11.0.1-1             error: failed to open dir nsr of /nsr/lic/: File exists
################################# [ 42%]
error: unpacking of archive failed on file /nsr/lic/EMCLicenseFilev7.xsd;66fc3bd7: cpio: open failed - No such file or directory
error: lgtoserv-19.11.0.1-1.x86_64: install failed
   6:lgtoman-19.11.0.1-1              ################################# [ 50%]
error: lgtoserv-19.10.0.5-1.x86_64: erase skipped

隨著 nws 電腦資源已停用,NetWorker 伺服器目錄未掛接。升級找不到 /nsr/lic 檔案路徑。

在其中一個節點上執行下列步驟。
 

  1. 掛接共用 /nsr 分割至叢集共用磁碟:
mount /dev/sdb1 /nsr_share
  1. 掛接點應顯示 /nsr 伺服器內容:
[root@NWrhelNodeA ~]# ls -l /nsr_share
total 0
drwxr-xr-x. 17 root root 194 Sep 30 15:24 nsr
[root@NWrhelNodeA ~]# ls -l /nsr_share/nsr/
total 12
drwxrwxrwt.  2 root      root         6 Sep 30 15:22 applogs
drwxr-xr-x. 11 nsrtomcat nsrtomcat  117 Oct  1 13:55 authc
drwxr-x--t.  3 root      root        24 Sep 30 15:22 cache
drwx------. 27 root      root      4096 Oct  1 13:55 cores
drwxr-xr-x.  2 root      root         6 Sep 30 15:22 debug
drwxr-xr-x.  8 root      root       170 Sep 30 15:45 index
drwxr-x--x.  2 root      root        32 Sep 30 15:23 lic
drwx------.  3 root      root        34 Sep 30 15:23 lockbox
drwxr-x--x.  8 root      root      4096 Oct  1 12:03 logs
drwxr-xr-x.  3 root      root        83 Oct  1 10:00 mm
drwxr-x--x.  2 root      root        28 Sep 30 15:23 rabbitmq
drwxr-xr-x.  6 root      root        78 Oct  1 10:00 res
drwxr-x--x.  2 root      root        18 Oct  1 13:56 run
drw-------.  3 root      root        23 Sep 30 15:24 sec
drwxr-xr-x.  7 root      root      4096 Oct  1 13:56 tmp
  1. 更新 NetWorker 伺服器套裝。
rpm -Uvh lgtoserv_package
  1. 取消掛載共用的 /nsr 分區:
umount /nsr_share
  1. 返回升級程序 的步驟 7

Prodotti interessati

NetWorker

Prodotti

NetWorker Family, NetWorker Series
Proprietà dell'articolo
Numero articolo: 000224096
Tipo di articolo: How To
Ultima modifica: 27 mar 2026
Versione:  7
Trova risposta alle tue domande dagli altri utenti Dell
Support Services
Verifica che il dispositivo sia coperto dai Servizi di supporto.