You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Punit Dambiwal <hy...@gmail.com> on 2013/08/08 09:25:55 UTC

Resize Data disk shrink

Hi,

I want to resize the data disk of one VM (Hypervisior is XenServer),but
it's failed with the following error :-

-------------------------------
[root@csmgmt ~]# cat /var/log/cloudstack/management/management-server.log |
grep resize
2013-08-08 15:17:46,816 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null)
===START===  116.92.38.79 -- GET
 command=resizeVolume&id=bd20725e-b06f-406a-b2ee-68c9107eb7c2&shrinkok=true&diskofferingid=04ab93c3-286c-4069-a138-a74b23cbf3b6&response=json&sessionkey=ILMgCgDboPwhcwETjVHMYgJG3%2Fg%3D&_=1375946313923
2013-08-08 15:17:46,916 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null)
===END===  116.92.38.79 -- GET
 command=resizeVolume&id=bd20725e-b06f-406a-b2ee-68c9107eb7c2&shrinkok=true&diskofferingid=04ab93c3-286c-4069-a138-a74b23cbf3b6&response=json&sessionkey=ILMgCgDboPwhcwETjVHMYgJG3%2Fg%3D&_=1375946313923
2013-08-08 15:17:47,471 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-158:null) Unable to resize volume
        at com.xensource.xenapi.VDI.resize(VDI.java:1350)
2013-08-08 15:17:47,472 DEBUG [agent.transport.Request]
(DirectAgent-158:null) Seq 1-1377969797: Processing:  { Ans: , MgmtId:
161339431830, via: 1, Ver: v1, Flags: 10,
[{"storage.ResizeVolumeAnswer":{"newSize":0,"result":false,"details":"failed
to resize volume:SR_BACKEND_FAILURE_79VDI Invalid size [opterr=shrinking
not allowed]","wait":0}}] }
2013-08-08 15:17:47,472 DEBUG [cloud.storage.StorageManagerImpl]
(Job-Executor-114:job-114) Resize: returned 'failed to resize
volume:SR_BACKEND_FAILURE_79VDI Invalid size [opterr=shrinking not allowed]'
2013-08-08 15:17:47,573 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-114:job-114) Complete async job-114, jobStatus: 2,
resultCode: 530, result: Error Code: 530 Error text: Failed to resize volume
2013-08-08 15:22:14,162 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null)
===START===  116.92.38.79 -- GET
 command=resizeVolume&id=bd20725e-b06f-406a-b2ee-68c9107eb7c2&shrinkok=true&diskofferingid=04ab93c3-286c-4069-a138-a74b23cbf3b6&response=json&sessionkey=ILMgCgDboPwhcwETjVHMYgJG3%2Fg%3D&_=1375946581352
2013-08-08 15:22:14,227 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null)
===END===  116.92.38.79 -- GET
 command=resizeVolume&id=bd20725e-b06f-406a-b2ee-68c9107eb7c2&shrinkok=true&diskofferingid=04ab93c3-286c-4069-a138-a74b23cbf3b6&response=json&sessionkey=ILMgCgDboPwhcwETjVHMYgJG3%2Fg%3D&_=1375946581352
2013-08-08 15:22:14,531 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-136:null) Unable to resize volume
        at com.xensource.xenapi.VDI.resize(VDI.java:1350)
2013-08-08 15:22:14,532 DEBUG [agent.transport.Request]
(DirectAgent-136:null) Seq 1-1377969817: Processing:  { Ans: , MgmtId:
161339431830, via: 1, Ver: v1, Flags: 10,
[{"storage.ResizeVolumeAnswer":{"newSize":0,"result":false,"details":"failed
to resize volume:SR_BACKEND_FAILURE_79VDI Invalid size [opterr=shrinking
not allowed]","wait":0}}] }
2013-08-08 15:22:14,532 DEBUG [cloud.storage.StorageManagerImpl]
(Job-Executor-118:job-118) Resize: returned 'failed to resize
volume:SR_BACKEND_FAILURE_79VDI Invalid size [opterr=shrinking not allowed]'
2013-08-08 15:22:14,600 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-118:job-118) Complete async job-118, jobStatus: 2,
resultCode: 530, result: Error Code: 530 Error text: Failed to resize volume
[root@csmgmt ~]#
------------------------------------------

RE: Resize Data disk shrink

Posted by Pavan Bandarupally <Pa...@citrix.com>.
Hi Punit,

Currently Shrink is not supported in Xenserver. Please have a look at the issue: https://issues.apache.org/jira/browse/CLOUDSTACK-3392

Regards,
pavan
________________________________________
From: Punit Dambiwal [hypunit@gmail.com]
Sent: Thursday, August 08, 2013 12:55 PM
To: users@cloudstack.apache.org
Subject: Resize Data disk shrink

Hi,

I want to resize the data disk of one VM (Hypervisior is XenServer),but
it's failed with the following error :-

-------------------------------
[root@csmgmt ~]# cat /var/log/cloudstack/management/management-server.log |
grep resize
2013-08-08 15:17:46,816 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null)
===START===  116.92.38.79 -- GET
 command=resizeVolume&id=bd20725e-b06f-406a-b2ee-68c9107eb7c2&shrinkok=true&diskofferingid=04ab93c3-286c-4069-a138-a74b23cbf3b6&response=json&sessionkey=ILMgCgDboPwhcwETjVHMYgJG3%2Fg%3D&_=1375946313923
2013-08-08 15:17:46,916 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null)
===END===  116.92.38.79 -- GET
 command=resizeVolume&id=bd20725e-b06f-406a-b2ee-68c9107eb7c2&shrinkok=true&diskofferingid=04ab93c3-286c-4069-a138-a74b23cbf3b6&response=json&sessionkey=ILMgCgDboPwhcwETjVHMYgJG3%2Fg%3D&_=1375946313923
2013-08-08 15:17:47,471 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-158:null) Unable to resize volume
        at com.xensource.xenapi.VDI.resize(VDI.java:1350)
2013-08-08 15:17:47,472 DEBUG [agent.transport.Request]
(DirectAgent-158:null) Seq 1-1377969797: Processing:  { Ans: , MgmtId:
161339431830, via: 1, Ver: v1, Flags: 10,
[{"storage.ResizeVolumeAnswer":{"newSize":0,"result":false,"details":"failed
to resize volume:SR_BACKEND_FAILURE_79VDI Invalid size [opterr=shrinking
not allowed]","wait":0}}] }
2013-08-08 15:17:47,472 DEBUG [cloud.storage.StorageManagerImpl]
(Job-Executor-114:job-114) Resize: returned 'failed to resize
volume:SR_BACKEND_FAILURE_79VDI Invalid size [opterr=shrinking not allowed]'
2013-08-08 15:17:47,573 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-114:job-114) Complete async job-114, jobStatus: 2,
resultCode: 530, result: Error Code: 530 Error text: Failed to resize volume
2013-08-08 15:22:14,162 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null)
===START===  116.92.38.79 -- GET
 command=resizeVolume&id=bd20725e-b06f-406a-b2ee-68c9107eb7c2&shrinkok=true&diskofferingid=04ab93c3-286c-4069-a138-a74b23cbf3b6&response=json&sessionkey=ILMgCgDboPwhcwETjVHMYgJG3%2Fg%3D&_=1375946581352
2013-08-08 15:22:14,227 DEBUG [cloud.api.ApiServlet] (catalina-exec-2:null)
===END===  116.92.38.79 -- GET
 command=resizeVolume&id=bd20725e-b06f-406a-b2ee-68c9107eb7c2&shrinkok=true&diskofferingid=04ab93c3-286c-4069-a138-a74b23cbf3b6&response=json&sessionkey=ILMgCgDboPwhcwETjVHMYgJG3%2Fg%3D&_=1375946581352
2013-08-08 15:22:14,531 WARN  [xen.resource.CitrixResourceBase]
(DirectAgent-136:null) Unable to resize volume
        at com.xensource.xenapi.VDI.resize(VDI.java:1350)
2013-08-08 15:22:14,532 DEBUG [agent.transport.Request]
(DirectAgent-136:null) Seq 1-1377969817: Processing:  { Ans: , MgmtId:
161339431830, via: 1, Ver: v1, Flags: 10,
[{"storage.ResizeVolumeAnswer":{"newSize":0,"result":false,"details":"failed
to resize volume:SR_BACKEND_FAILURE_79VDI Invalid size [opterr=shrinking
not allowed]","wait":0}}] }
2013-08-08 15:22:14,532 DEBUG [cloud.storage.StorageManagerImpl]
(Job-Executor-118:job-118) Resize: returned 'failed to resize
volume:SR_BACKEND_FAILURE_79VDI Invalid size [opterr=shrinking not allowed]'
2013-08-08 15:22:14,600 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-118:job-118) Complete async job-118, jobStatus: 2,
resultCode: 530, result: Error Code: 530 Error text: Failed to resize volume
[root@csmgmt ~]#
------------------------------------------