OpenShift Container Storage is now OpenShift Data Foundation starting with version 4.9.
Chapter 2. Deploying OpenShift Data Foundation on single node OpenShift clusters using OpenShift Web Console
2.1. Installing Red Hat OpenShift Data Foundation Logical Volume Manager Operator using OpenShift Web Console
You can install Red Hat OpenShift Data Foundation Logical Volume Manager 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.
Ensure that no other storage provisioner is installed on the SNO cluster. OpenShift Data Foundation Logical Volume Manager Operator should be the only storage provisioner as it uses all available disks on the node.
Procedure
- Log in to the OpenShift Web Console.
- 
						Click Operators OperatorHub. 
- 
						Scroll or type ODF LVM Operatorinto the Filter by keyword box to find the ODF LVM Operator.
- Click Install.
- Set the following options on the Install Operator page: - Update Channel as stable-4.11.
- 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. 
- Click Install.
 
Verification steps
- Verify that the ODF LVM Operator shows a green tick indicating successful installation.
2.2. Creating OpenShift Data Foundation Logical Volume Manager cluster
Create Logical Volume Manager cluster after you install the OpenShift Data Foundation Logical Volume Manager operator.
Prerequisites
- The OpenShift Data Foundation Logical Volume Manager operator must be installed from the Operator Hub.
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 on the ODF LVM operator, and then click Create instance under LVMCluster.
- In the Create LVMCluster page, select either Form view or YAML view.
- Enter a name for the cluster.
- Click Create.
Verification Steps
- 
						Click Storage Storage Classes from the left pane of the OpenShift Web Console. 
- 
						Verify that the odf-lvm-<device-class-name>storage class is created with the ODF LVM cluster creation. By default,vg1is the device-class-name.
2.3. Uninstalling OpenShift Data Foundation Logical Volume Manager Operator installed using OpenShift Web Console
Prerequisites
- Ensure that the following are deleted before deleting the policy: - All the applications on the managed clusters that are using the storage provisioned by the OpenShift Data Foundation Logical Volume Manager Operator.
- Persistent volume claims (PVCs) and persistent volumes (PVs) provisioned using the OpenShift Data Foundation Logical Volume Manager Operator.
- All volume snapshots provisioned by the OpenShift Data Foundation Logical Volume Manager Operator.
 
- 
						Ensure that no logical volume resources exist by using the oc get logicalvolumecommand.
Procedure
- Select the project - openshift-storage.- oc project openshift-storage - $ oc project openshift-storage- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Display the pods. - Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Display the - lvmcluster.- oc get lvmcluster - $ oc get lvmcluster NAME AGE odf-lvmcluster 7d3h- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Delete the - lvmcluster.- oc delete lvmcluster odf-lvmcluster - $ oc delete lvmcluster odf-lvmcluster lvmcluster.lvm.topolvm.io "odf-lvmcluster" deleted- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Verify the deletion by displaying the - lvmcluster.- oc get lvmcluster - $ oc get lvmcluster No resources found in openshift-storage namespace.- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Wait until there is only the - lvm-operatorpod running.- oc get pods - $ oc get pods NAME READY STATUS RESTARTS AGE lvm-operator-controller-manager-54df65b5c4-n7bhb 3/3 Running 1 (45h ago) 7d2h- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Change the project to - default.- oc project default - $ oc project default- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow 
- Delete the project - openshift-storage.- oc delete project openshift-storage - $ oc delete project openshift-storage- Copy to Clipboard Copied! - Toggle word wrap Toggle overflow