ECS:如何在 Windows 客户端上装载 NFS 共享
Summary: 如何在 Windows 客户端上装载 NFS 共享。
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.
Instructions
下面的步骤显示了如何在 Windows 客户端上装载 NFS 共享。
1.)安装可从 Windows 控制面板启用的 NFS 客户端(NFS 服务):
# mount -o "nolock,sec=sys" x.x.x.x:/<您使用的命名空间名称>/<您使用的存储桶名称> <Windows 路径>:
示例:
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) 或重新启动计算机以应用更改。
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
相关 NFS 知识库文章:
- ECS:如何创建基本 NFS 导出并在客户端上装载它
- ECS:dataheadsvc 日志流式传输错误:请求 ReadLinkRequest 中不支持 NFSv3 过程 LINK
- ECS:NFS 装载失败,并出现“No such file or directory”(没有此类文件或目录)或“ERROR_OBJECT_NOT_FOUND”(错误:未找到对象)
- ECS:尝试使用 NFS 写入存储桶时收到远程 I/O 错误
- ECS:NFS 远程 I/O 错误;更改已启用 FS 的存储桶的存储桶所有者可能会导致应用程序/用户无法访问 NFS 文件
- ECS:NFS 写入会在一定数量的数据后引发 I/O 错误。
- ECS:将来自 ECS 的 NFS 文件共享与 VMware NFS 数据存储区配合使用
- ECS:装载 ECS NFS 导出的最佳实践
- ECS:如何在 Windows 客户端上装载 NFS 共享
- ECS:在 UI 中更改文件导出设置后,NFS 无法装载
- ECS:Oracle WebCenter Content (WCC) 是否与 ECS 兼容?
Affected Products
ECS ApplianceProducts
ECS Appliance, Elastic Cloud StorageArticle Properties
Article Number: 000019642
Article Type: How To
Last Modified: 25 Mar 2025
Version: 6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.