Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lvm volumes are not visible on the host machine. #7

Closed
pawanpraka1 opened this issue Jan 5, 2021 · 2 comments
Closed

lvm volumes are not visible on the host machine. #7

pawanpraka1 opened this issue Jan 5, 2021 · 2 comments

Comments

@pawanpraka1
Copy link
Contributor

pawanpraka1 commented Jan 5, 2021

When volume gets provisioned, the lvdisplay on the host does not show the volume. How ever the lvdisplay is showing the volume inside the lvm node daemonset.

inside container

$ kubectl exec -it openebs-lvm-node-cptgb -c openebs-lvm-plugin -n kube-system sh
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
/ # 
/ # lvdisplay
  --- Logical volume ---
  LV Path                /dev/lvmvg/pvc-f836f370-be7c-4ab1-9edf-420e5c999c8a
  LV Name                pvc-f836f370-be7c-4ab1-9edf-420e5c999c8a
  VG Name                lvmvg
  LV UUID                dwRPQq-lLkO-L23d-MTmz-TWjV-QwfN-qCVQQk
  LV Write Access        read/write
  LV Creation host, time cluster-9-node-1, 2021-02-03 11:30:20 +0000
  LV Status              available
  # open                 1
  LV Size                4.00 GiB
  Current LE             1024
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   

On the host

$ sudo lvdisplay
k8s@cluster-9-node-1:~$ 
@pawanpraka1
Copy link
Contributor Author

pawanpraka1 commented Feb 3, 2021

@praveengt can you take a look at this one.

@pawanpraka1
Copy link
Contributor Author

we can refresh the cache on the host to check all the lvm volumes on the node.

$ pvscan --cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant