Can we delete ONTAP images from repository post ONTAP upgrade?
Applies to
- ONTAP 9
- ONTAP Upgrade
Answer
- Yes. You can manually remove ONTAP images from the cluster repository provided that the cluster is not undergoing an upgrade (in progress or paused)
- Deleting images from the repository does not affect the operation of the cluster
- Deleting images frees up space in each node's root (/mroot) filesystem
- A root filesystem with insufficient free space may - among other issues - prevent future ONTAP uploads from completing
Additional Information
The following cluster commands can be used to view and manage the cluster repository.
- Display the contents of the repository:
cluster-c1::> cluster image package show-repository
cluster-c1::> set adv
cluster-c1::*> system node image package show
Under normal circumstances all nodes will have the same contents as the cluster repository.
- Delete the version(s) you no longer need:
cluster-c1::> cluster image package delete -version <image_name>- Best practice is to keep at least the current running version. See How to copy an ONTAP image package from the system repository
- There are other causes for a full- or nearly-full mroot, for example large core files which can be deleted to free up space if they are no longer needed:
cluster-c1::> system node coredump show
cluster-c1::> system node coredump delete -node <nodename> -corename <corefilename>
<OR>
cluster-c1::> system node coredump delete-all
