// Module included in the following assemblies:
//
// * storage/container_storage_interface/persistent-storage-csi-vsphere.adoc
//

:_mod-docs-content-type: PROCEDURE
[id="persistent-storage-csi-vsphere-disable-storage-procedure_{context}"]
= Disabling and enabling storage on vSphere

[role="_abstract"]
To control vSphere storage integration with your cluster, disable or enable the CSI driver by changing the management state in the `ClusterCSIDriver` resource.

[IMPORTANT]
====
Before running this procedure, carefully review the preceding "Consequences of disabling and enabling storage on vSphere" table and potential impacts to your environment.
====

.Procedure
. Click *Administration* > *CustomResourceDefinitions*.

. On the *CustomResourceDefinitions* page next to the *Name* dropdown box, type "clustercsidriver".

. Click *CRD ClusterCSIDriver*.

. Click the *Instances* tab.

. Click *csi.vsphere.vmware.com*.

. Click the *YAML* tab.

. For `spec.managementState`, change the value to `Removed` or `Managed`:
+
* `Removed`: storage is disabled
* `Managed`: storage is enabled

. Click *Save*.

. If you are disabling storage, confirm that the driver has been removed:
.. Click *Workloads* > *Pods*.
.. On the *Pods* page, in the *Name* filter box type "vmware-vsphere-csi-driver".
+
The only item that should appear is the operator. For example: "vmware-vsphere-csi-driver-operator-559b97ffc5-w99fm"
