Return-Path: X-Original-To: apmail-cloudstack-users-archive@www.apache.org Delivered-To: apmail-cloudstack-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6BF4DC050 for ; Tue, 1 Oct 2013 03:41:49 +0000 (UTC) Received: (qmail 74430 invoked by uid 500); 1 Oct 2013 03:41:45 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 74324 invoked by uid 500); 1 Oct 2013 03:41:33 -0000 Mailing-List: contact users-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cloudstack.apache.org Delivered-To: mailing list users@cloudstack.apache.org Received: (qmail 74302 invoked by uid 99); 1 Oct 2013 03:41:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Oct 2013 03:41:29 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bala2289@gmail.com designates 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-qc0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Oct 2013 03:41:24 +0000 Received: by mail-qc0-f180.google.com with SMTP id p19so4245991qcv.25 for ; Mon, 30 Sep 2013 20:41:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=eCec+QZDyTzGJ+ebER+UgOBJp5zV5+F96OXZ9NBWNgY=; b=nrruUE9OaxYyU8QthBLNIXX1OVRYSPYxISO4vZ91xiz03k7uN4S7YTbSdyToglKSf6 Yj9ZDRbzZWaRjqZ2aUMWRUaSDUQXVnpS2uu0lAbHw5tu8Bxp1ALeq8QNucZ1yYSbdklU VHHo92murxbWodGxsUeJXTex3deURpRwnDzcdqgQ3WoVDmyGGKQbblf+khxl62sYM/eX 9poba4kc/ULIZ4GPmf1hPmXtKWzqfKUijPABsJlyUixKBbzOpPb4yaYLC5lFzTUfH2rE Z3nCJpBPaTLbQR0Wwjym0dFBAok8RhR2LQsTaGtzr2dwUrdHlIbSUZ7oatTeyYZlndNc zyFw== X-Received: by 10.224.126.6 with SMTP id a6mr37127438qas.15.1380598863666; Mon, 30 Sep 2013 20:41:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.49.38.37 with HTTP; Mon, 30 Sep 2013 20:40:43 -0700 (PDT) In-Reply-To: <4C8CF984-4A15-4260-B70D-5E6BC614693A@shapeblue.com> References: <77B797E7-8513-4853-A83D-5B5A344FC668@shapeblue.com> <004F395D-8A51-41E9-9DF1-55AC30CAFEBE@shapeblue.com> <59180F40-1F3B-4AE7-AF9A-EE386ABA12DE@shapeblue.com> <4C8CF984-4A15-4260-B70D-5E6BC614693A@shapeblue.com> From: bala sundaram Date: Tue, 1 Oct 2013 09:10:43 +0530 Message-ID: Subject: Re: Error attaching an uploaded VHD volume to a VM To: users@cloudstack.apache.org Content-Type: multipart/alternative; boundary=001a11c30538d8c28204e7a5b8cf X-Virus-Checked: Checked by ClamAV on apache.org --001a11c30538d8c28204e7a5b8cf Content-Type: text/plain; charset=ISO-8859-1 Hi Shanker, Sorry for the late response. This option 'Storage - Volumes -> volume_name -> Migrate Volume To Another Primary Storage' is only shown only for the disk that is already there in a primary storage(Correct me if wrong). A newly uploaded disk which resides in the secondary storage will not show this option. I see only 2 options for it 1. Attach disk 2. Delete disk. Have tried the process again, 1. Create a new vm with datadisk. 2. Detach volume. 3. Download volume. 4. Upload it back. 5. Attach it to a vm. It worked perfectly. Storage type also shows as shared. Not sure what caused the problem last time. Thanks for your response :) Thanks and Regards, bala On Fri, Sep 27, 2013 at 12:18 AM, Shanker Balan wrote: > On 26-Sep-2013, at 4:47 PM, bala sundaram wrote: > > > Hi shanker, > > > > We didnt migrate the disks between hypervisors/storage pools. We > > downloaded it, while uploading it back the storage type is changed to > > shared. So were not able to attach it the vm. > > > > "*Cannot attach volume since there are no shared storage pools in the > VM's > > cluster to copy the uploaded volume to.*" > > My suggestion was to use the CloudStack volume migration feature to move > the > newly uploaded volume to the host's local storage pool. This option is > available > under the 'Storage - Volumes -> volume_name -> Migrate Volume To Another > Primary Storage' > section. When you click on the button, CloudStack will present the list of > pools available for migration. > > Once you migrate the volume to a local pool, try attaching it back to the > VM. > Note: The migrate volume option is available to the admin user. > > If this fails, I suggest asking on the -dev list and/or open a Jira ticket. > > Regards. > @shankerbalan > > > > > > > > > > Thanks and Regards, > > bala > > > > > > On Thu, Sep 26, 2013 at 12:05 PM, Shanker Balan < > shanker.balan@shapeblue.com > >> wrote: > > > >> On 26-Sep-2013, at 7:48 AM, bala sundaram wrote: > >> > >>> Hi Shanker, > >>> > >>> You are right. We dont hava a shared storage. The Vm is in the local > >>> disk of the hypervisor. We a shared primary storage that is used only > by > >>> the system vms. > >> > >> Are you able to migrate the volume to local storage and attach to the > VM? > >> > >> Regards. > >> @shankerbalan > >> > >> > >> > >> > >> > >>> > >>> Thanks and Regards, > >>> bala > >>> > >>> > >>> On Wed, Sep 25, 2013 at 7:49 PM, Shanker Balan > >>> wrote: > >>> > >>>> On 25-Sep-2013, at 7:36 PM, Shanker Balan < > shanker.balan@shapeblue.com> > >>>> wrote: > >>>> > >>>>> On 23-Sep-2013, at 10:41 PM, iliyas shirol > >>>> wrote: > >>>>> > >>>>>> Greetings ! > >>>>>> > >>>>>> We downloaded a DATA disk volume (on Local Storage) of VM-1 running > >> in a > >>>>>> particular zone to a webserver DOCROOT and again uploaded as a new > >>>> volume > >>>>>> using the 'Upload Volume' feature in the webUI. > >>>>>> > >>>>>> Now when we're trying to attach this volume to a new VM say VM-2 > we're > >>>>>> encountering the below exception, > >>>>>> > >>>>>> "*Cannot attach volume since there are no shared storage pools in > the > >>>> VM's > >>>>>> cluster to copy the uploaded volume to.*" > >>>>>> > >>>>>> When we check the properties of the newly uploaded volume we can see > >>>> that > >>>>>> the Storage Type is set to 'Shared'. Can anyone tell us where we're > >>>> going > >>>>>> wrong ? > >>>>>> > >>>>> > >>>>> Hi Iliyas, > >>>>> > >>>>> > >>>>> The following works for me on Apache CloudStack 4.1.1: > >>>>> > >>>>> - Create a new data disk of type local storage > >>>>> - Attach to VM and created a ext2 file system on it > >>>>> - Detach and download to local web server > >>>>> - Upload volume to CloudStack, the storage type now shows "Shared" > >>>>> - Attach data disk after import back to the same VM or another VM > >>>> instance > >>>>> > >>>>> > >>>>> Are your tests with Apache CloudStack 4.1.1? > >>>>> > >>>> > >>>> > >>>> On re-reading, is your concern that you have no shared storage for the > >>>> Cluster and CloudStack > >>>> is setting the imported volume with storage type of "shared" instead > of > >>>> "local"? > >>>> > >>>> > >>>> -- > >>>> @shankerbalan > >>>> > >>>> M: +91 98860 60539 | O: +91 (80) 67935867 > >>>> shanker.balan@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue > >>>> ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade > >> Centre, > >>>> Bangalore - 560 055 > >>>> > >>>> This email and any attachments to it may be confidential and are > >> intended > >>>> solely for the use of the individual to whom it is addressed. Any > views > >> or > >>>> opinions expressed are solely those of the author and do not > necessarily > >>>> represent those of Shape Blue Ltd or related companies. If you are not > >> the > >>>> intended recipient of this email, you must neither take any action > based > >>>> upon its contents, nor copy or show it to anyone. Please contact the > >> sender > >>>> if you believe you have received this email in error. Shape Blue Ltd > is > >> a > >>>> company incorporated in England & Wales. ShapeBlue Services India LLP > >> is a > >>>> company incorporated in India and is operated under license from Shape > >> Blue > >>>> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in > >> Brasil > >>>> and is operated under license from Shape Blue Ltd. ShapeBlue is a > >>>> registered trademark. > >>>> > >> > >> -- > >> @shankerbalan > >> > >> M: +91 98860 60539 | O: +91 (80) 67935867 > >> shanker.balan@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue > >> ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade > Centre, > >> Bangalore - 560 055 > >> > >> This email and any attachments to it may be confidential and are > intended > >> solely for the use of the individual to whom it is addressed. Any views > or > >> opinions expressed are solely those of the author and do not necessarily > >> represent those of Shape Blue Ltd or related companies. If you are not > the > >> intended recipient of this email, you must neither take any action based > >> upon its contents, nor copy or show it to anyone. Please contact the > sender > >> if you believe you have received this email in error. Shape Blue Ltd is > a > >> company incorporated in England & Wales. ShapeBlue Services India LLP > is a > >> company incorporated in India and is operated under license from Shape > Blue > >> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in > Brasil > >> and is operated under license from Shape Blue Ltd. ShapeBlue is a > >> registered trademark. > >> > > -- > @shankerbalan > > M: +91 98860 60539 | O: +91 (80) 67935867 > shanker.balan@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue > ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, > Bangalore - 560 055 > > This email and any attachments to it may be confidential and are intended > solely for the use of the individual to whom it is addressed. Any views or > opinions expressed are solely those of the author and do not necessarily > represent those of Shape Blue Ltd or related companies. If you are not the > intended recipient of this email, you must neither take any action based > upon its contents, nor copy or show it to anyone. Please contact the sender > if you believe you have received this email in error. Shape Blue Ltd is a > company incorporated in England & Wales. ShapeBlue Services India LLP is a > company incorporated in India and is operated under license from Shape Blue > Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil > and is operated under license from Shape Blue Ltd. ShapeBlue is a > registered trademark. > --001a11c30538d8c28204e7a5b8cf--