- 查看配置文件
- Cinder 支持多种 volume provider,LVM 是默认的 volume provider。Devstack 安装之后,/etc/cinder/cinder 已经配置好了 LVM
- 配置定义了名为“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 |
| | 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
|