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 821B611D3D for ; Mon, 7 Jul 2014 05:18:44 +0000 (UTC) Received: (qmail 83247 invoked by uid 500); 7 Jul 2014 05:18:42 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 83156 invoked by uid 500); 7 Jul 2014 05:18:42 -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 83133 invoked by uid 99); 7 Jul 2014 05:18:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jul 2014 05:18:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mike.tutkowski@solidfire.com designates 209.85.214.179 as permitted sender) Received: from [209.85.214.179] (HELO mail-ob0-f179.google.com) (209.85.214.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jul 2014 05:18:38 +0000 Received: by mail-ob0-f179.google.com with SMTP id uz6so4066369obc.24 for ; Sun, 06 Jul 2014 22:18:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=SaNGb+ZW29u7NbE4E07ToAlre1fORtxTD9YlI8bRFOc=; b=Tq6bgOTFcykSYf1+j3g9UfwEEMTq50a5zPVnuUX1C7Up6Hm9AmYXHcBG9il6ZEwPp5 ZTqnSxNrhD8KI0emmDeUHhUktqmm5Ee3zRp1jWiwmYmi/lnurCT9ZGRAlIo20YrN/rLi D7ZxnVUQMyZ3vYvt6LRTYj1cI2OM0tEa0qfI+R2Gdu+QrJx7UFEqgzYfxd97cF+bQTFi nIyRjS85NBOlMSXCjICuwaquFKAWKIvaEhiGSMiTl29JqKSKUHm9YDFJCRkqNWGPufl+ d1OJrmIs0me96NcPibehuIWB2z4sK0rD8PYAckk1KJxmC8fyAKWBeUphI5N47ciY3mLK aHeQ== X-Gm-Message-State: ALoCoQk9jCbSO0IHFA0O7QqX5YXsXxKRIQz1sq5S3Mo4/WIdWm50bjzjZ7x3ukT1cTwzOTBCJ/2a MIME-Version: 1.0 X-Received: by 10.60.176.225 with SMTP id cl1mr28434883oec.36.1404710297185; Sun, 06 Jul 2014 22:18:17 -0700 (PDT) Received: by 10.182.73.197 with HTTP; Sun, 6 Jul 2014 22:18:17 -0700 (PDT) In-Reply-To: <1404709658.71007.YahooMailNeo@web194004.mail.sg3.yahoo.com> References: <1404535547.94119.YahooMailNeo@web194002.mail.sg3.yahoo.com> <86A68A64B2545A4E96158C3A51C8EAC90E0DFF2A@SINPEX01CL03.citrite.net> <1404707409.70012.YahooMailNeo@web194002.mail.sg3.yahoo.com> <86A68A64B2545A4E96158C3A51C8EAC90E0E0C2E@SINPEX01CL03.citrite.net> <1404709658.71007.YahooMailNeo@web194004.mail.sg3.yahoo.com> Date: Sun, 6 Jul 2014 23:18:17 -0600 Message-ID: Subject: Re: How to change primary storage From: Mike Tutkowski To: "dev@cloudstack.apache.org" , Giri Prasad Cc: "users@cloudstack.apache.org" Content-Type: multipart/alternative; boundary=047d7bd75e6446d32d04fd939a7e X-Virus-Checked: Checked by ClamAV on apache.org --047d7bd75e6446d32d04fd939a7e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You can probably change the host_address field of the storage_pool table to change the IP address of your primary storage. You will probably want to make sure you don't have any (non-deleted) volumes on the storage pool (primary storage) in question, though. As you likely have seen, the volumes table is linked to the storage_pool table via the storage_pool.id and volumes.pool_id fields. It might be easier for you to create new primary storage and migrate your volumes on the old primary storage to the new primary storage. On Sun, Jul 6, 2014 at 11:07 PM, Giri Prasad wrote: > Thanks. > > I want to change the primary storage IP address from http://XXX.XXX.1.5 > to http://XXX.XXX.1.20. Also, I need to change the primary storage > directory, from /export/aa to /export/dd. What is the procedure? > > > > ________________________________ > From: Prashant Kumar Mishra > To: Giri Prasad ; "dev@cloudstack.apache.org" < > dev@cloudstack.apache.org>; "users@cloudstack.apache.org" < > users@cloudstack.apache.org> > Sent: Monday, 7 July 2014 10:30 AM > Subject: RE: How to change primary storage > > > For error like "The storage pool will not be used but cleanup is needed" > you should check global settings "global.clenup.interaval " ,For quick > cleanup you can set it to 300ms and check parameter related to cleanup > like storage.template.cleanup.enable , storage cleanup enabled etc. If > global settings are properly tuned I don't think any database > modifications required > > ->cloud.volume stores volumes information , if you are not able to delet= e > storage because"volume still exist on the storage" change the volume stat= e > and delete. > > -> storage_pool, storage_pool_view for primary storage > > Thanks > Prashant > > > -----Original Message----- > From: Giri Prasad [mailto:g_pr23@yahoo.com] > Sent: Monday, July 07, 2014 10:00 AM > To: Prashant Kumar Mishra; dev@cloudstack.apache.org; > users@cloudstack.apache.org > Subject: Re: How to change primary storage > > Hello, > > Thanks for suggestion, which I will try. > > Btw, I saw a lead as: > http://comments.gmane.org/gmane.comp.apache.cloudstack.user/7000 > Which says : > > when I've had issues deleting primary storages in the past, I've ended up > having to delete volumes that were still associated with the datastore fr= om > the cloud.volumes table. > > Is cloud.volumes the mysql table, where all the primary/secondary storage > setups are stored? Or what is the exact db.tablename which stores the > primary/secondary storage setups? > > > Regards, > D.Giriprasad > > > > ----- Original Message ----- > From: Prashant Kumar Mishra > To: "dev@cloudstack.apache.org" ; Giri Prasad = < > g_pr23@yahoo.com>; "users@cloudstack.apache.org" < > users@cloudstack.apache.org> > Cc: > Sent: Sunday, 6 July 2014 9:42 AM > Subject: RE: How to change primary storage > > > I would suggest add you new primary storage ,migrate volumes from old > storage to new storage and then remove ur old primary storage after > enabling maintenance mode. > > Thanks > Prashant > > > > -----Original Message----- > From: Giri Prasad [mailto:g_pr23@yahoo.com.INVALID] > Sent: Saturday, July 05, 2014 10:16 AM > To: users@cloudstack.apache.org; dev@cloudstack.apache.org > Subject: How to change primary storage > > Hello All, > > I installed CS 4.1 on ubuntu, with primary storage in /export/aa and > secondary storage in /export/bb, both in the same hard disk as the > management server of CS 4.1. The Ip of the server is http://XXX.XXX.1.5. > > > Recently, I configured the My Book Live Device, to the IP of > http://XXX.XXX.1.20. I am able to mount this device to linux dir and view > files on it. > > The CS 4.1 was installed before mounting this external My Book Live > Device. > > Now I want to change the primary storage of the IP address from > http://XXX.XXX.1.5 to http://XXX.XXX.1.20. Also, I need to change the > primary storage directory. > > Can, anybody provide insights, on which Mysql table, should I update for > CS 4.1 setup. Or is there a procedure, to change the primary storage > settings via the CS 4.1 web interface gui? > > Thanks in advance. > > Regards, > D.Giriprasad > --=20 *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkowski@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud *=E2=84=A2* --047d7bd75e6446d32d04fd939a7e--