Questo contenuto non è disponibile nella lingua selezionata.
Chapter 3. Deploy OpenShift Data Foundation using IBM FlashSystem
OpenShift Data Foundation can use IBM FlashSystem storage available for consumption through OpenShift Container Platform clusters. You need to install the OpenShift Data Foundation operator and then create an OpenShift Data Foundation cluster for IBM FlashSystem storage.
3.1. Installing Red Hat OpenShift Data Foundation Operator Copia collegamentoCollegamento copiato negli appunti!
You can install Red Hat OpenShift Data Foundation Operator using the Red Hat OpenShift Container Platform Operator Hub.
Prerequisites
-
Access to an OpenShift Container Platform cluster using an account with
cluster-adminand operator installation permissions. - For additional resource requirements, see the Planning your deployment guide.
When you need to override the cluster-wide default node selector for OpenShift Data Foundation, you can use the following command to specify a blank node selector for the
openshift-storagenamespace (createopenshift-storagenamespace in this case):oc annotate namespace openshift-storage openshift.io/node-selector=
$ oc annotate namespace openshift-storage openshift.io/node-selector=Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Procedure
- Log in to the OpenShift Web Console.
-
Click Operators
OperatorHub. -
Scroll or type
OpenShift Data Foundationinto the Filter by keyword box to find the OpenShift Data Foundation Operator. - Click Install.
Set the following options on the Install Operator page:
- Update Channel as stable-4.14.
- Installation Mode as A specific namespace on the cluster.
-
Installed Namespace as Operator recommended namespace openshift-storage. If Namespace
openshift-storagedoes not exist, it is created during the operator installation. Select Approval Strategy as Automatic or Manual.
If you select Automatic updates, then the Operator Lifecycle Manager (OLM) automatically upgrades the running instance of your Operator without any intervention.
If you select Manual updates, then the OLM creates an update request. As a cluster administrator, you must then manually approve that update request to update the Operator to a newer version.
- Ensure that the Enable option is selected for the Console plugin.
- Click Install.
Verification steps
-
After the operator is successfully installed, a pop-up with a message,
Web console update is availableappears on the user interface. Click Refresh web console from this pop-up for the console changes to reflect. In the Web Console:
- Navigate to Installed Operators and verify that the OpenShift Data Foundation Operator shows a green tick indicating successful installation.
- Navigate to Storage and verify if the Data Foundation dashboard is available.
3.2. Creating an OpenShift Data Foundation Cluster for external IBM FlashSystem storage Copia collegamentoCollegamento copiato negli appunti!
You need to create a new OpenShift Data Foundation cluster after you install the OpenShift Data Foundation operator on the OpenShift Container Platform.
Prerequisites
- A valid Red Hat OpenShift Data Foundation Advanced subscription. For more information, see the knowledgebase article on OpenShift Data Foundation subscriptions.
- For Red Hat Enterprise Linux® operating system, ensure that there is iSCSI connectivity and then configure Linux multipath devices on the host.
- For Red Hat Enterprise Linux CoreOS or when the packages are already installed, configure Linux multipath devices on the host.
- Ensure to configure each worker with storage connectivity according to your storage system instructions. For the latest supported FlashSystem storage systems and versions, see IBM ODF FlashSystem driver documentation.
Procedure
In the OpenShift Web Console, click Operators
Installed Operators to view all the installed operators. Ensure that the Project selected is
openshift-storage.- Click OpenShift Data Foundation and then click Create StorageSystem.
In the Backing storage page, select the following options:
- Select Full deployment for the Deployment type option.
- Select Connect an external storage platform from the available options.
- Select IBM FlashSystem Storage from the Storage platform list.
- Click Next.
In the Create storage class page, provide the following information:
Enter a name for the storage class.
When creating block storage persistent volumes, select the storage class <storage_class_name> for best performance. The storage class allows direct I/O path to the FlashSystem.
Enter the following details of IBM FlashSystem connection:
- IP address
- User name
- Password
- Pool name
-
Select
thickorthinfor the Volume mode. - Click Next.
In the Capacity and nodes page, provide the necessary details:
Select a value for Requested capacity.
The available options are
0.5 TiB,2 TiB, and4 TiB. The requested capacity is dynamically allocated on the infrastructure storage class.Select at least three nodes in three different zones.
It is recommended to start with at least 14 CPUs and 34 GiB of RAM per node. If the nodes selected do not match the OpenShift Data Foundation cluster requirement of an aggregated 30 CPUs and 72 GiB of RAM, a minimal cluster will be deployed. For minimum starting node requirements, see the Resource requirements section in the Planning guide.
- Click Next.
Optional: In the Security and network page, provide the necessary details:
To enable encryption, select Enable data encryption for block and file storage.
Choose any one or both Encryption level:
- Cluster-wide encryption to encrypt the entire cluster (block and file).
- StorageClass encryption to create encrypted persistent volume (block only) using encryption enabled storage class.
Select the Connect to an external key management service checkbox. This is optional for cluster-wide encryption.
- Key Management Service Provider is set to Vault by default.
- Enter Vault Service Name, host Address of Vault server ('https://<hostname or ip>'), Port number, and Token.
Expand Advanced Settings to enter additional settings and certificate details based on your Vault configuration:
- Enter the Key Value secret path in the Backend Path that is dedicated and unique to OpenShift Data Foundation.
- Optional: Enter TLS Server Name and Vault Enterprise Namespace.
- Provide CA Certificate, Client Certificate, and Client Private Key by uploading the respective PEM encoded certificate file.
- Click Save.
- To enable in-transit encryption, select In-transit encryption.
- Select Default (SDN) for Network.
- Click Next.
In the Review and create page, review if all the details are correct:
- To modify any configuration settings, click Back to go back to the previous configuration page.
- Click Create StorageSystem.
Verification Steps
- Verifying the state of the pods
-
Click Workloads
Pods from the left pane of the OpenShift Web Console. Select
openshift-storagefrom the Project drop-down list.NoteIf the Show default projects option is disabled, use the toggle button to list all the default projects.
Expand Table 3.1. Pods corresponding to OpenShift Data Foundation components Component Corresponding pods OpenShift Data Foundation Operator
-
ocs-operator-*(1 pod on any worker node) -
ocs-metrics-exporter-*(1 pod on any worker node) -
odf-operator-controller-manager-*(1 pod on any worker node) -
odf-console-*(1 pod on any worker node) -
csi-addons-controller-manager-*(1 pod on any worker node)
ibm-storage-odf-operator-
ibm-storage-odf-operator-*(2 pods on any worker nodes) -
ibm-odf-console-*
ibm-flashsystem-storageibm-flashsystem-storage-*(1 pod on any worker node)rook-ceph Operatorrook-ceph-operator-*(1 pod on any worker node)Multicloud Object Gateway
-
noobaa-operator-*(1 pod on any worker node) -
noobaa-core-*(1 pod on any worker node) -
noobaa-db-pg-*(1 pod on any worker node) -
noobaa-endpoint-*(1 pod on any worker node)
CSI
-
ibm-block-csi-*(1 pod on any worker node)
-
-
Click Workloads
- Verifying that the OpenShift Data Foundation cluster is healthy
-
In the Web Console, click Storage
Data Foundation. - In the Status card of the Overview tab, verify that the Storage System has a green tick mark.
- In the Details card, verify that the cluster information is displayed.
-
In the Web Console, click Storage
For more information on the health of the OpenShift Data Foundation cluster using the Block and File dashboard, see Monitoring OpenShift Data Foundation.
- Verifying that the Multicloud Object Gateway is healthy
-
In the Web Console, click Storage
Data Foundation. - In the Status card of the Overview tab, click Storage System and then click the storage system link from the pop up.
- In the Status card of the Object tab, verify that both Object Service and Data Resiliency have a green tick.
- In the Details card, verify that the MCG information is displayed.
-
In the Web Console, click Storage
For more information on the health of the OpenShift Data Foundation cluster using the object dashboard, see Monitoring OpenShift Data Foundation.
- Verifying that IBM FlashSystem is connected and the storage cluster is ready
- Run the following command to verify if the OpenShift Data Foundation cluster is connected to the external IBM FlashSystem.
oc get flashsystemclusters.odf.ibm.com
$ oc get flashsystemclusters.odf.ibm.com NAME AGE PHASE CREATED AT ibm-flashsystemcluster 35s 2021-09-23T07:44:52ZCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Verifying the StorageSystem of the storage
- Run the following command to verify the storageSystem of IBM FlashSystem storage cluster.
oc get storagesystems.odf.openshift.io
$ oc get storagesystems.odf.openshift.io NAME STORAGE-SYSTEM-KIND STORAGE-SYSTEM-NAME ibm-flashsystemcluster-storagesystem flashsystemcluster.odf.ibm.com/v1alpha1 ibm-flashsystemcluster ocs-storagecluster-storagesystem storagecluster.ocs.openshift.io/v1 ocs-storageclusterCopy to Clipboard Copied! Toggle word wrap Toggle overflow - Verifying the subscription of the IBM operator
- Run the following command to verify the subscription:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Verifying the CSVs
- Run the following command to verify that the CSVs are in the succeeded state.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Verifying the IBM operator and CSI pods
- Run the following command to verify the IBM operator and CSI pods:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow