You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-cn@cloudstack.apache.org by Peration <57...@qq.com> on 2015/01/27 02:06:34 UTC

调整卷大小失败,缩小卷大小 提示 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‍

‍

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

Posted by "YUAN, GUI -HBIS" <yu...@hbis.com.cn>.
KVM-DISKDATA的大小可以调,只是调完了有时候VM不认。
昨天,我的VM(Win2003)下试了,不知道问题出现在哪。
刚开始从5G调到20G,再调到100G,都是可以的。当时把磁盘设置成了动态磁盘。
然后,再往下调就失败,再往上调到110G后,VM(Win2003)下就显示脱机,重新激活也没用,怎么都访问不了了。

因为没有什么数据,所以也就没去分析LOG。
如果不麻烦的话,还是追加新的卷,然后把数据复制过去的合适;
或者先做好快照,必要时候可以恢复数据,如果通过快照恢复卷能选择大小的话,就好了。

>-----Original Message-----
>From: wangyuyang1985@163.com [mailto:wangyuyang1985@163.com]
>Sent: Tuesday, January 27, 2015 9:25 AM
>To: users-cn
>Subject: Re: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
>
>cloudstack对QCOW2这种类型支持调整存储卷吗?
>
>
>
>
>wangyuyang1985@163.com
>
>发件人: Peration
>发送时间: 2015-01-27 09:06
>收件人: 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","sessi
>onkey":"GWJFo5AhFePwOQTzbWN0Ve1XTFg\u003d","shrinkok":"true","cmdEven
>tType":"VOLUME.RESIZE","ctxUserId":"2","httpmethod":"GET","_":"142231
>9924146","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","sessi
>onkey":"GWJFo5AhFePwOQTzbWN0Ve1XTFg\u003d","shrinkok":"true","cmdEven
>tType":"VOLUME.RESIZE","ctxUserId":"2","httpmethod":"GET","_":"142231
>9924146","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=js
>on&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-44
>aa-a374-6bc61ea206fd","host":"192.168.121.3","path":"/var/lib/libvirt
>/images","port":0,"type":"Filesystem"},"vmInstance":"i-2-133-VM","new
>Size":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,"resu
>lt":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‍
>
>‍

Disclaimer:
The contents of this e-mail, and its attachments, if any, are confidential and may be protected
by law against any unauthorized use.  If you have received this e-mail by mistake or have
reason to believe that you are not the intended recipient, please notify the sender by reply
e-mail as soon as possible and delete it from your computer system immediately thereafter.
If you are not the intended recipient, you must not copy this e-mail or attachment or disclose
the contents to any other person.  While we have made every effort to keep our network virus free,
we take no responsibility for any computer virus which might be transferred by way of this e-mail.

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

Posted by Peration <57...@qq.com>.
可以扩大,但无法缩小,缩小就会报错




------------------ 原始邮件 ------------------
发件人: "wangyuyang1985@163.com";<wa...@163.com>;
发送时间: 2015年1月27日(星期二) 上午9:25
收件人: "users-cn"<us...@cloudstack.apache.org>; 

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



cloudstack对QCOW2这种类型支持调整存储卷吗?




wangyuyang1985@163.com

发件人: Peration
发送时间: 2015-01-27 09:06
收件人: 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‍

‍

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

Posted by "wangyuyang1985@163.com" <wa...@163.com>.
cloudstack对QCOW2这种类型支持调整存储卷吗?




wangyuyang1985@163.com

发件人: Peration
发送时间: 2015-01-27 09:06
收件人: 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‍

‍

Re: Re: management/catalina.out Received unknown parameters for command listHosts. Unknown parameters : listall

Posted by "lovegqin@126.com" <lo...@126.com>.
最新的4.4



lovegqin@126.com
 
From: zanghongtu2006@gmail.com
Date: 2015-01-28 10:26
To: users-cn
Subject: Re: management/catalina.out Received unknown parameters for command listHosts. Unknown parameters : listall
你用的什么版本啊?
 
 
 
zanghongtu2006@gmail.com
From: lovegqin@126.com
Date: 2015-01-28 10:24
To: users-cn
Subject: management/catalina.out Received unknown parameters for command listHosts. Unknown parameters : listall
一直收到这样的log不知为何?
tail -f /var/log/cloudstack/management/catalina.out 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-6:ctx-95f69cca ctx-7e324e09) Received unknown parameters for command listHosts. Unknown parameters : listall 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-21:ctx-c55c9ee8 ctx-ab8c5580) Received unknown parameters for command listStoragePools. Unknown parameters : listall 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-20:ctx-73cee05e ctx-033ced8b) Received unknown parameters for command listImageStores. Unknown parameters : listall type 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-4:ctx-f158dddd ctx-636cf349) Received unknown parameters for command listSystemVms. Unknown parameters : listall 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-1:ctx-c8fbff53 ctx-d069b105) Received unknown parameters for command listHosts. Unknown parameters : listall 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-14:ctx-40914d94 ctx-c52ed9e9) Received unknown parameters for command listZones. Unknown parameters : listall 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-22:ctx-94c74fc1 ctx-66cb2aee) Received unknown parameters for command addHost. Unknown parameters : clustertype
lovegqin@126.com
发件人: Peration
发送时间: 2015-01-28 09:41
收件人: users-cn
主题: 回复:答复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
我是调整data卷的大小‍
------------------ 原始邮件 ------------------
发件人: "Star Guo";<st...@ceph.me>;
发送时间: 2015年1月28日(星期三) 上午8:42
收件人: "users-cn"<us...@cloudstack.apache.org>; 
主题: 答复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
Can not resie root disk.
Best Regards,
Star Guo
-----邮件原件-----
发件人: Peration [mailto:575366167@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‍
‍

Re: management/catalina.out Received unknown parameters for command listHosts. Unknown parameters : listall

Posted by "zanghongtu2006@gmail.com" <za...@gmail.com>.
你用的什么版本啊?



zanghongtu2006@gmail.com
 
From: lovegqin@126.com
Date: 2015-01-28 10:24
To: users-cn
Subject: management/catalina.out Received unknown parameters for command listHosts. Unknown parameters : listall
 
一直收到这样的log不知为何?
 
 
tail -f /var/log/cloudstack/management/catalina.out 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-6:ctx-95f69cca ctx-7e324e09) Received unknown parameters for command listHosts. Unknown parameters : listall 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-21:ctx-c55c9ee8 ctx-ab8c5580) Received unknown parameters for command listStoragePools. Unknown parameters : listall 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-20:ctx-73cee05e ctx-033ced8b) Received unknown parameters for command listImageStores. Unknown parameters : listall type 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-4:ctx-f158dddd ctx-636cf349) Received unknown parameters for command listSystemVms. Unknown parameters : listall 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-1:ctx-c8fbff53 ctx-d069b105) Received unknown parameters for command listHosts. Unknown parameters : listall 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-14:ctx-40914d94 ctx-c52ed9e9) Received unknown parameters for command listZones. Unknown parameters : listall 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-22:ctx-94c74fc1 ctx-66cb2aee) Received unknown parameters for command addHost. Unknown parameters : clustertype
 
 
 
lovegqin@126.com
发件人: Peration
发送时间: 2015-01-28 09:41
收件人: users-cn
主题: 回复:答复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
我是调整data卷的大小‍
------------------ 原始邮件 ------------------
发件人: "Star Guo";<st...@ceph.me>;
发送时间: 2015年1月28日(星期三) 上午8:42
收件人: "users-cn"<us...@cloudstack.apache.org>; 
主题: 答复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
Can not resie root disk.
Best Regards,
Star Guo
-----邮件原件-----
发件人: Peration [mailto:575366167@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‍
‍

Re: management/catalina.out Received unknown parameters for command listHosts. Unknown parameters : listall

Posted by Wei ZHOU <us...@gmail.com>.
1.看management-server.log
2. /etc/cloudstack/management/log4j-cloud.xml里面默认的log
level是INFO,s/INFO/DEBUG/g 改成DEBUG.

2015-01-28 3:24 GMT+01:00 lovegqin@126.com <lo...@126.com>:

>
> 一直收到这样的log不知为何?
>
>
> tail -f /var/log/cloudstack/management/catalina.out
> WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-6:ctx-95f69cca
> ctx-7e324e09) Received unknown parameters for command listHosts. Unknown
> parameters : listall
> WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-21:ctx-c55c9ee8
> ctx-ab8c5580) Received unknown parameters for command listStoragePools.
> Unknown parameters : listall
> WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-20:ctx-73cee05e
> ctx-033ced8b) Received unknown parameters for command listImageStores.
> Unknown parameters : listall type
> WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-4:ctx-f158dddd
> ctx-636cf349) Received unknown parameters for command listSystemVms.
> Unknown parameters : listall
> WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-1:ctx-c8fbff53
> ctx-d069b105) Received unknown parameters for command listHosts. Unknown
> parameters : listall
> WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-14:ctx-40914d94
> ctx-c52ed9e9) Received unknown parameters for command listZones. Unknown
> parameters : listall
> WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-22:ctx-94c74fc1
> ctx-66cb2aee) Received unknown parameters for command addHost. Unknown
> parameters : clustertype
>
>
>
> lovegqin@126.com
>
> 发件人: Peration
> 发送时间: 2015-01-28 09:41
> 收件人: users-cn
> 主题: 回复:答复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
> 我是调整data卷的大小‍
>
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Star Guo";<st...@ceph.me>;
> 发送时间: 2015年1月28日(星期三) 上午8:42
> 收件人: "users-cn"<us...@cloudstack.apache.org>;
>
> 主题: 答复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
>
>
>
> Can not resie root disk.
>
> Best Regards,
> Star Guo
>
> -----邮件原件-----
> 发件人: Peration [mailto:575366167@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‍
>
> ‍
>

management/catalina.out Received unknown parameters for command listHosts. Unknown parameters : listall

Posted by "lovegqin@126.com" <lo...@126.com>.
一直收到这样的log不知为何?


tail -f /var/log/cloudstack/management/catalina.out 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-6:ctx-95f69cca ctx-7e324e09) Received unknown parameters for command listHosts. Unknown parameters : listall 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-21:ctx-c55c9ee8 ctx-ab8c5580) Received unknown parameters for command listStoragePools. Unknown parameters : listall 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-20:ctx-73cee05e ctx-033ced8b) Received unknown parameters for command listImageStores. Unknown parameters : listall type 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-4:ctx-f158dddd ctx-636cf349) Received unknown parameters for command listSystemVms. Unknown parameters : listall 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-1:ctx-c8fbff53 ctx-d069b105) Received unknown parameters for command listHosts. Unknown parameters : listall 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-14:ctx-40914d94 ctx-c52ed9e9) Received unknown parameters for command listZones. Unknown parameters : listall 
WARN [c.c.a.d.ParamGenericValidationWorker] (catalina-exec-22:ctx-94c74fc1 ctx-66cb2aee) Received unknown parameters for command addHost. Unknown parameters : clustertype



lovegqin@126.com
 
发件人: Peration
发送时间: 2015-01-28 09:41
收件人: users-cn
主题: 回复:答复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
我是调整data卷的大小‍
 
 
 
 
------------------ 原始邮件 ------------------
发件人: "Star Guo";<st...@ceph.me>;
发送时间: 2015年1月28日(星期三) 上午8:42
收件人: "users-cn"<us...@cloudstack.apache.org>; 
 
主题: 答复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
 
 
 
Can not resie root disk.
 
Best Regards,
Star Guo
 
-----邮件原件-----
发件人: Peration [mailto:575366167@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‍
 
‍

Re: 回复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume

Posted by Wei ZHOU <us...@gmail.com>.
你可以用qemu-img resize自己调整。至于resize以后的大小和cloudstack数据库里面的不一致,这个不是太大问题。

2015-01-28 3:28 GMT+01:00 Peration <57...@qq.com>:

> 原来如此,有没有解决方案?‍‍
>
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "zanghongtu2006@gmail.com";<za...@gmail.com>;
> 发送时间: 2015年1月28日(星期三) 上午10:22
> 收件人: "users-cn"<us...@cloudstack.apache.org>;
>
> 主题: Re: 回复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
>
>
>
> CS 不支持对qcow2 格式的磁盘进行缩小卷
> 具体可以参见:LibvirtComputingResource.java
> ======================
> else if (type.equals("QCOW2") && shrinkOk) {
> return new ResizeVolumeAnswer(cmd, false, "Unable to shrink volumes of
> type " + type);
> }
> ======================
> 你的log里面有报错
> 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}}] }
>
>
>
> zanghongtu2006@gmail.com
>
> 发件人: Peration
> 发送时间: 2015-01-28 09:41
> 收件人: users-cn
> 主题: 回复:答复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
> 我是调整data卷的大小‍
>
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Star Guo";<st...@ceph.me>;
> 发送时间: 2015年1月28日(星期三) 上午8:42
> 收件人: "users-cn"<us...@cloudstack.apache.org>;
>
> 主题: 答复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
>
>
>
> Can not resie root disk.
>
> Best Regards,
> Star Guo
>
> -----邮件原件-----
> 发件人: Peration [mailto:575366167@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‍
>
> ‍
>

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

Posted by Peration <57...@qq.com>.
原来如此,有没有解决方案?‍‍




------------------ 原始邮件 ------------------
发件人: "zanghongtu2006@gmail.com";<za...@gmail.com>;
发送时间: 2015年1月28日(星期三) 上午10:22
收件人: "users-cn"<us...@cloudstack.apache.org>; 

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



CS 不支持对qcow2 格式的磁盘进行缩小卷
具体可以参见:LibvirtComputingResource.java 
======================
else if (type.equals("QCOW2") && shrinkOk) { 
return new ResizeVolumeAnswer(cmd, false, "Unable to shrink volumes of type " + type); 
}
======================
你的log里面有报错
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}}] }



zanghongtu2006@gmail.com
 
发件人: Peration
发送时间: 2015-01-28 09:41
收件人: users-cn
主题: 回复:答复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
我是调整data卷的大小‍
 
 
 
 
------------------ 原始邮件 ------------------
发件人: "Star Guo";<st...@ceph.me>;
发送时间: 2015年1月28日(星期三) 上午8:42
收件人: "users-cn"<us...@cloudstack.apache.org>; 
 
主题: 答复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
 
 
 
Can not resie root disk.
 
Best Regards,
Star Guo
 
-----邮件原件-----
发件人: Peration [mailto:575366167@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‍
 
‍

Re: 回复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume

Posted by "zanghongtu2006@gmail.com" <za...@gmail.com>.
CS 不支持对qcow2 格式的磁盘进行缩小卷
具体可以参见:LibvirtComputingResource.java 
======================
else if (type.equals("QCOW2") && shrinkOk) { 
return new ResizeVolumeAnswer(cmd, false, "Unable to shrink volumes of type " + type); 
}
======================
你的log里面有报错
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}}] }



zanghongtu2006@gmail.com
 
发件人: Peration
发送时间: 2015-01-28 09:41
收件人: users-cn
主题: 回复:答复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
我是调整data卷的大小‍
 
 
 
 
------------------ 原始邮件 ------------------
发件人: "Star Guo";<st...@ceph.me>;
发送时间: 2015年1月28日(星期三) 上午8:42
收件人: "users-cn"<us...@cloudstack.apache.org>; 
 
主题: 答复: 调整卷大小失败,缩小卷大小 提示 Failed to resize volume
 
 
 
Can not resie root disk.
 
Best Regards,
Star Guo
 
-----邮件原件-----
发件人: Peration [mailto:575366167@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‍
 
‍

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

Posted by Peration <57...@qq.com>.
我是调整data卷的大小‍




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

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



Can not resie root disk.

Best Regards,
Star Guo

-----邮件原件-----
发件人: Peration [mailto:575366167@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‍

‍

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

Posted by Star Guo <st...@ceph.me>.
Can not resie root disk.

Best Regards,
Star Guo

-----邮件原件-----
发件人: Peration [mailto:575366167@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‍

‍