NetWorker:Red Hat Pacemaker 群集 如何升级 NetWorker 服务器和最佳实践

摘要: 本知识库文章概述了如何升级安装在 Red Hat Pacemaker (pcs) 高可用性群集上的 NetWorker 服务器软件。

本文适用于 本文不适用于 本文并非针对某种特定的产品。 本文并非包含所有产品版本。

说明

重要提示:在完成这些步骤之前,请仔细查看此过程。如果需要协助执行任何 NetWorker 升级,请联系您的戴尔销售客户代表,以与 Dell Professional Services 团队接洽。软件升级不是由标准 NetWorker 支持团队执行的。

前提条件:

  1. 从 NetWorker Management Console (NMC) 或 NetWorker Web 用户界面 (NWUI) 完成 Server Protection 备份作业。这可确保 NetWorker 服务器资源数据库 (nsrdb)、介质数据库 (mm) 和客户端文件索引 (index) 进行备份并在需要灾难恢复时可用。预计不会发生灾难恢复事件;但是,始终建议准备一个。
  2. 收集引导数据库备份详细信息并在其他位置记下它们:
mminfo -B

 

  1. 确认群集使用的共享存储位置和逻辑主机名:

对于 NetWorker 19.11 及更高版本:

    1. 运行命令: lcmap
    2. “hostname”和共享“owned”路径标识逻辑群集名称和共享存储装载点。 

示例:

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) 显示为“stopped (disabled)”
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

重新配置群集以使用 Server Open Cluster Framework (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 群集服务问题故障处理指南

其他信息

如果服务器软件包安装失败:

   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 pcs 资源已禁用,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

受影响的产品

NetWorker

产品

NetWorker Family, NetWorker Series
文章属性
文章编号: 000224096
文章类型: How To
上次修改时间: 27 3月 2026
版本:  7
从其他戴尔用户那里查找问题的答案
支持服务
检查您的设备是否在支持服务涵盖的范围内。