Local storage operator creates duplicate PV if cluster node reboots.
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 usingLVM
volumes as device path.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.