mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Cancel TRIM / initialize on FAULTED non-writeable vdevs
When a device which is actively trimming or initializing becomes FAULTED, and therefore no longer writable, cancel the active TRIM or initialization. When the device is merely taken offline with `zpool offline` then stop the operation but do not cancel it. When the device is brought back online the operation will be resumed if possible. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Co-authored-by: Brian Behlendorf <behlendorf1@llnl.gov> Co-authored-by: Vipin Kumar Verma <vipin.verma@hpe.com> Signed-off-by: Srikanth N S <srikanth.nagasubbaraoseetharaman@hpe.com> Closes #11588
This commit is contained in:
@@ -410,6 +410,7 @@ tags = ['functional', 'cli_root', 'zpool_labelclear']
|
||||
|
||||
[tests/functional/cli_root/zpool_initialize]
|
||||
tests = ['zpool_initialize_attach_detach_add_remove',
|
||||
'zpool_initialize_fault_export_import_online',
|
||||
'zpool_initialize_import_export',
|
||||
'zpool_initialize_offline_export_import_online',
|
||||
'zpool_initialize_online_offline',
|
||||
@@ -474,6 +475,7 @@ tags = ['functional', 'cli_root', 'zpool_sync']
|
||||
|
||||
[tests/functional/cli_root/zpool_trim]
|
||||
tests = ['zpool_trim_attach_detach_add_remove',
|
||||
'zpool_trim_fault_export_import_online',
|
||||
'zpool_trim_import_export', 'zpool_trim_multiple', 'zpool_trim_neg',
|
||||
'zpool_trim_offline_export_import_online', 'zpool_trim_online_offline',
|
||||
'zpool_trim_partial', 'zpool_trim_rate', 'zpool_trim_rate_neg',
|
||||
|
||||
Reference in New Issue
Block a user