Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

ECS:如何在 Windows 客户端上装载 NFS 共享

Summary: 如何在 Windows 客户端上装载 NFS 共享。

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Instructions

下面的步骤显示了如何在 Windows 客户端上装载 NFS 共享。

1.)安装可从 Windows 控制面板启用的 NFS 客户端(NFS 服务):
  • 打开控制面板并搜索“打开或关闭 Windows 功能”
  • 选中“NFS 服务”选项,然后单击“确定”。

2.)在 ECS 端,配置 NFS 共享。在 https://support.emc.com/products/37254_ECS-Appliance-/Documentation/ 中查看 ECS 管理指南,了解可下载的内容。

3.)为匿名用户启用写入权限:
如使用默认选项,在使用匿名用户装载 ECS NFS 共享时,用户具有读取权限。通过更改匿名用户用于装载共享的 UID 和 GID,我们可以为匿名用户提供写入权限。


要更改 UID 和 GID,我们必须通过执行以下步骤对 Windows 注册表进行简单的更改:

  • 在搜索框中键入 regedit 并按 Enter 键,以打开 regedit。
  • 浏览至 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default
  • 在名为 AnonymousUid 的默认文件夹中新建 DWORD(32 位)值,并分配 UID 0(或者在 ECS 中配置的另一个 UID/GID)。
  • 在名为 AnonymousGid 的默认文件夹中新建 DWORD(32 位)值,并分配 GID 0(或者在 ECS 中配置的另一个 UID/GID)。
  • 从 Windows 命令行重新启动 NFS 客户端 (nfsadmin client restart) 或重新启动计算机以应用更改。
kA5f10000004F9xCAE_1_0

 

4.)在 Windows 命令行中装载 NFS 共享:
# mount -o "nolock,sec=sys" x.x.x.x:/<您使用的命名空间名称>/<您使用的存储桶名称>  <Windows 路径>:
示例:
C:\Users\bob>mount -o "nolock,sec=sys" x.x.x.x:/test-nfs-ns/test-nfs-bucket y:
Note: x.x.x.x = Public IP of ECS node or load balancer.

5.) Please be noted that each time when you Windows restarts, you need to re-mount the NFS share by default.
There are different workarounds available but this is not ECS related by nature.
One example below:
https://social.technet.microsoft.com/Forums/windowsserver/en-US/44445dc3-0185-407f-b8ad-711f22cd4ec6/windows-nfs-client-reconnect-to-nfs-target-on-reboot?forum=winserverfiles

Additional Information

Article Properties


Affected Product

ECS Appliance

Product

ECS Appliance, Elastic Cloud Storage

Last Published Date

28 Jun 2024

Version

4

Article Type

How To