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.)安裝 NFS 用戶端 (NFS 服務),可從 Windows 控制台啟用:
  • 開啟「控制台」並搜尋「開啟或關閉 Windows 功能」
  • 勾選「NFS 服務」選項,然後按一下「確定」。

2.)在 ECS 端設定 NFS 共用。請參閱《ECS 管理員指南》,可從 https://support.emc.com/products/37254_ECS-Appliance-/Documentation/ 下載。

3.)為匿名使用者啟用寫入權限:
根據預設選項,使用者透過匿名使用者掛接 ECS NFS 共用時,具有讀取權限。我們可以變更用於掛接共用的 UID 和 GID,為匿名使用者提供寫入權限。


若要變更 UID 和 GID,我們必須執行下列步驟,稍微變更 Windows 登錄檔:

  • 在搜尋方塊輸入 regedit,然後按下 Enter 鍵以開啟。
  • 瀏覽至 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ClientForNFS\CurrentVersion\Default
  • 在名稱為「AnonymousUid」的預設資料夾內建立新的 New DWORD (32 位元) 值,並指派 UID 0 (或其他已在 ECS 中配置的 UID/GID)。
  • 在名稱為「AnonymousGid」的預設資料夾內建立新的 New DWORD (32 位元) 值,並指派 GID 0 (或其他已在 ECS 中配置的 UID/GID)。
  • 從 Windows CMD 行重新啟動 NFS 用戶端 (nfsadmin client restart),或是將機器重新開機,以套用變更。
kA5f10000004F9xCAE_1_0

 

4.)在 Windows CMD 行上掛接 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

Affected Products

ECS Appliance

Products

ECS Appliance, Elastic Cloud Storage
Article 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.