Skip to content

Latest commit

 

History

History
102 lines (93 loc) · 4.09 KB

README.md

File metadata and controls

102 lines (93 loc) · 4.09 KB

OpenEBS Logo

LOCALPV-LVM Storage Engine Commands

Table of Contents

  • LocalPV-LVM

  • LocalPV-LVM

    • Get LocalPV-LVM volumes

      $ kubectl openebs get volumes --cas-type=localpv-lvm
      NAMESPACE   NAME                                       STATUS   VERSION   CAPACITY   STORAGE CLASS   ATTACHED   ACCESS MODE     ATTACHED NODE
      openebs     pvc-04c2d4ea-f072-4e17-9e0a-db0fde0b2550   Ready    ci        1Gi        lvmpv-sc        Bound      ReadWriteOnce   worker-sh1
      openebs     pvc-1ec1c9b7-b74e-4742-901d-2af4558d6636   Ready    ci        1Gi        openebs-lvmpv   Bound      ReadWriteOnce   worker-sh1
      openebs     pvc-9999274f-ad01-48bc-9b21-7c51b47a870c   Ready    ci        4Gi        openebs-lvmpv   Bound      ReadWriteOnce   worker-sh1
      Note: For volumes not attached to any application, the ATTACH NODE would be shown as N/A.
    • Get LocalPV-LVM VolumeGroups

      $ kubectl openebs get storage --cas-type=localpv-lvm
      NAME         FREESIZE   TOTALSIZE
      worker-sh1              
      └─lvmvg      1020 GiB   1024 GiB
      
      worker-sh2              
      └─lvmvg-1    46.7 GiB   50 GiB
    • Describe LocalPV-LVM volumeGroups

      $ kubectl openebs describe storage worker-sh1
      worker-sh1 Details :
      
      HOSTNAME        : worker-sh1
      NAMESPACE       : openebs
      NUMBER OF POOLS : 1
      TOTAL CAPACITY  : 1024.0GiB
      TOTAL FREE      : 1020.0GiB
      TOTAL LVs       : 1
      TOTAL PVs       : 1
      
      Volume group details
      ---------------------
      NAME    UUID                                     LV COUNT   PV COUNT   USED PERCENTAGE
      lvmvg   IgnC8K-OJaA-WBx6-JLYz-HQU3-W8kb-0LHbXy   1          1          0.4%
    • Describe LocalPV-LVM volume

      $ kubectl openebs describe vol pvc-5265bc5e-dd55-4272-b1d0-2bb3a172970d 
      
      pvc-5265bc5e-dd55-4272-b1d0-2bb3a172970d Details :
      ------------------
      NAME              : pvc-5265bc5e-dd55-4272-b1d0-2bb3a172970d
      NAMESPACE         : lvm
      ACCESS MODE       : ReadWriteOnce
      CSI DRIVER        : local.csi.openebs.io
      CAPACITY          : 5Gi
      PVC NAME          : csi-lvmpv
      VOLUME PHASE      : Bound
      STORAGE CLASS     : openebs-lvmpv
      VERSION           : 1.4.0
      LVM VOLUME STATUS : Ready
      VOLUME GROUP      : lvmvg
      SHARED            : no
      THIN PROVISIONED  : no
      NODE ID           : node-0-152720
    • Describe LocalPV-LVM PVCs

      $ kubectl openebs describe pvc csi-lvmpv
      
      csi-lvmpv Details  :
      -------------------
      NAME               : csi-lvmpv
      NAMESPACE          : default
      CAS TYPE           : localpv-lvm
      BOUND VOLUME       : pvc-109f0d33-cc41-4a3c-874d-f03d4c3073d8
      STORAGE CLASS      : openebs-lvmpv
      SIZE               : 4Gi
      PVC STATUS         : Bound
      
      pvc-109f0d33-cc41-4a3c-874d-f03d4c3073d8 Details :
      ------------------
      NAME              : pvc-109f0d33-cc41-4a3c-874d-f03d4c3073d8
      NAMESPACE         : localpv-lvm
      ACCESS MODE       : ReadWriteOnce
      CSI DRIVER        : local.csi.openebs.io
      CAPACITY          : 4Gi
      PVC NAME          : csi-lvmpv
      VOLUME PHASE      : Bound
      STORAGE CLASS     : openebs-lvmpv
      VERSION           : 0.8.0
      LVM VOLUME STATUS : Ready
      VOLUME GROUP      : lvmvg
      SHARED            : no
      THIN PROVISIONED  : no
      NODE ID           : node1-virtual-machine