下列清單概述 ZFS 檔案系統的新增功能。如需有關這些新增功能的更多資訊,請參閱「Oracle Solaris ZFS Administration Guide」。
ZFS 裝置替代增強功能 ─ 在此發行版本中,在擴充基礎裝置時提供系統事件或 sysevent。已增強 ZFS 以識別這些事件,並視 autoexpand 特性而定,基於擴充 LUN 的新大小來調整儲存池。當收到動態 LUN 擴充事件時,您可使用 autoexpand 特性來啟用或停用自動儲存池擴充。
此功能可使您擴充 LUN,而結果儲存池可存取擴充的磁碟空間,無需匯出與匯入儲存池或重新啟動系統。autoexpand 特性預設為停用,您可決定是否要擴充 LUN。或者,您可使用 zpool online -e 指令來擴充 LUN 的完整大小。
zpool 清單指令的變動 — 在此發行版本中,zpool list 輸出提供更佳的空間配置資訊。例如:
# zpool list tank NAME SIZE ALLOC FREE CAP HEALTH ALTROOT tank 136G 55.2G 80.8G 40% ONLINE - |
先前的 USED 與 AVAIL 欄位已由 ALLOC 與 FREE 取代。
ALLOC 欄位會識別配置給所有資料集和內部中介資料的實體空間數目。FREE 欄位會識別儲存池中未配置的磁碟空間數目。
保留 ZFS 快照 – 如果您實作不同的自動快照政策,以致不慎以 zfs receive 指令銷毀較早的快照 (因為它們不再存在於傳送的一方),您可能會考慮使用此發行版本中新增的快照保留功能。
保留快照可避免快照遭銷毀。此外,此功能可藉由使用 zfs destroy- d 指令,來刪除上個快照複製移除時所擱置的快照複製。
您可利用 zfs hold 指令套用 保持保留標記 ,來保留一個快照或一組快照。
三顆硬碟同位檢查 RAID-Z (raidz3) – 在此發行版本中,備援的 RAID-Z 配置現在可擁有單硬碟同位檢查、雙硬碟同位檢查或三顆硬碟同位檢查,意指可各別承受 1、2 或 3 種裝置故障,而不會有任何資料流失。建立儲存池時,您可指定 raidz3 關鍵字用於三顆硬碟同位檢查 RAID-Z 配置。
ZFS 記錄檔裝置增強功能 – 此發行版本具有下列記錄檔裝置增強功能:
logbias 特性 – 您可使用此特性來指示 ZFS 如何處理特定資料集的同步要求。如果 logbias 設定為延時,ZFS 會使用儲存池的個別紀錄檔裝置 (若有的話),來處理低延時的要求。如果 logbias 設定為流量,ZFS 便不會使用儲存池的個別記錄檔裝置。反之,ZFS 會最佳化全域儲存池流量及有效使用資源的同步計算。預設值為 延時。針對多數的配置,預設值為最佳化。然而,logbias= 流量值可能會改善寫入資料庫檔案的效能。
記錄檔裝置移除 ─ 您現在可使用 zpool remove 指令,從儲存池移除記錄檔裝置。單一記錄檔裝置可藉由指定裝置名稱來移除。翻轉的記錄檔裝置可藉由指定用於記錄檔裝置的頂層鏡像來移除。當個別的記錄檔裝置自系統移除時,ZFS 目的記錄檔 (ZIL) 的作業事件記錄會寫入主要儲存池。
備援的頂層虛擬裝置現在可用數字識別碼加以識別。例如,在 2 個磁碟翻轉的儲存池中,頂層虛擬裝置為 mirror-0。
ZFS 儲存池回復 ─ 如果基礎裝置不可用、發生電力故障,或是備援的 ZFS 中有超過受支援數目的裝置故障,儲存池都可能因此受損。此發行版本提供新的指令功能,以回復您受損的儲存池。然而若使用此回復功能,則在儲存池當機前所執行的幾次作業事件可能會遺失。
zpool clear 與 zpool import 指令皆支援 -F 選項,以盡可能回復受損的儲存池。此外,zpool status、zpool clear 及 zpool import 指令會自動報告有受損的儲存池。這些指令同時也說明了如何回復儲存池。
新 ZFS 系統程序 – 在此發行版本中,每個儲存池均有關聯的程序 zpool- poolname。在此程序中的執行緒為儲存池的 I/O 處理執行緒,用來處理 I/O 作業,如壓縮與總和檢查驗證。此程序的目的在於提供每個儲存池的 CPU 使用率的可視性。您可使用 ps 與 prstat 指令來審閱這些程序的相關資訊。這些程序僅在全域區域可用。如需更多資訊,請參閱「SDC(7)」。
分割翻轉的 ZFS 儲存池 (zpool split) – 在此發行版本中,您可使用 zpool split 指令來分割翻轉的儲存池,使其與原來的翻轉儲存池中的一或多個磁碟分離,以建立另一個相同的儲存池。