WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

Re: [Xen-API] problem with vdi-resize XCP 1.0

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-API] problem with vdi-resize XCP 1.0
From: Rushikesh <rushikesh.jadhav@xxxxxxxxxx>
Date: Wed, 13 Apr 2011 14:22:33 +0530
Delivery-date: Wed, 13 Apr 2011 01:52:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <002c01cbf863$39528070$abf78150$@cariani@xigroup.it>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <002c01cbf863$39528070$abf78150$@cariani@xigroup.it>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100528 Thunderbird/3.0.5
The answer lies in line

"Error parameters: , VDI Invalid size [opterr=shrinking not allowed],"

The workaround is to attach a 10 GB disk and copy your data and destroy old one.

RJ

On Monday 11 April 2011 09:42 PM, simone.cariani@xxxxxxxxxx wrote:

Hi all,

 

i have a problem with vdi resize  from 40GB to 10GB in XCP 1.0.

 

XCP shows the following error:

 

[root@xcp1 ~]# xe vdi-resize uuid=c3fdc9ab-06d6-4f4c-aefc-42799ec800fc disk-size=10GiB

Error code: SR_BACKEND_FAILURE_79

Error parameters: , VDI Invalid size [opterr=shrinking not allowed],

 

 

 

The Smlog shows:

 

[29232] 2011-04-11 18:01:26.070505      lock: acquired /var/lock/sm/33e52254-d60b-8991-7e1b-e9449ea16440/sr

[29232] 2011-04-11 18:01:26.073783      ['/usr/sbin/td-util', 'query', 'vhd', '-vpf', '/var/run/sr-mount/33e52254-d60b-8991-7e1b-e9449ea16440/c3fdc9ab-06d6-

4f4c-aefc-42799ec800fc.vhd']

[29232] 2011-04-11 18:01:26.134399      SUCCESS

[29232] 2011-04-11 18:01:26.135413      lock: released /var/lock/sm/33e52254-d60b-8991-7e1b-e9449ea16440/sr

[29232] 2011-04-11 18:01:26.135539      vdi_resize {'sr_uuid': '33e52254-d60b-8991-7e1b-e9449ea16440', 'subtask_of': 'OpaqueRef:2776bb72-36c0-4def-8566-912a

b126dd75', 'vdi_ref': 'OpaqueRef:5f311b7c-96c0-b85a-20b4-890ee5323e45', 'vdi_on_boot': 'persist', 'args': ['10737418240'], 'vdi_location': 'c3fdc9ab-06d6-4f

4c-aefc-42799ec800fc', 'host_ref': 'OpaqueRef:2eeb523c-c2a0-641a-df81-ac3070fea694', 'session_ref': 'OpaqueRef:fdfedf4b-e489-9295-8e8d-1693adaa5fc4', 'devic

e_config': {'server': '192.168.10.241', 'SRmaster': 'true', 'serverpath': '/xcpfs', 'options': ''}, 'command': 'vdi_resize', 'vdi_allow_caching': 'false', '

sr_ref': 'OpaqueRef:83c83c5b-de59-0b0f-1a37-0560f09ba0a0', 'vdi_uuid': 'c3fdc9ab-06d6-4f4c-aefc-42799ec800fc'}

[29232] 2011-04-11 18:01:26.135664      vdi_resize: shrinking not supported: (current size: 42949672960, new size: 10737418240)

[29232] 2011-04-11 18:01:26.162492      Raising exception [79, VDI Invalid size [opterr=shrinking not allowed]]

[29232] 2011-04-11 18:01:26.163289      ***** vdi_resize: EXCEPTION SR.SROSError, VDI Invalid size [opterr=shrinking not allowed]

  File "/opt/xensource/sm/SRCommand.py", line 94, in run

    return self._run_locked(sr)

  File "/opt/xensource/sm/SRCommand.py", line 131, in _run_locked

    return self._run(sr, target)

  File "/opt/xensource/sm/SRCommand.py", line 175, in _run

    return target.resize(self.params['sr_uuid'], self.vdi_uuid, long(self.params['args'][0]))

  File "/opt/xensource/sm/FileSR.py", line 460, in resize

    return self.resize_online(sr_uuid, vdi_uuid, size)

  File "/opt/xensource/sm/FileSR.py", line 473, in resize_online

    raise xs_errors.XenError('VDISize', opterr='shrinking not allowed')

  File "/opt/xensource/sm/xs_errors.py", line 49, in __init__

    raise SR.SROSError(errorcode, errormessage)

 

[29232] 2011-04-11 18:01:26.163569      lock: closed /var/lock/sm/33e52254-d60b-8991-7e1b-e9449ea16440/sr

 

 

 

 

I have tried the resize with vdi that are stored in  both nfs SR and  Local Storage SR. But the problem persists..

 

Does anyone know a possible solution to resize the vdi?

 

Regards,

 

Simone Cariani

 

 

_______________________________________________ xen-api mailing list xen-api@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/mailman/listinfo/xen-api

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>