Dell Unity:将 Unity 升级到 5.1 后,无法使用 VMware 应用装置管理界面将 vCenter Server 应用装置备份到 Unity NFS 共享

摘要: 在将 Unity 升级到 5.1 后,使用 VMware Appliance Management Interface (VAMI) 的 vCenter Server Appliance (VCSA) 备份未完成。这是由于 Unity 5.1 及更高版本中的代码问题,当将斜杠“/”附加到装载路径时,该问题会拒绝来自 vCenter 的装载请求。

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

症状

用户注意到,将 Unity 升级到 5.1 后,他们无法使用 VMware 一体机管理界面 (VAMI) 执行到 Unity NFS 导出的 vCenter Server Appliance (VCSA) 备份。在升级 Unity 代码之前,相同的 NFS 备份路径会起作用。

此问题仅在特定情况下出现。

  • 在文件系统的子文件夹上创建 NFS 共享。 
  • NFS 共享名称与文件系统名称相同。 
  • NAS 服务器上仅启用 NFSv3。 

下面是遇到备份问题的 NFS 导出配置示例:

FS 名称:测试
FS 路径:/test
NFS 导出本地路径:/test/subfolder
NFS 导出名称:test 


VAMI 上的备份位置 为 nfs://< nfs 服务器 ip 地址/fqdn>:/test

创建备份计划错误消息的示例
图 1:创建备份计划错误消息的示例


从 vCenter /var/log/vmware/applmgmt/applmgmt.log,装载请求因访问被拒绝而失败。 

2023-04-06T01:22:04 AM UTC [2182]ERROR:plugins.MountedFSStorageIOLib:Cmd ['/usr/bin/mount', '-t', 'nfs', '5.6.7.12:/test/', '/storage/remote/backup/nfs/5.6.7.12/BKCA6Hf0/lrcCF3e2', '-o', 'hard,intr'] failed. rc: 32, stdout: , stderr: mount.nfs: access denied by server while mounting 5.6.7.12:/test/

2023-04-06T01:22:04 AM UTC [2182]INFO:plugins.MountedFSStorageIOLib:Failed to mount the nfs share 5.6.7.12:/test/ at /storage/remote/backup/nfs/5.6.7.12/BKCA6Hf0/lrcCF3e2. Err- rc: 32, out=, err=mount.nfs: access denied by server while mounting 5.6.7.12:/test/

2023-04-06T01:22:04 AM UTC [2182]ERROR:plugins.MountedFSStorageIOLib:Didn't mount the remote filesystem root.

原因

默认情况下,在 Unity 上创建 NFS 导出时,将导出两条路径。第一个路径是文件系统的本地路径,另一个路径是导出的路径,这是用户在创建共享期间指定的共享的名称。

例如,用户创建文件系统“test_fs”。它装载在 NAS 服务器根分区上的“/test_fs”。如果用户将文件系统“test_fs”的根分区“/test_fs”导出为 NFS 共享“test_export”,则客户端将看到此导出的两个装载路径,如下所示: 
[root@rhel8 ~]# showmount -e 5.6.7.12
Export list for 5.6.7.12:
/test/subfolder (everyone) >>>>  local path of the file system 
/test           (everyone) >>>> exported path (Share name)

NAS 服务器上名为 showExportLevel 的参数控制在客户端运行 showmount 时是否显示两条路径或仅显示其中一条路径。如果只看到一个路径,则可能会配置此参数的非默认值。 
22:38:41 service@ABCDEFG spa:~/user# svc_nas Test_server -param -f nfs -i showExportLevel

Test_server :
name                    = showExportLevel
facility_name           = nfs
default_value           = 0
current_value           = 0
configured_value        = 0
param_type              = NAS server
user_action             = none
change_effective        = immediate
range                   = (0,2)
description             = An export is defined by both the exported path and the name of the export. By default the server reports both entries in the 'showmount -e' query. When set, this param will filter one or the other kind: Value=1 will report only the exported paths, Value=2 will report only the export names.

使用 VAMI 的备份失败是因为 VAMI 将斜杠“/”附加到备份路径,并且由于 Unity 上的代码问题,该路径被 Unity 视为无效,装载请求被拒绝。

例如,如果备份路径配置为“nfs://5.6.7.12:/test”,则 vCenter 会尝试使用路径“nfs://5.6.7.12:/test/”装载 NFS 导出,而 Unity 会拒绝装载请求。

如果装载路径附加了斜杠“/”,则 Linux 客户端上也可能会遇到此问题。 
[root@rhel8 ~]# showmount -e 5.6.7.12
Export list for 5.6.7.12:
/test/subfolder (everyone)
/test           (everyone)

[root@rhel8 /]# mount 5.6.7.12:/test/ /mnt
mount.nfs: access denied by server while mounting 5.6.7.12:/test/

[root@rhel8 /]# mount 5.6.7.12:/test /mnt
[root@rhel8 /]#

解决方案

计划在下一个 Unity 代码版本中提供永久修复,但日期是临时性的,并且可能会更改。  

在代码发布可用之前,可以使用两种解决方法。 
  • 使用 NFS 本地路径在 VAMI 中执行备份。 
  • 在 NAS 服务器上启用 NFSv4。 

受影响的产品

Dell EMC Unity, Dell Unity Operating Environment (OE)
文章属性
文章编号: 000212114
文章类型: Solution
上次修改时间: 26 6月 2023
版本:  5
从其他戴尔用户那里查找问题的答案
支持服务
检查您的设备是否在支持服务涵盖的范围内。