Isilon:如何識別 PowerScale OneFS 上的稀疏檔案

Summary: “稀疏檔是一種計算機檔,當檔本身部分為空時,它會嘗試更有效地使用文件系統空間。這是通過將表示空塊的簡短資訊(元數據)寫入磁碟而不是構成塊的實際“空”空間來實現的,使用更少的磁碟空間。" 在 Powerscale (Isilon) 上,稀疏檔案的識別標準是看其檔案中是否有任何稀疏區域。將稀疏區域寫入檔時,不會設置任何屬性/標誌,但如果共用啟用了“稀疏文件支援”,則會將檔寫入稀疏檔。 㤞:維琪百科稀疏檔文章:https://en.wikipedia.org/wiki/Sparse_file ...

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

若要確定是否為所有新的 smb 共用啟用了稀疏檔案支援:
isi smb settings 共用檢視 --zone <zone name>|grep “Sparse File”

若要識別特定共用上是否啟用了稀疏檔案支援:
isi smb shares view --zone <zone name><share name>|grep “Sparse File”

要檢查特定檔是否為稀疏檔(具有稀疏區域),請執行以下操作:
isi get -DDd /ifs/<path>|grep “sparse”

如果此檔包含稀疏區域,則應獲得類似以下的輸出,其中“#”後面的數位表示有多少塊已歸零,也指示存在稀疏塊:

(稀疏)#64
(稀疏)#32

Additional Information

注意:為 SMB 啟用「稀疏檔支援」時,IOCTL SMB 調用FSCTL_SET_SPARSE(主要用於 Commvault 備份應用程式)允許備份用戶端在檔中“打稀疏孔”,從而插入稀疏區域以進行壓縮。
對 SMB 稀疏檔的支援僅適用於 FSCTL SET_ZERO_DATA用於稀疏打孔,對於 Commvault 備份,不支援其他稀疏檔操作,例如“FSCTL_SET_SPARSE”。OneFS 會將成功的回應傳送至 FSCTL_SET_SPARSE但不會設定稀疏屬性/旗標。
Article Properties
Article Number: 000192205
Article Type: How To
Last Modified: 26 Aug 2022
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.