10.3.7. Increasing boot source disk image retention


You can configure image retention settings to increase the number of older operating system image versions preserved on the cluster.

When automatic boot source updates are enabled, the Containerized Data Importer (CDI) tracks and downloads the latest versions of operating system images. By default, the system aggressively minimizes the retention of older versions to conserve disk space. However, if you require a safety mechanism that allows you to roll back if a newly imported version introduces issues, you can increase the retention count.

참고

Manually deleting older PersistentVolumeClaim or DataVolume objects associated with historic boot source imports does not impact cluster stability or future updates.

Procedure

  1. Open the HyperConverged custom resource (CR) in your default editor:

    $ oc edit hco kubevirt-hyperconverged -n openshift-cnv
  2. Edit the spec.workloadSources.dataImportCronTemplates field to adjust the importsToKeep parameter to your preferred retention threshold:

    apiVersion: hco.kubevirt.io/v1
    kind: HyperConverged
    metadata:
      name: kubevirt-hyperconverged
    spec:
      workloadSources:
        dataImportCronTemplates:
          - metadata:
              name: rhel9-image-cron
            spec:
              garbageCollect: Outdated
              importsToKeep: 3
              schedule: "0 */12 * * *"
              managedDataSource: rhel9
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동