OneFS:可寫快照「修改日期」顯示快照的建立日期,而非檔案的建立日期

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.

Instructions

此為設計運作方式。

這是檔案資訊的清單:

ls -l /ifs/.snapshot/read_only_test_policy/test_dir/
-------------------------------------------------------------------------------
total 7360
-rwxrwx--- + 1 admin admin 172788 Jun 1 1998 1998_06-01_test_file.ai
-rwxrwx--- + 1 admin admin 304110 Mar 2 2004 2004_03_02_test_file.eps
-rwxrwx--- + 1 admin admin 3949 Jun 3 2006 2005_06_03_test_file.txt
-rwxrwx--- + 1 admin admin 335609 Feb 24 2008 2008_02_24_test_file.jpg
-rwxrwx--- + 1 admin admin 13139 Sep 3 2009 2009_09_03_test_file.txt
-rwxrwx--- + 1 admin admin 23040 Aug 11 2010 2010_08_11_test_file.xls
-------------------------------------------------------------------------------

這是相同檔案的清單,但來自可寫快照:

ls -l /ifs/read_only_test_policy/
-------------------------------------------------------------------------------
-rwxrwx--- + 1 admin admin 172788 May 3 20:30 1998_06-01_test_file.ai
-rwxrwx--- + 1 admin admin 304110 May 3 20:30 2004_03_02_test_file.eps
-rwxrwx--- + 1 admin admin 3949 May 3 20:30 2005_06_03_test_file.txt
-rwxrwx--- + 1 admin admin 335609 May 3 20:30 2008_02_24_test_file.jpg
-rwxrwx--- + 1 admin admin 13139 May 3 20:30 2009_09_03_test_file.txt
-rwxrwx--- + 1 admin admin 23040 May 3 20:30 2010_08_11_test_file.xls
-------------------------------------------------------------------------------

其他快照類型顯示的資料與檔案相同:

ls -l /ifs/.snapshot/read_only_test_policy/test_dir/
-------------------------------------------------------------------------------
total 7360
-rwxrwx--- + 1 admin admin 172788 Jun 1 1998 1998_06-01_test_file.ai
-rwxrwx--- + 1 admin admin 304110 Mar 2 2004 2004_03_02_test_file.eps
-rwxrwx--- + 1 admin admin 3949 Jun 3 2006 2005_06_03_test_file.txt
-rwxrwx--- + 1 admin admin 335609 Feb 24 2008 2008_02_24_test_file.jpg
-rwxrwx--- + 1 admin admin 13139 Sep 3 2009 2009_09_03_test_file.txt
-rwxrwx--- + 1 admin admin 23040 Aug 11 2010 2010_08_11_test_file.xls
------------------------------------------------------------------------------

從管理指南:

管理員指南中的快照說明

換句話說:
可寫快照在首次訪問時填充檔元數據。這是可寫快照的創建日期。在可寫快照中修改檔后,日期將反映新的訪問日期。

更新:
從版本 9.12.0 開始,對日期的處理進行了更改。

可寫入快照中檔案的建立時間 (或產生時間)、mtime、ctime 和 atime 與後備唯讀快照中個別檔案的建立時間相同。之後,在訪問或修改可寫快照中的檔時,修改了 mtime、ctime 或 atime。

如果使用者想要回退到上一個行為,他們可以進行以下更改:

​​​​sysctl efs.wsnap.copy_time_attrs_wsnap_cor=0

Additional Information

定義:
  • 修改時間 - mtime - 是指示上次修改檔案內容的時間戳記。
  • 變更時間 - ctime - 是指示上次變更檔案中繼資料的時間戳記。
  • 存取時間 - atime - 是指示上次存取檔案的時間戳記。

Affected Products

PowerScale OneFS
Article Properties
Article Number: 000213241
Article Type: How To
Last Modified: 19 Aug 2025
Version:  6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.