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.
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
- Download the ODF CLI tool from the customer portal.
Procedure
Find the stale subvolumes by using the
--stale
flag with thesubvolumes
command:odf subvolume ls --stale
$ odf subvolume ls --stale
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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
# 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 Copied! Toggle word wrap Toggle overflow Delete the stale subvolumes:
odf subvolume delete <subvolumes> <filesystem> <subvolumegroup>
odf subvolume delete <subvolumes> <filesystem> <subvolumegroup>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 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
odf subvolume delete csi-vol-427774b4-340b-11ed-8d66-0242ac110004,csi-vol-427774b4-340b-11ed-8d66-0242ac110005 ocs-storagecluster csi
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output:
Info: subvolume csi-vol-427774b4-340b-11ed-8d66-0242ac110004 deleted Info: subvolume csi-vol-427774b4-340b-11ed-8d66-0242ac110004 deleted
# Info: subvolume csi-vol-427774b4-340b-11ed-8d66-0242ac110004 deleted # Info: subvolume csi-vol-427774b4-340b-11ed-8d66-0242ac110004 deleted
Copy to Clipboard Copied! Toggle word wrap Toggle overflow