Local storage operator creates duplicate PV if cluster node reboots.

Solution Verified - Updated -

Issue

  • Local storage operator creates duplicate PV post reboot of the OpenShift cluster node.

  • Before reboot

# oc get pv
NAME                CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS      CLAIM        STORAGECLASS        REASON   AGE
local-pv-f5fcf965   10236Mi    RWO            Delete           Bound       test/mysql   lv1-local-storage            4d19h 
  • Post reboot
# oc get pv
NAME                CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS      CLAIM        STORAGECLASS        REASON   AGE
local-pv-ec9d1d92   10236Mi    RWO            Delete           Available                lv1-local-storage            12m   <--- Duplicate PV
local-pv-f5fcf965   10236Mi    RWO            Delete           Bound       test/mysql   lv1-local-storage            4d19h <--- Original PV

Environment

  • Red Hat OpenShift Container Platform 4.4.x
  • Red Hat OpenShift Container Platform 4.5.x
  • For local volume PVs configured using LVM volumes as device path.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content