NetWorker:运行 linux_pkgcore.sh 脚本无法正确检测 NetWorker 二进制文件
Summary: /usr/sbin/nsrd 版本 19.12.0.1 的 NetWorker 问题(由linux_pkgcore.sh脚本标识为共享对象,而不是可执行文件,由于位置独立代码设置,将文件升级到版本 5.39 或更高版本可解决此问题。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Symptoms
脚本执行失败
而 linux_pkgcore.sh 脚本无法正确执行。
脚本返回一条消息,指示它无法确定 /usr/sbin/nsrd 是链接或启动脚本。
消息详细信息
显示的消息是:”Is /usr/sbin/nsrd a link or start script? Please check! Binary Executable needed as argument”
file /usr/sbin/nsrd-19.12.0.1 | grep 'ELF' /usr/sbin/nsrd-19.12.0.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=500dfce10db947d45391e7eb5e7eb8f850815f10, stripped
Cause
问题的根本原因
此问题的根本原因是错误识别 nsrd 通过 file 命令可作为共享对象执行。
这种错误识别是由于使用了与位置无关代码相关的某些设置,这有时可以被视为额外的安全功能。
特定条件
导致此问题的特定条件包括使用 file 命令,这可能会导致 file 命令错误地识别 nsrd 作为共享对象的可执行文件。
- 正在使用的 file 命令版本低于 5.39,无法正确识别
nsrd可执行。 - 而
nsrd可执行文件是使用与位置无关的代码构建的,这可能会导致错误识别。
错误信息
file /usr/sbin/nsrd-19.12.0.1 | grep 'ELF' /usr/sbin/nsrd-19.12.0.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=500dfce10db947d45391e7eb5e7eb8f850815f10, stripped
提醒:问题不在于
nsrd 可执行文件本身,但文件命令无法正确识别它。
Resolution
升级文件命令
要解决此问题,请升级”file“命令更新到 5.39 或更高版本。这应该为缔约方会议提供预期结果 pkgcore 脚本。
升级步骤
请按照以下步骤升级”file' 命令:
- 检查当前版本的”
file' 命令。 - 下载并安装最新版本的”
file“命令(版本 5.39 或更高版本)。
验证解决方案
升级”file命令,通过运行”linux_pkgcore.sh' 脚本。
# Run the linux_pkgcore.sh script to verify the resolution $ ./linux_pkgcore.sh
提醒:NetWorker 工程正在研究解决方案。
Affected Products
NetWorkerProducts
NetWorker FamilyArticle Properties
Article Number: 000329028
Article Type: Solution
Last Modified: 25 أيار 2026
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.