@@ -19,35 +19,28 @@ For more VMware snapshot performance recommendations, see *_Additional resources
1919
2020.Procedure
2121
22- . Check the current config map by the running the following command:
22+ . Check the current secret by the running the following command:
2323+
2424[source, terminal]
2525----
26- $ oc -n openshift-cluster-csi-drivers get cm /vsphere-csi-config -o yaml
26+ $ oc -n openshift-cluster-csi-drivers get secret /vsphere-csi-config-secret -o jsonpath= '{.data.cloud\.conf}' | base64 -d
2727----
2828+
2929.Example output
3030+
3131[source, terminal]
3232----
33- apiVersion: v1
34- data:
35- cloud.conf: |+
36- # Labels with topology values are added dynamically via operator
37- [Global]
38- cluster-id = vsphere-01-cwv8p
39-
40- [VirtualCenter "vcenter.openshift.com"]
41- insecure-flag = true
42- datacenters = DEVQEdatacenter
43- migration-datastore-url = ds:///vmfs/volumes/vsan:527320283a8c3163-2faa6dc5949a3a28/
44-
45- kind: ConfigMap
46- metadata:
47- creationTimestamp: "2024-03-06T09:46:40Z"
48- name: vsphere-csi-config
49- namespace: openshift-cluster-csi-drivers
50- resourceVersion: "126687"
33+ # Labels with topology values are added dynamically via operator
34+ [Global]
35+ cluster-id = vsphere-01-cwv8p
36+
37+ # Populate VCenters (multi) after here
38+ [VirtualCenter "vcenter.openshift.com"]
39+ insecure-flag = true
40+ datacenters = DEVQEdatacenter
41+ password = "xxxxxxxx"
42+ user = "xxxxxxxx@devcluster.openshift.com"
43+ migration-datastore-url = ds:///vmfs/volumes/vsan:52c842f232751e0d-3253aadeac21ca82/
5144----
5245+
5346 In this example, the global maximum number of snapshots is not configured, so the default value of 3 is applied.
@@ -59,6 +52,7 @@ In this example, the global maximum number of snapshots is not configured, so th
5952[source, terminal]
6053----
6154$ oc patch clustercsidriver/csi.vsphere.vmware.com -- type=merge -p '{"spec":{"driverConfig":{"vSphere":{"globalMaxSnapshotsPerBlockVolume": 10}}}}'
55+
6256clustercsidriver.operator.openshift.io/csi.vsphere.vmware.com patched
6357----
6458+
@@ -94,34 +88,26 @@ In this example, the vSAN limit is being changed to 7 (`granularMaxSnapshotsPerB
9488+
9589[source, terminal]
9690----
97- $ oc -n openshift-cluster-csi-drivers get cm /vsphere-csi-config -o yaml
91+ $ oc -n openshift-cluster-csi-drivers get secret /vsphere-csi-config-secret -o jsonpath= '{.data.cloud\.conf}' | base64 -d
9892----
9993+
10094.Example output
10195+
10296[source, terminal]
10397----
104- apiVersion: v1
105- data:
106- cloud.conf: |+
107- # Labels with topology values are added dynamically via operator
108- [Global]
109- cluster-id = vsphere-01-cwv8p
110-
111- [VirtualCenter "vcenter.openshift.com"]
112- insecure-flag = true
113- datacenters = DEVQEdatacenter
114- migration-datastore-url = ds:///vmfs/volumes/vsan:527320283a8c3163-2faa6dc5949a3a28/
115-
116- [Snapshot]
117- global-max-snapshots-per-block-volume = 10 <1>
118-
119- kind: ConfigMap
120- metadata:
121- creationTimestamp: "2024-03-06T09:46:40Z"
122- name: vsphere-csi-config
123- namespace: openshift-cluster-csi-drivers
124- resourceVersion: "127118"
125- uid: f6968303-81d8-4048-99c1-d8211363d0fa
98+ # Labels with topology values are added dynamically via operator
99+ [Global]
100+ cluster-id = vsphere-01-cwv8p
101+
102+ # Populate VCenters (multi) after here
103+ [VirtualCenter "vcenter.openshift.com"]
104+ insecure-flag = true
105+ datacenters = DEVQEdatacenter
106+ password = "xxxxxxxx"
107+ user = "xxxxxxxx@devcluster.openshift.com"
108+ migration-datastore-url = ds:///vmfs/volumes/vsan:52c842f232751e0d-3253aadeac21ca82/
109+
110+ [Snapshot]
111+ global-max-snapshots-per-block-volume = 10 <1>
126112----
127113<1> `global-max-snapshots-per-block-volume` is now set to 10.
0 commit comments