PowerScale OneFS:為 SMB 家庭共用使用使用者名稱擴充變數時,找不到間歇性檔案相關錯誤
Summary: 當電腦帳戶也連線至共用,但找不到檔案時,將檔案儲存在使用者名稱擴充主目錄中的間歇性失敗。
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
當您嘗試在使用變數路徑擴展或使用者名擴展變數 (%U) 自動創建的主目錄下保存、修改或重命名檔時,您可能會間歇性地收到一條錯誤,指出該檔不再位於該路徑或類似路徑中。然後,該檔可能會消失,並在頁面刷新后重新出現。![]()
Cause
使用使用者名擴展變數 (%U) 配置的 SMB 共用意味著會自動為連接到該共用的每個使用者創建主目錄。無論是電腦帳戶還是使用者帳戶:
PowerScale-1# isi smb shares list --zone=SMBzone Share Name Path ------------------------------------- homedir /ifs/home/%U ------------------------------------- Total: 1 PowerScale-1# ls -l /ifs/home/ total 5 drwx------ 2 user0 Isilon Users 27 May 15 11:32 user0 drwx------ 3 EXAMPLE\dell-rabie-pc$ EXAMPLE\domain computers 28 May 15 11:36 dell-rabie-pc$ <<----- Computer account drwx------ 3 EXAMPLE\paul EXAMPLE\domain users 28 May 15 11:36 paul <<----- User account using computer "dell-rabie-pc$"
在以下數據包捕獲中,使用者 paul 在共用 \\homedir\profile 中創建一個檔,該檔已擴展為 \\homedir\profiles\paul\。計算機帳戶嘗試查找相同的檔,並認為它正在連接到相同的共用 \\homedir\profiles。它在 \\homdir\profiles\dell-rabie-pc$\ 下方查看,因此找不到檔案。\\homedir\profiles\paul\test 與 \\homdir\profiles\dell-rabie-pc$\test 不同。
6600 48.216535 10.148.x.x 10.45.x.x SMB2 166 Session Setup Request, NTLMSSP_AUTH, User: EXAMPLE\paul <<----- User account using computer "dell-rabie-pc$" 6661 48.216535 10.45.x.x 10.148.x.x SMB2 146 Session Setup Response 6662 48.800589 10.148.x.x 10.45.x.x SMB2 166 Tree Connect Request Tree: \\homedir\profiles 6663 48.801463 10.45.x.x 10.148.x.x SMB2 138 Tree Connect Response 6646 48.213583 10.148.x.x 10.45.x.x SMB2 422 Create Request File: test3\test\New Text Document.txt 6650 48.215117 10.45.x.x 10.148.x.x SMB2 374 Create Response File: test3\test\New Text Document.txt 6659 48.216535 10.148.x.x 10.45.x.x SMB2 166 Session Setup Request, NTLMSSP_AUTH, User: EXAMPLEdell-rabie-pc$ <<----- Computer account 6660 48.216535 10.45.x.x 10.148.x.x SMB2 146 Session Setup Response 6813 48.800589 10.148.x.x 10.45.x.x SMB2 166 Tree Connect Request Tree: \\homedir\profiles 6814 48.801463 10.45.x.x 10.148.x.x SMB2 138 Tree Connect Response 6819 48.802674 10.148.x.x 10.45.x.x SMB2 266 Create Request File: test3\test\New Text Document.txt 6820 48.803106 10.45.x.x 10.148.x.x SMB2 131 Create Response, Error: STATUS_OBJECT_PATH_NOT_FOUND In frames 6646 and 6650, the file is created successfully. Frame 6819 shows a request to access "New Text Document.txt", but frame 6820 shows that the file was not found. Further inspection of the information in frame 6819, shows that the create request came from the computer account and not the user account: 6819 48.802674 10.148.x.x 10.45.x.x SMB2 266 Create Request File: test3\test\New Text Document.txt Session Id: 0x07b5cf4100d5a9be [Account: dell-rabie-pc$ Acct:dell-rabie-pc$] [Domain: DDMI Domain:EXAMPLE] [Host: dell-rabie-pc Host:dell-rabie-pc]
Resolution
使用非透過變數路徑擴充自動建立的主目錄時,不會發生此問題。
因應措施:
- 如果可以拒絕「域計算機」組訪問共用,則可以防止找不到文件錯誤。這應該首先在測試設置中完成,以驗證任何可能的負面影響:
# isi smb shares view varexp
Share Name: varexp
Path: /ifs/varexp-home/%U
Description:
Client-side Caching Policy: manual
Automatically expand user names or domain names: True
Automatically create home directories for users: True
Browsable: True
Permissions:
Account Account Type Run as Root Permission Type Permission
--------------------------------------------------------------------------------
EXAMPLE\domain computers group 0 deny full
Everyone wellknown 0 allow full
--------------------------------------------------------------------------------
Total: 2
2.禁止用戶端快取「未找到」事件, 但這可能會降低性能:
如有任何關於修改這些設定的問題或疑慮,請聯絡Microsoft支援。
若要新增登錄檔項目,請執行下列步驟:
- 在 Windows 搜尋列中輸入「regedit」
- 瀏覽至以下位置:Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters
- 進入上述位置後,建立新的 DWORD 值 (以滑鼠右鍵按一下 > 新的 > DWORD 值)
- 提供以下寄存器名稱。默認情況下,新創建的值為零
FileNotFoundCacheLifetime Dword=0 >> The file not found cache timeout period.
如果問題即使在子目錄中而不是在共用根目錄中仍然存在或發生,請將以下註冊表與上述條目一起添加:
FileInfoCacheLifetime Dword=0 >> The file information cache timeout period.
DirectoryCacheLifetime Dword=0 >> This is the directory cache timeout.
註冊表項將顯示如下:

Additional Information
- 禁用檔資訊緩存可能會對用戶端性能產生重大影響,並顯示發送到伺服器的元數據請求數增加。
- 有關註冊表值的其他詳細資訊,請參閱此處:
https://docs.microsoft.com/en-us/windows-server/administration/performance-tuning/role/file-server/
Affected Products
Isilon, PowerScale OneFSProducts
Storage, Enterprise Storage, Isilon, Isilon, PowerScale OneFSArticle Properties
Article Number: 000079025
Article Type: Solution
Last Modified: 16 ديسمبر 2025
Version: 4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.