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 ~]# ------------------------------------------