我是调整data卷的大小‍



------------------ 原始邮件 ------------------
发件人: "Star Guo";<st...@ceph.me>;
发送时间: 2015年1月28日(星期三) 上午8:42
收件人: "users-cn"<users-cn@cloudstack.apache.org>; 

主题: 答复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume



Can not resie root disk.

Best Regards,
Star Guo

-----邮件原件-----
发件人: Peration [mailto:575366...@qq.com] 
发送时间: 2015年1月27日 9:07
收件人: users-cn
主题: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume

调整卷大小失败,缩小卷大小 提示 Failed to resize volume‍


2015-01-27 08:52:22,745 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(catalina-exec-10:ctx-29557584 ctx-627f0aaf) submit async job-136, details: 
AsyncJobVO {id:136, userId: 2, accountId: 2, instanceType: Volume, instanceId: 
null, cmd: org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd, 
cmdInfo: 
{"id":"f59ea020-f2c5-4298-9fe1-423309491572","response":"json","sessionkey":"GWJFo5AhFePwOQTzbWN0Ve1XTFg\u003d","shrinkok":"true","cmdEventType":"VOLUME.RESIZE","ctxUserId":"2","httpmethod":"GET","_":"1422319924146","ctxAccountId":"2","diskofferingid":"786fc68f-e14c-42dc-a931-f6b2d5bed62a","ctxStartEventId":"285"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 271133592152661, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: null}
2015-01-27 08:52:22,747 INFO  [o.a.c.f.j.i.AsyncJobMonitor] 
(Job-Executor-1:ctx-8420fd25) Add job-136 into job monitoring
2015-01-27 08:52:22,747 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(Job-Executor-1:ctx-8420fd25) Executing AsyncJobVO {id:136, userId: 2, 
accountId: 2, instanceType: Volume, instanceId: null, cmd: 
org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd, cmdInfo: 
{"id":"f59ea020-f2c5-4298-9fe1-423309491572","response":"json","sessionkey":"GWJFo5AhFePwOQTzbWN0Ve1XTFg\u003d","shrinkok":"true","cmdEventType":"VOLUME.RESIZE","ctxUserId":"2","httpmethod":"GET","_":"1422319924146","ctxAccountId":"2","diskofferingid":"786fc68f-e14c-42dc-a931-f6b2d5bed62a","ctxStartEventId":"285"},
 cmdVersion: 0, status: IN_PROGRESS, processStatus: 0, resultCode: 0, result: 
null, initMsid: 271133592152661, completeMsid: null, lastUpdated: null, 
lastPolled: null, created: null}
2015-01-27 08:52:22,752 DEBUG [c.c.a.ApiServlet] (catalina-exec-10:ctx-29557584 
ctx-627f0aaf) ===END===  192.168.121.1 -- GET  
command=resizeVolume&id=f59ea020-f2c5-4298-9fe1-423309491572&shrinkok=true&diskofferingid=786fc68f-e14c-42dc-a931-f6b2d5bed62a&response=json&sessionkey=GWJFo5AhFePwOQTzbWN0Ve1XTFg%3D&_=1422319924146
2015-01-27 08:52:22,831 DEBUG [c.c.a.t.Request] (Job-Executor-1:ctx-8420fd25 
ctx-627f0aaf) Seq 1-1245446166: Sending  { Cmd , MgmtId: 271133592152661, via: 
1(cloudstack.cloud.priv), Ver: v1, Flags: 100011, 
[{"com.cloud.agent.api.storage.ResizeVolumeCommand":{"path":"f59ea020-f2c5-4298-9fe1-423309491572","pool":{"id":1,"uuid":"933404b7-c735-44aa-a374-6bc61ea206fd","host":"192.168.121.3","path":"/var/lib/libvirt/images","port":0,"type":"Filesystem"},"vmInstance":"i-2-133-VM","newSize":1073741824,"currentSize":3221225472,"shrinkOk":true,"wait":0}}]
 }
2015-01-27 08:52:22,858 DEBUG [c.c.a.t.Request] (AgentManager-Handler-9:null) 
Seq 1-1245446166: Processing:  { Ans: , MgmtId: 271133592152661, via: 1, Ver: 
v1, Flags: 10, 
[{"com.cloud.agent.api.storage.ResizeVolumeAnswer":{"newSize":0,"result":false,"details":"Unable
 to shrink volumes of type QCOW2","wait":0}}] }
2015-01-27 08:52:22,858 DEBUG [c.c.a.t.Request] (Job-Executor-1:ctx-8420fd25 
ctx-627f0aaf) Seq 1-1245446166: Received:  { Ans: , MgmtId: 271133592152661, 
via: 1, Ver: v1, Flags: 10, { ResizeVolumeAnswer } }
2015-01-27 08:52:22,868 WARN  [o.a.c.s.d.ObjectInDataStoreManagerImpl] 
(Job-Executor-1:ctx-8420fd25 ctx-627f0aaf) Unsupported data object (VOLUME, 
org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@4d3d9207), no need 
to delete from object in store ref table
2015-01-27 08:52:22,868 WARN  [c.c.s.VolumeApiServiceImpl] 
(Job-Executor-1:ctx-8420fd25 ctx-627f0aaf) Failed to resize the volume 
Vol[133|vm=133|DATADISK]
2015-01-27 08:52:22,879 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(Job-Executor-1:ctx-8420fd25) Complete async job-136, jobStatus: FAILED, 
resultCode: 530, result: 
org.apache.cloudstack.api.response.ExceptionResponse/null/{"uuidList":[],"errorcode":530,"errortext":"Failed
 to resize volume"}
2015-01-27 08:52:22,903 DEBUG [o.a.c.f.j.i.AsyncJobManagerImpl] 
(Job-Executor-1:ctx-8420fd25) Done executing 
org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd for job-136‍

‍

回复