Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1F8B6E906 for ; Wed, 27 Feb 2013 11:53:53 +0000 (UTC) Received: (qmail 79378 invoked by uid 500); 27 Feb 2013 11:53:52 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 79267 invoked by uid 500); 27 Feb 2013 11:53:52 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 79252 invoked by uid 99); 27 Feb 2013 11:53:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2013 11:53:52 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of srivatsav.prasanna@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qa0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Feb 2013 11:53:43 +0000 Received: by mail-qa0-f45.google.com with SMTP id g10so3246096qah.18 for ; Wed, 27 Feb 2013 03:53:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=OQe8tbW5Bf2Yo941mPV00IL96bIQs9ztcmAknPmuUNU=; b=r5bikQeAIL6RoSPw9xkbYOk8JU1UWZlXuzOc5RJjrSzBJmOFXREOzlCnZT1BnoX7D2 QF7RA1B63Mn7sh0TSsRYpxKFiIOkgGFAVPVYtxHIo+OWNslus9McXuOWOaGMpGdH2JvE IOywetgzBgK+ATgHoRUIJLAQbZoQijfNSW9ABd6bRk2NdlZ7NEm9VNymgja3yE8c7RU4 ZYstx8Q4iIlA6qpQuXGUPikBc9iRx4u0Cg4o1zA6WARHYc/3j68EiiIwYCtbgVXKGfY2 2AKYPTVj12s/AyvzZA/mm5WzPOAHc0lZXypfxZRAivs1R1mAAl9shhNKkwMKBV/aygMo 2MqA== X-Received: by 10.49.81.240 with SMTP id d16mr683223qey.26.1361966003259; Wed, 27 Feb 2013 03:53:23 -0800 (PST) Received: from localhost ([202.75.201.5]) by mx.google.com with ESMTPS id t2sm7545679qav.1.2013.02.27.03.53.20 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 27 Feb 2013 03:53:22 -0800 (PST) Sender: prasanna Date: Wed, 27 Feb 2013 17:23:17 +0530 From: Prasanna Santhanam To: "cloudstack-dev@incubator.apache.org" Subject: Re: [ACS41]Unable to shrink volumes of type QCOW2 Message-ID: <20130227115317.GA24302@cloud-2.local> Mail-Followup-To: "cloudstack-dev@incubator.apache.org" References: <4FCA39B99132DA4EA70BE3CE408C193D0119F1795BA5@BANPMAILBOX01.citrite.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FCA39B99132DA4EA70BE3CE408C193D0119F1795BA5@BANPMAILBOX01.citrite.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Feb 27, 2013 at 05:15:14PM +0530, Sailaja Mada wrote: > Hi, > > Out of my curiosity , I tried to resize the volume with shrink option set to true . It failed to resize volume from 20 GB to 10 GB . This is with KVM 6.3 hypervisor. Do we have support this feature with KVM ? > > 2013-02-27 17:01:55,052 DEBUG [cloud.api.ApiServlet] (catalina-exec-1:null) ===END=== 10.144.7.13 -- GET command=resizeVolume&id=ff94b87c-973c-4698-9fd2-4a1375f5a7c0&shrinkok=true&diskofferingid=8c61068f-f997-48f5-a8ee-dfe8fd3571f2&size=10&response=json&sessionkey=Ijl3uimE7kcZYn0P%2FK4AEvh%2B3fw%3D&_=1361964737075 > 2013-02-27 17:01:55,054 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-66:job-128) Executing org.apache.cloudstack.api.command.user.volume.ResizeVolumeCmd for job-128 > 2013-02-27 17:01:55,078 DEBUG [agent.transport.Request] (Job-Executor-66:job-128) Seq 1-648544436: Sending { Cmd , MgmtId: 55487956346259, via: 1, Ver: v1, Flags: 100011, [{"storage.ResizeVolumeCommand":{"path":"d6a5ce3c-ca40-426d-b0bd-703567eda58f","pool":{"id":200,"uuid":"17700ab0-df5a-3047-a631-588d93dd749a","host":"10.102.192.100","path":"/cpg_vol/sailaja/asf41kvmps","port":2049,"type":"NetworkFilesystem"},"vmInstance":"none","newSize":10737418240,"currentSize":21474836480,"shrinkOk":true,"wait":0}}] } > 2013-02-27 17:01:55,192 DEBUG [agent.transport.Request] (AgentManager-Handler-10:null) Seq 1-648544436: Processing: { Ans: , MgmtId: 55487956346259, via: 1, Ver: v1, Flags: 10, [{"storage.ResizeVolumeAnswer":{"newSize":0,"result":false,"details":"Unable to shrink volumes of type QCOW2","wait":0}}] } > 2013-02-27 17:01:55,192 DEBUG [agent.transport.Request] (Job-Executor-66:job-128) Seq 1-648544436: Received: { Ans: , MgmtId: 55487956346259, via: 1, Ver: v1, Flags: 10, { ResizeVolumeAnswer } } > 2013-02-27 17:01:55,192 DEBUG [cloud.storage.StorageManagerImpl] (Job-Executor-66:job-128) Resize: returned 'Unable to shrink volumes of type QCOW2' > 2013-02-27 17:01:55,201 DEBUG [cloud.async.AsyncJobManagerImpl] (Job-Executor-66:job-128) Complete async job-128, jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed to resize volume > 2013-02-27 17:01:58,073 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===START=== 10.144.7.13 -- GET command=queryAsyncJobResult&jobId=68fdb060-343c-4a64-8ccd-ce738da07a9b&response=json&sessionkey=Ijl3uimE7kcZYn0P%2FK4AEvh%2B3fw%3D&_=1361964740184 > 2013-02-27 17:01:58,081 DEBUG [cloud.async.AsyncJobManagerImpl] (catalina-exec-17:null) Async job-128 completed > 2013-02-27 17:01:58,085 DEBUG [cloud.api.ApiServlet] (catalina-exec-17:null) ===END=== 10.144.7.13 -- GET command=queryAsyncJobResult&jobId=68fdb060-343c-4a64-8ccd-ce738da07a9b&response=json&sessionkey=Ijl3uimE7kcZYn0P%2FK4AEvh%2B3fw%3D&_=1361964740184 > > Is it a ROOT or DATA volume? -- Prasanna.,