Description of problem: Specifying a device path like /dev/disk/by-id/dm-name-vg1-lvol0 does not work and the local storage cannot be used. Also: https://github.com/openshift/local-storage-operator/issues/57 How reproducible: always Steps to Reproduce: apiVersion: local.storage.openshift.io/v1 kind: LocalVolume metadata: name: lvm-local-storage namespace: local-storage spec: nodeSelector: nodeSelectorTerms: - matchExpressions: - key: region operator: In values: - local-storage-node storageClassDevices: - storageClassName: cadence-local volumeMode: Filesystem fsType: ext4 devicePaths: - /dev/disk/by-id/dm-name-vg-vg0-lvol0 Actual results: diskmaker cannot find any disks Expected results: diskmaker finds the LVM disk correctly
Verified with local-storage-operator.4.4.0-201912170523 on 4.4.0-0.nightly-2019-12-18-064553 $ oc get sc,pv NAME PROVISIONER AGE storageclass.storage.k8s.io/local-sc kubernetes.io/no-provisioner 5m41s storageclass.storage.k8s.io/standard (default) kubernetes.io/cinder 3h28m NAME CAPACITY ACCESS MODES RECLAIM POLICY STATUS CLAIM STORAGECLASS REASON AGE persistentvolume/local-pv-104b75f1 1Gi RWO Delete Available local-sc 5m20s sh-4.4# lvdisplay --- Logical volume --- LV Path /dev/myvg01/mylv01 LV Name mylv01 VG Name myvg01 LV UUID mvT0Ww-eOaz-i0Dm-4ZZo-HoPu-3EHB-dVUxpV LV Write Access read/write LV Creation host, time lxia19-48fdq-worker-dsf5s, 2019-12-19 06:15:56 +0000 LV Status available # open 0 LV Size 1.00 GiB Current LE 256 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:1
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0581