08.存儲Cinder→5.場景學習→01.LVM Volume

描述 詳細
  1. 查看配置文件
    1. Cinder 支持多種 volume provider,LVM 是默認的 volume provider。Devstack 安裝以後,/etc/cinder/cinder 已經配置好了 LVM
    2. 配置定義了名爲「lvmdriver-1」的 volume provider,也稱做 back-end。其 driver 是 LVM,LVM 的 volume group 名爲「stack-volumes-lvmdriver-1」。能夠查看:
       1
       2
       3
       4
       5
       6
       7
       8
       9
      10
      11
      12
      13
      14
      15
      16
      17
      18
      19
      20
      21
      22
      23
      24
      25
      26
      27
      28
      29
      30
      31
      32
      33
      34
      35
      36
      37
      38
      39
      40
      41
      42
      root@controller:~# vgdisplay
        --- Volume group ---
        VG Name               stack-volumes-default
        System ID             
        Format                lvm2
        Metadata Areas        1
        Metadata Sequence No  1
        VG Access             read/write
        VG Status             resizable
        MAX LV                0
        Cur LV                0
        Open LV               0
        Max PV                0
        Cur PV                1
        Act PV                1
        VG Size               24.00 GiB
        PE Size               4.00 MiB
        Total PE              6143
        Alloc PE / Size       0 / 0   
        Free  PE / Size       6143 / 24.00 GiB
        VG UUID               Kn0tXW-wiOv-SE1F-zGQ2-iqIK-wsl6-UHG6ux
         
        --- Volume group ---
        VG Name               stack-volumes-lvmdriver-1
        System ID             
        Format                lvm2
        Metadata Areas        1
        Metadata Sequence No  4
        VG Access             read/write
        VG Status             resizable
        MAX LV                0
        Cur LV                1
        Open LV               0
        Max PV                0
        Cur PV                1
        Act PV                1
        VG Size               24.00 GiB
        PE Size               4.00 MiB
        Total PE              6143
        Alloc PE / Size       5849 / 22.85 GiB
        Free  PE / Size       294 / 1.15 GiB
        VG UUID               VnFxRc-Vi1T-hyTw-z6Xt-sfyP-Se12-klZOj8

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
root@cinder:~# grep -Ev '^#|^$' /etc/cinder/cinder.conf
[DEFAULT]
...
default_volume_type = lvmdriver-1
enabled_backends = lvmdriver-1
...
[lvmdriver-1]
...
volume_group = stack-volumes-lvmdriver-1
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_backend_name = lvmdriver-1
經過不一樣的driver支持不一樣的back-end

Web GUI查看Volume Type:

查看lvmdrive-1的Extra Specs
相關文章
相關標籤/搜索