本帖最后由 luoyupeng 于 2016-10-31 15:24 编辑
cinder create volume问题讨论:
硬件环境:
1 controller node
2 compute node
每个compute node上有两块600G的硬盘(sda,sdb),sda装系统,sdb做为cinder存储用
现在遇到这么一个怪问题,不知道各位遇到过没
cinder create --display-name test 600
创建一个500G的卷能成功,创建一个600G的卷,就失败,空间够用,日志报错上显示的是不能超过558.88G,相当于两块600G的硬盘中的任意一个硬盘格式化后的大小容量
2016-10-31 10:03:39.009 18147 WARNING cinder.scheduler.filters.capacity_filter [req-3c2c579c-fdda-440a-b22a-4df235378ced 1d36b9c5da054434ae96d3db819602f9 0ef15fbe398446509019de34154d64aa - - -] Insufficient free space for volume creation on host compute1@lvm#LVM (requested / avail): 600/558.88
2016-10-31 10:03:39.009 18147 WARNING cinder.scheduler.filters.capacity_filter [req-3c2c579c-fdda-440a-b22a-4df235378ced 1d36b9c5da054434ae96d3db819602f9 0ef15fbe398446509019de34154d64aa - - -] Insufficient free space for volume creation on host compute2@lvm#LVM (requested / avail): 600/558.88
补充:558.88这个大小的来源:我在每个compute node上用pvdisplay命令查看时发现sdb的容量就是558.88,虽然两个cinder的总容量加起来有1T+,但是每个硬盘的容量大小只有558.88,所以创建600G失败
[root@compute1 ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sdb
VG Name cinder-volumes
PV Size 558.88 GiB / not usable 1.96 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 143073
Free PE 143073
Allocated PE 0
PV UUID pvG9pV-oFVi-2Gzi-Ghv7-89aR-DpoR-UU1YuO
--- Physical volume ---
PV Name /dev/sda2
VG Name rhel
PV Size 558.39 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 142947
Free PE 15
Allocated PE 142932
PV UUID qWVEd0-pL0e-6lWv-UpXM-mnUV-0Ber-5gEbTz
[root@compute2 ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name rhel
PV Size 558.39 GiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 142947
Free PE 15
Allocated PE 142932
PV UUID MbyaZN-rTZV-USJu-3nxL-jUXA-SSOg-09rcPz
--- Physical volume ---
PV Name /dev/sdb
VG Name cinder-volumes
PV Size 558.88 GiB / not usable 1.96 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 143073
Free PE 143073
Allocated PE 0
PV UUID jkRxTl-ojgz-UOMJ-H0Kb-ZCPR-cEd0-zVcP1r
那么问题来了?dashboard里看到的硬盘容量是两个节点上的硬盘相加的容量,但是创建volume时所用到的空间是分配到每个节点上,所以不能超过硬盘的大小?
不知道各位遇到过吗?
我在论坛里看到过有一个哥们有类似的问题,但是后续也没有看到解决。
|