发现个问题,
CloudStack4.4.3+KVM 数据盘resize,显示成功,但实际没发生变化,后来发现

只有当虚拟机是运行态的时候,数据盘扩容才能成功;
停止态的虚拟机,数据盘扩容不报错,但实际上没有成功;


请问这是CloudStack的bug吗?有人遇到过没?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
不报错,但实际不成功时,日志如下

com.cloud.storage.VmWorkResizeVolume{"volumeId":92,"currentSize":1073741824,"newSize":2147483648,"newServiceOfferingId":61,"shrinkOk":false,"userId":2,"accountId":2,"vmId":89,"handlerName":"VolumeApiServiceImpl"}
2015-07-13 15:07:09,024 DEBUG [c.c.a.t.Request] 
(Work-Job-Executor-85:ctx-26f49590 job-946/job-947 ctx-3887adf3) Seq 
1-4330211041716900257: Sending  { Cmd , MgmtId: 345052689640, via: 
1(cloudstack.aclome), Ver: v1, Flags: 100011, 
[{"com.cloud.agent.api.storage.ResizeVolumeCommand":{"path":"671673d2-67ef-449e-855c-71548069620a","pool":{"id":2,"uuid":"9d641cdd-95a7-3086-9ef6-b78f8759847e","host":"10.4.41.110","path":"/export/186kvmprimary","port":2049,"type":"NetworkFilesystem"},"vmInstance":"i-2-89-VM","newSize":2147483648,"currentSize":1073741824,"shrinkOk":false,"wait":0}}]
 }
2015-07-13 15:07:09,137 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
Timer:ctx-11ba9de2) Resetting hosts suitable for reconnect
2015-07-13 15:07:09,139 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
Timer:ctx-11ba9de2) Completed resetting hosts suitable for reconnect
2015-07-13 15:07:09,139 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
Timer:ctx-11ba9de2) Acquiring hosts for clusters already owned by this 
management server
2015-07-13 15:07:09,140 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
Timer:ctx-11ba9de2) Completed acquiring hosts for clusters already owned by 
this management server
2015-07-13 15:07:09,140 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
Timer:ctx-11ba9de2) Acquiring hosts for clusters not owned by any management 
server
2015-07-13 15:07:09,141 DEBUG [c.c.h.d.HostDaoImpl] (ClusteredAgentManager 
Timer:ctx-11ba9de2) Completed acquiring hosts for clusters not owned by any 
management server
2015-07-13 15:07:09,423 DEBUG [c.c.a.t.Request] (AgentManager-Handler-7:null) 
Seq 1-4330211041716900257: Processing:  { Ans: , MgmtId: 345052689640, via: 1, 
Ver: v1, Flags: 10, 
[{"com.cloud.agent.api.storage.ResizeVolumeAnswer":{"newSize":1073741824,"result":true,"details":"success","wait":0}}]
 }
2015-07-13 15:07:09,423 DEBUG [c.c.a.t.Request] 
(Work-Job-Executor-85:ctx-26f49590 job-946/job-947 ctx-3887adf3) Seq 
1-4330211041716900257: Received:  { Ans: , MgmtId: 345052689640, via: 1, Ver: 
v1, Flags: 10, { ResizeVolumeAnswer } }
2015-07-13 15:07:09,423 DEBUG 
[o.a.c.s.d.d.CloudStackPrimaryDataStoreDriverImpl] 
(Work-Job-Executor-85:ctx-26f49590 job-946/job-947 ctx-3887adf3) Resize: volume 
started at size 1073741824 and ended at size 1073741824

---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any 
accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential 
and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of 
this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, 
disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this 
communication in error,please 
immediately notify the sender by return e-mail, and delete the original message 
and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------

回复