客户端async删除速度较慢
适用场景
- ONTAP 9
- 卷文件async-delete
问题描述
- 从ONTAP执行卷文件async-delete可快速删除此目录。
- 与ONTAP async delete相比、通过客户端通过async-delete将文件移至ONTAP回收站执行此操作的速度非常慢:
[root@rhel1 ontap]# mv dir_to_delete_from_client/ ._ontaptrashbin
[root@rhel1 ontap]# ls -a
. .. .100_deleting_20240422_071730 dir_to_delete my_directory my_directory2
注意:您不能通过以下命令监控客户端async-Deletes,要监控ONTAP排放垃圾箱的进度,可以监控客户端的垃圾箱目录使用情况,并观察它随时间慢慢地消耗(请参见解决方案)。
以下是使用上述客户端async-delete方法触发和监控服务器端async-delete的方式:
以下是使用上述客户端async-delete方法触发和监控服务器端async-delete的方式:
cluster1::*> vol file async-delete start -vserver svm1_cluster1 -volume test -path dir_to_delete/
[Job 488] Job is queued: Asynchronous directory delete job.
cluster1::*> vol file async-delete show
Vserver Volume Job ID Path Progress
(#Files #Dirs #Bytes
------------ ------------ -------- --------------- -------------------------
svm1_cluster1 test 0:6 /.100_deleting_20240422_071730 49 0 0
0:7 dir_to_delete/ 331 0 0
cluster1::*> vol file async-delete show
Vserver Volume Job ID Path Progress
(#Files #Dirs #Bytes
------------ ------------ -------- --------------- -------------------------
svm1_cluster1 test 0:6 /.100_deleting_20240422_071730 144 0 0