You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/persistent-storage-csi-gcp-hyperdisk-limitations.adoc
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11,15 +11,15 @@ The GCP PD CSI driver support for the C3 instance type for bare metal and N4 mac
11
11
12
12
* For cloning or resizing, hyperdisk-balanced disks original volume size must be 6Gi or greater.
13
13
14
-
* The default storage class is standard-csi.
14
+
* The default storage class is standard-csi.
15
15
+
16
16
[IMPORTANT]
17
17
====
18
18
You need to manually create a storage class.
19
19
20
20
For information about creating the storage class, see Step 2 in Section _Setting up hyperdisk-balanced disks_.
21
21
====
22
-
22
+
ifndef::openshift-dedicated[]
23
23
* Clusters with mixed virtual machines (VMs) that use different storage types, for example, N2 and N4, are not supported. This is due to hyperdisks-balanced disks not being usable on most legacy VMs. Similarly, regular persistent disks are not usable on N4/C3 VMs.
24
-
24
+
endif::openshift-dedicated[]
25
25
* A GCP cluster with c3-standard-2, c3-standard-4, n4-standard-2, and n4-standard-4 nodes can erroneously exceed the maximum attachable disk number, which should be 16 (link:https://issues.redhat.com/browse/OCPBUGS-39258[JIRA link]).
Copy file name to clipboardExpand all lines: modules/persistent-storage-csi-gcp-hyperdisk-storage-pools-procedure.adoc
+44-6Lines changed: 44 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -10,10 +10,45 @@
10
10
* Access to the cluster with administrative privileges
11
11
12
12
.Procedure
13
-
To set up hyperdisk-balanced disks:
13
+
Complete the following steps to set up hyperdisk-balanced disks:
14
+
15
+
ifdef::openshift-dedicated[]
16
+
. Create an {product-title} cluster on {GCP} with attached disks provisioned with hyperdisk-balanced disks. This can be achieved by provisioning the cluster with compute node types that support hyperdisk-balanced disks, such as the C3 and N4 machine series from {GCP}.
17
+
. Once the OSD cluster is ready, navigate to the **OpenShift console** for Storage Class creation.
18
+
Within the console, navigate to the **Storage** section to create a Storage Class specifying the hyperdisk-balanced disk:
<1> Specify the name for your storage class. In this example, the name is `hyperdisk-sc`.
39
+
<2> Specify the GCP CSI provisioner as `pd.csi.storage.gke.io`.
40
+
<3> If using storage pools, specify a list of specific storage pools that you want to use in the following format: `projects/PROJECT_ID/zones/ZONE/storagePools/STORAGE_POOL_NAME`.
41
+
<4> Specify the disk type as `hyperdisk-balanced`.
42
+
+
43
+
[NOTE]
44
+
====
45
+
If you use storage pools, you must first create a Hyperdisk Storage Pool of the type "Hyperdisk Balanced" in the Google Cloud console prior to referencing it in the OpenShift Storage Class. The Hyperdisk Storage Pool must be created in the same zone as the compute node supporting Hyperdisk is installed in the cluster configuration. For more information about creating a Hyperdisk Storage Pool, see link:https://cloud.google.com/compute/docs/disks/create-storage-pools#create-pool[Create a Hyperdisk Storage Pool] in the Google Cloud documentation.
46
+
====
47
+
48
+
endif::openshift-dedicated[]
14
49
15
50
ifndef::openshift-dedicated[]
16
-
. Create GCP cluster with attached disks provisioned with hyperdisk-balanced disks.
51
+
. Create a GCP cluster with attached disks provisioned with hyperdisk-balanced disks.
17
52
endif::openshift-dedicated[]
18
53
19
54
ifndef::openshift-dedicated[]
@@ -22,7 +57,7 @@ endif::openshift-dedicated[]
22
57
23
58
ifndef::openshift-dedicated[]
24
59
.. Follow the procedure in the _Installing a cluster on GCP with customizations_ section.
25
-
+
60
+
+
26
61
For your install-config.yaml file, use the following example file:
27
62
+
28
63
.Example install-config YAML file
@@ -74,6 +109,7 @@ ifndef::openshift-dedicated[]
74
109
* cluster_csi_driver.yaml - specifies opting out of the default storage class creation
75
110
* storageclass.yaml - creates a hyperdisk-specific storage class
76
111
+
112
+
--
77
113
.Example cluster CSI driver YAML file
78
114
[source, yaml]
79
115
----
@@ -88,7 +124,9 @@ spec:
88
124
storageClassState: Unmanaged <1>
89
125
----
90
126
<1> Specifies disabling creation of the default {product-title} storage classes.
127
+
--
91
128
+
129
+
--
92
130
.Example storage class YAML file
93
131
[source, yaml]
94
132
----
@@ -121,7 +159,8 @@ allowedTopologies: <7>
121
159
<4> Specifies the throughput value in MiBps using the "Mi" qualifier. For example, if your required throughput is 250 MiBps, specify "250Mi". If you do not specify a value, the capacity is based upon the disk type default.
122
160
<5> Specifies the IOPS value without any qualifiers. For example, if you require 7,000 IOPS, specify "7000". If you do not specify a value, the capacity is based upon the disk type default.
123
161
<6> If using storage pools, specify a list of specific storage pools that you want to use in the format: projects/PROJECT_ID/zones/ZONE/storagePools/STORAGE_POOL_NAME.
124
-
<7> If using storage pools, set `allowedTopologies` to restrict the topology of provisioned volumes to where the storage pool exists. In this example, `us-east4-c`.
162
+
<7> If using storage pools, set `allowedTopologies` to restrict the topology of provisioned volumes to where the storage pool exists. In this example, `us-east4-c`.
163
+
--
125
164
endif::openshift-dedicated[]
126
165
127
166
. Create a persistent volume claim (PVC) that uses the hyperdisk-specific storage class using the following example YAML file:
@@ -19,15 +20,15 @@ To create CSI-provisioned persistent volumes (PVs) that mount to GCP PD storage
19
20
* *GCP PD CSI Driver Operator*: By default, the Operator provides a storage class that you can use to create PVCs. You can disable this default storage class if desired (see xref:../../storage/container_storage_interface/persistent-storage-csi-sc-manage.adoc#persistent-storage-csi-sc-manage[Managing the default storage class]). You also have the option to create the GCP PD storage class as described in xref:../../storage/persistent_storage/persistent-storage-gce.adoc#persistent-storage-using-gce[Persistent storage using GCE Persistent Disk].
20
21
21
22
* *GCP PD driver*: The driver enables you to create and mount GCP PD PVs.
22
-
ifndef::openshift-dedicated[]
23
+
//
23
24
+
24
25
GCP PD CSI driver supports the C3 instance type for bare metal and N4 machine series. The C3 instance type and N4 machine series support the hyperdisk-balanced disks.
25
-
26
+
ifndef::openshift-dedicated[]
26
27
[NOTE]
27
28
====
28
29
{product-title} provides automatic migration for the GCE Persistent Disk in-tree volume plugin to its equivalent CSI driver. For more information, see xref:../../storage/container_storage_interface/persistent-storage-csi-migration.adoc#persistent-storage-csi-migration[CSI automatic migration].
To set up storage pools, see xref:../../storage/container_storage_interface/persistent-storage-csi-gcp-pd.adoc#persistent-storage-csi-gcp-hyperdisk-storage-pools-procedure_persistent-storage-csi-gcp-pd[Setting up hyperdisk-balanced disks].
0 commit comments