跳转到主内容

无法删除qtree:错误:"qtree包含文件。使用"-force "参数

Views:
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core<a>200979082.</a>
Last Updated:

适用场景

  • ONTAP 9
  • qtree

问题描述

  • 尝试删除qtree时、系统会要求使用 -force 参数:

Cluster1::> qtree delete -vserver <vServer> -qtree <qtree> -volume <volume>
ERROR qtree.delete.failed: Failed to delete qtree "<qtree>" in volume "<volume>" on
Vserver "<vServer>". Error: "Qtree contains files. Use the "-force" parameter to permanently delete all of the files and the qtree"

  • 但是、在使用 -force 参数删除qtree时、命令不起作用。

Cluster1::>set adv

Cluster1::*> qtree delete -vserver <vServer> -qtree <qtree> -volume <volume>-force

Warning: Deleting qtree
"<qtree>" in volume "<volume>" in Vserver "<vServer>" will delete all quota policy rules associated with the qtree. Do you
want to proceed? {y|n}: y

Warning: This will delete all files inside qtree "<qtree>" in volume "<volume>" in Vserver
"<vServer>" before removing the qtree. Do you want to proceed? {y|n}: y
[Job 12345] Job is queued: Delete qtree <qtree> in volume <volume> Vserver <vServer>.

Cluster1::*> job show -id 12345 -instance
                Owning
Time       Node       Vserver   Name          Event    Job ID
-------------- -------------- ---------- -------------------- --------- ------
01/15 09:31:10 Node   vServer Qtree Delete    Failed   ID
   Description: Delete qtree <qtree> in volume
         <volume> Vserver <vServer>
    Completion: Failed to delete qtree "<qtree>" in
          volume "<volume>" on Vserver
         "<vServer>". Reason: Qtree contains
        files. Set the "force" parameter to "true"
          to permanently delete all of the files and
   the Qtree. The export policy "" has been
          unassigned from the qtree and it now uses
          the parent volume's export policy.

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.