Dell Unity:從 UNIX 主機的 FS 快照還原遺失/刪除的資料 (使用者可修正)
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
UNIX 主機從快照隱藏檔案中恢復快照的過程:
NFS 用戶端的第一個任務是連接到檔案系統上的 NFS 共用。唯讀快照的存取權是透過存取快照隱藏的 .ckpt 資料路徑所建立。此路徑會將用戶端重定向到唯讀快照捕獲的時間點視圖。
Cause
從檔案系統刪除部分資料
Resolution
1.列出為 NAS 伺服器匯出的檔案系統:
[root@vhost fserver]# showmount -e <IP or FQDN of NAS Server>
伺服器的匯出清單:
/NAS/exp (everyone) /exp (everyone) /NASserver/exp/share (everyone) /share1 (everyone) /share2 (everyone) /share3 (everyone)
2.在任何位置建立暫存目錄:
[root@vhost fserver]# mkdir /mnt/test
3.將根 FS 共用裝載到 UNIX 主機上的新臨時目錄上。
** 注意:只有根 FS 共用包含 .ckpt 隱藏檔。它不能是子共用(例如:共用 /NASserver/exp/share 將不起作用)
[root@vhost fserver]# mount <IP or FQDN of NAS Server>:/share1 /mnt/test
[root@vhost fserver]# cd /mnt/test
[root@vhost fserver]# ls -la |grep -i .ckpt
。
~輸出包含快照檔。選擇要從中還原數據的 .ckpt 目錄。
.ckpt_2016_14_11_20.58.41_GMT
.ckpt_2016_15_11_20.58.41_GMT
.ckpt_2016_16_11_20.58.41_GMT
.ckpt_2016_17_11_20.58.41_GMT
4.將目錄變更為所需的 .ckpt 目錄
[root@vhost fserver]# cd .ckpt_2016_16_11_20.58.41_GMT
[root@vhost fserver]# ls
這會列出快照中的所有檔案/目錄。
5.複製檔案以還原至 FS,或在 UNIX 上使用 rsync 命令。
[root@vhost fserver]# cp deletedfile /testAdditional Information
由於唯讀快照通過 CVFS 機制向客戶端公開,因此客戶端能夠直接從快照中恢復數據,而無需任何管理員干預。例如,如果使用者錯誤地損壞或刪除了檔,則該使用者可以直接訪問唯讀快照,並從快照中獲取該檔的早期版本,並將其複製到文件系統以從中恢復。
Affected Products
Dell EMC Unity FamilyProducts
Dell Unity 300, Dell EMC Unity 300F, Dell EMC Unity 400, Dell EMC Unity 400F, Dell EMC Unity 500, Dell EMC Unity 500F, Dell EMC Unity 600, Dell EMC Unity 600F, Dell EMC Unity Family |Dell EMC Unity All Flash, Dell EMC Unity Family
, Dell EMC Unity Hybrid, Dell EMC UnityVSA Professional Edition/Unity Cloud Edition
...
Article Properties
Article Number: 000052854
Article Type: Solution
Last Modified: 27 Jun 2025
Version: 3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.