Este conteúdo não está disponível no idioma selecionado.

Chapter 11. Finding and cleaning stale subvolumes (Technology Preview)


Sometimes stale subvolumes don’t have a respective k8s reference attached. These subvolumes are of no use and can be deleted. You can find and delete stale subvolumes using the ODF CLI tool.

Important

Deleting stale subvolumes using the ODF CLI tool is a Technology Preview feature. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.

For more information, see Technology Preview Features Support Scope.

Prerequisites

  1. Download the ODF CLI tool from the customer portal.

Procedure

  1. Find the stale subvolumes by using the --stale flag with the subvolumes command:

    $ odf subvolume ls --stale
    Copy to Clipboard Toggle word wrap

    Example output:

    # Filesystem  Subvolume Subvolumegroup State
    # ocs-storagecluster-cephfilesystem csi-vol-427774b4-340b-11ed-8d66-0242ac110004 csi stale
    # ocs-storagecluster-cephfilesystem csi-vol-427774b4-340b-11ed-8d66-0242ac110005 csi stale
    Copy to Clipboard Toggle word wrap
  2. Delete the stale subvolumes:

    odf subvolume delete <subvolumes> <filesystem> <subvolumegroup>
    Copy to Clipboard Toggle word wrap

    Replace <subvolumes> with a comma separated list of subvolumes from the output of the first command. The subvolumes must be of the same filesystem and subvolumegroup.

    Replace <filesystem> and <subvolumegroup> with the filesystem and subvolumegroup from the output of the first command.

    For example:

    odf subvolume delete csi-vol-427774b4-340b-11ed-8d66-0242ac110004,csi-vol-427774b4-340b-11ed-8d66-0242ac110005 ocs-storagecluster csi
    Copy to Clipboard Toggle word wrap

    Example output:

    # Info: subvolume csi-vol-427774b4-340b-11ed-8d66-0242ac110004 deleted
    # Info: subvolume csi-vol-427774b4-340b-11ed-8d66-0242ac110004 deleted
    Copy to Clipboard Toggle word wrap
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat