Chapter 2. Deploying OpenShift Data Foundation on single node OpenShift clusters 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-admin and Operator installation permissions.
Note

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

  1. Log in to the OpenShift Web Console.
  2. Click Operators OperatorHub.
  3. Scroll or type ODF LVM Operator into the Filter by keyword box to find the ODF LVM Operator.
  4. Click Install.
  5. Set the following options on the Install Operator page:

    1. Update Channel as stable-4.11.
    2. Installation Mode as A specific namespace on the cluster.
    3. Installed Namespace as Operator recommended namespace openshift-storage. If Namespace openshift-storage does not exist, it is created during the operator installation.
    4. 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.

    5. Click Install.

Verification steps

  • Verify that the ODF LVM Operator shows a green tick indicating successful installation.

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

  1. In the OpenShift Web Console, click Operators Installed Operators to view all the installed operators.

    Ensure that the Project selected is openshift-storage.

  2. Click on the ODF LVM operator, and then click Create instance under LVMCluster.
  3. In the Create LVMCluster page, select either Form view or YAML view.
  4. Enter a name for the cluster.
  5. Click Create.

Verification Steps

  1. Click Storage Storage Classes from the left pane of the OpenShift Web Console.
  2. Verify that the odf-lvm-<device-class-name> storage class is created with the ODF LVM cluster creation. By default, vg1 is the device-class-name.

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 logicalvolume command.

Procedure

  1. Select the project openshift-storage.

    $ oc project openshift-storage
    Copy to Clipboard Toggle word wrap
  2. Display the pods.

    $ oc get pods
    NAME                                               READY   STATUS    RESTARTS      AGE
    lvm-operator-controller-manager-54df65b5c4-n7bhb   3/3     Running   1 (45h ago)   7d2h
    topolvm-controller-645cb47cd4-kskqb                5/5     Running   5 (45h ago)   7d3h
    topolvm-node-7bqxp                                 4/4     Running   0             7d3h
    vg-manager-hwmg2                                   1/1     Running   0             7d
    Copy to Clipboard Toggle word wrap
  3. Display the lvmcluster.

    $ oc get lvmcluster
    NAME             AGE
    odf-lvmcluster   7d3h
    Copy to Clipboard Toggle word wrap
  4. Delete the lvmcluster.

    $ oc delete lvmcluster odf-lvmcluster
    lvmcluster.lvm.topolvm.io "odf-lvmcluster" deleted
    Copy to Clipboard Toggle word wrap
  5. Verify the deletion by displaying the lvmcluster.

    $ oc get lvmcluster
    No resources found in openshift-storage namespace.
    Copy to Clipboard Toggle word wrap
  6. Wait until there is only the lvm-operator pod running.

    $ oc get pods
    NAME                                               READY   STATUS    RESTARTS      AGE
    lvm-operator-controller-manager-54df65b5c4-n7bhb   3/3     Running   1 (45h ago)   7d2h
    Copy to Clipboard Toggle word wrap
  7. Change the project to default.

    $ oc project default
    Copy to Clipboard Toggle word wrap
  8. Delete the project openshift-storage.

    $ oc delete project openshift-storage
    Copy to Clipboard Toggle word wrap
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat