Applicable Products
Overview
Storage pool scrubbing is a maintenance task that scans the file system of each RAID group in a storage pool to detect and automatically repair damaged data blocks in the ZFS file system. Scheduling pool scrubbing helps maintain data consistency and integrity. However, while scrubbing is running, the storage pool's read and write performance may be reduced. It is recommended to schedule pool scrubbing during periods of low NAS usage.
When storage pools are large or contain significant data, scrubbing tasks may take a long time to complete. If a scheduled system reboot or shutdown occurs during an active scrubbing task, the process will be interrupted and must be restarted from the beginning. Advanced scheduling features, such as excluding specific times or days, can help avoid conflicts with planned maintenance or reboots.
Procedure
Follow these steps to set up storage pool scrubbing with appropriate scheduling and exclusions. The example below demonstrates how to configure scrubbing for a scenario where:
- Business hours are Monday to Friday, 8:00–19:00.
- A scheduled system reboot occurs every Sunday early morning, 3:00.
- The largest storage pool requires approximately 30 hours to complete scrubbing.
- Scrubbing should run only once per month.
Step 1: Plan the monthly scrubbing schedule
- Scrubbing should not run during business hours (Mon–Fri, 8:00–19:00).
- Scrubbing must finish before the scheduled reboot (Sunday early morning).
- Choose a monthly window that allows uninterrupted completion (for example, the first Friday of each month, 20:00 to Sunday 3:00).
Step 2: Configure the monthly scrubbing schedule and exclude times
- Go to Storage & Snapshots > Storage > Storage/Snapshots.
- Click Settings or locate Storage Global Settings.
- Find the Pool Scrubbing Schedule setting.
- Set the schedule to run monthly, starting on the first Friday after business hours (for example, at 20:00).

- In Exclude Times, add:
- Monday to Friday, 8:00–19:00 (to avoid business hours)
- Sunday, 3:00 (to avoid the scheduled reboot window)

- Save your settings.
This configuration ensures monthly scrubbing completes before the scheduled reboot and does not impact business operations.
Note: The exact navigation and labels may vary slightly depending on your QuTS hero version.
Step 3: Monitor scrubbing progress
- In Storage & Snapshots, select the storage pool to view scrubbing status and progress.
- Check logs or notifications for completion or errors.
Recommendation
- Review and adjust the scrubbing schedule if your business hours or scrubbing duration changes.
- Use Exclude Times to prevent scrubbing during critical periods.
- Monitor scrubbing progress and check system logs for any interruptions or errors.
- If scrubbing is interrupted, manually restart the task as soon as possible to maintain data integrity.
Further Reading
適用產品
概覽
儲存空間儲存池清理是一項維護任務,會掃描儲存空間儲存池中每個 RAID 群組的檔案系統,以檢測並自動修復 ZFS 檔案系統中的損壞資料區塊。排程儲存池清理有助於維持資料的一致性和完整性。然而,在清理進行時,儲存空間儲存池的讀寫效能可能會降低。建議在 NAS 使用量低的時段安排儲存池清理。
當儲存空間儲存池較大或包含大量資料時,清理任務可能需要很長時間才能完成。如果在清理任務進行中發生排定的系統重新啟動或關機,該過程將被中斷,必須從頭開始。進階排程功能,例如排除特定時間或日期,可以幫助避免與計劃的維護或重新啟動發生衝突。
程式
按照以下步驟設置儲存空間儲存池清理,並進行適當的排程和排除。以下範例展示如何配置清理,以適應以下情況:
- 營業時間為週一至週五,8:00–19:00。
- 排定的系統重新啟動發生在每週日凌晨 3:00。
- 最大的儲存空間儲存池需要大約 30 小時才能完成清理。
- 清理應每月僅執行一次。
步驟 1:計劃每月的清理排程
- 清理不應在營業時間內進行(週一至週五,8:00–19:00)。
- 清理必須在排定的重新啟動之前完成(週日凌晨)。
- 選擇一個每月的時間視窗,允許不間斷地完成(例如,每月的第一個週五,20:00 到週日 3:00)。
步驟 2:配置每月的清理排程並排除時間
- 前往 儲存與快照總管 > 儲存空間 > 儲存空間 / 快照。
- 按一下 設定 或找到 儲存空間 全域設定。
- 找到 儲存池清理排程 設定。
- 將排程設為每月執行,從第一個星期五的下班後開始(例如,20:00)。

- 在 排除時間中,新增:
- 星期一至星期五,8:00–19:00(避免營業時間)
- 星期日,3:00(避免排定的重啟時間)

- 儲存您的設定。
此配置確保每月的清理在排定的重啟前完成,且不影響業務運作。
注意:具體的導航和標籤可能會因您的 QuTS hero 版本而略有不同。
步驟 3:監控清理進度
- 在 儲存與快照總管中,選擇儲存空間池以查看清理狀態和進度。
- 檢查日誌或通知以確認完成或錯誤。
建議
- 如果您的營業時間或清理持續時間改變,請檢查並調整清理排程。
- 使用 排除時間 以防止在關鍵時期進行清理。
- 監控清理進度並檢查系統日誌以檢視任何中斷或錯誤。
- 如果清理被中斷,請盡快手動重新啟動任務以維護資料完整性。
進一步閱讀