Troubleshooting Tip: Unable to delete a VDOM
Description
Solution
entry used by table system.interface:name 'test0'
entry used by table system.interface:name 'test1'
entry used by table system.interface:name 'vdom link0'
entry used by table system.interface:name 'vdom link1'
entry used by table system.vdom-property:name 'second'
(global) # diagnose sys cmdb refcnt show system.vdom.name testing-vd
entry used by table system.interface:name 'l2t.testing-vd' (From 'global')
entry used by table system.interface:name 'naf.testing-vd' (From 'global')
entry used by table system.interface:name 'ssl.testing-vd' (From 'global')
entry used in table system.interface:name 'npu0_vlink1.testing-vd' (From 'global')
entry used by child table vdom:name 'testing-vd' of table system.admin:name 'admin' (From 'global')
entry used by table system.vdom-property:name 'testing-vd' (From 'global')
It is possible to see that this VDOM is being used by the admin user:
config system admin
edit "admin"
set accprofile "super_admin"
set vdom "root" "testing-vd"
set password ENC SH2M6KbuWYUrbgtJOsiDIMc9iKdw+vfzx5yVJJqoRa6g0dhppIoleoT+fXDRFY=
next
end
To remove it, run the following:
config system admin
set vdom root
end
That will allow the user to delete the VDOM in question. In my example, the VDOM is called testing-vd.
Additionally, the command to refresh/reset the reference count. Here I run it on both interfaces and the VDOM:
diagnose sys cmdb refcnt reset system.interface.name ssl.testing-vd
diagnose sys cmdb refcnt reset system.vdom.name testing-vd
Related articles:
Troubleshooting Tip : verifying FortiGate configuration objects references and dependencies with the CLI command 'diagnose system checkused'.
Technical Tip: How to delete a VDOM using the GUI and CLI
