zfs.tier.rewrite_job_status¶
Subscribe to real-time status updates for a ZFS rewrite job on the specified dataset. Polls every 2 seconds and emits a CHANGED event when status or statistics change.
This event is generated by a dynamic source. If you want to specify subscription params, subscribe to it using the name in the following format zfs.tier.rewrite_job_status:{“param”: “value”}
ZfsTierRewriteJobStatusEventSourceArgs
Type: objectNo Additional Properties
Dataset Name
Type: stringZFS dataset to subscribe to (e.g. tank/data). Receives updates whenever the job status or statistics change.
Must be at least 1 characters long
ZfsTierRewriteJobStatusEventSourceEvent
Type: objectNo Additional Properties
ZfsTierRewriteJobStatusEventSourceEvent
Type: objectNo Additional Properties
ZfsTierRewriteJobStatusEntry
Type: objectCurrent status and statistics for the dataset's active rewrite job.
No Additional PropertiesTier Job Id
Type: stringRewrite job identifier in dataset_name@job_uuid format.
Must be at least 1 characters long
Dataset Name
Type: stringZFS dataset this job is operating on.
Must be at least 1 characters long
Job Uuid
Type: stringUnique identifier for this rewrite job.
Must be at least 1 characters long
Status
Type: enum (of string)Current lifecycle state of the job.
COMPLETE- All files in the dataset have been processed.RUNNING- Job is actively processing files.QUEUED- Job is waiting for a free execution slot (seemax_concurrent_jobs).CANCELLED- Job was stopped viazfs_tier_job.cancel. Not resumable.STOPPED- Job was RUNNING but its process is no longer active (e.g. daemon restart). This state is computed on read and is never written to persistent storage.ERROR- Job halted due to an unrecoverable error. Usezfs_tier_job.recoverto retry failed files.
Must be one of:
- "COMPLETE"
- "RUNNING"
- "QUEUED"
- "CANCELLED"
- "STOPPED"
- "ERROR"
Progress statistics, or null if no statistics have been recorded yet.
ZfsTierRewriteJobStats
Type: objectNo Additional Properties
Start Time
Type: integerUnix timestamp (seconds) when the current run started. Reset each time the job is resumed or recovered.
Initial Time
Type: integerUnix timestamp (seconds) when the job was first created. Preserved across resumes.
Update Time
Type: integerUnix timestamp (seconds) of the most recent statistics update.
Count Items
Type: integerNumber of files processed in the current run. Reset to zero on each resume.
Count Bytes
Type: integerBytes processed in the current run. Reset to zero on each resume.
Total Items
Type: integerTotal number of files to process across the entire dataset.
Total Bytes
Type: integerTotal bytes to process across the entire dataset.
Failures
Type: integerCumulative count of files that failed rewriting across all runs of this job.
Success
Type: integerCumulative count of files successfully rewritten across all runs of this job.
Parent
Type: stringDirectory path of the file currently being processed. Also used as the resume checkpoint if the job is interrupted.
Name
Type: stringName of the file currently being processed.
Error
Error message describing why the job entered ERROR state, otherwise null.
Required roles: DATASET_READ