Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7F5BF200D0D for ; Sat, 26 Aug 2017 00:01:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7DBEE16D658; Fri, 25 Aug 2017 22:01:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9CD9B16D657 for ; Sat, 26 Aug 2017 00:01:11 +0200 (CEST) Received: (qmail 79596 invoked by uid 500); 25 Aug 2017 22:01:08 -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 79583 invoked by uid 99); 25 Aug 2017 22:01:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2017 22:01:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 63604C1C3C for ; Fri, 25 Aug 2017 22:01:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.279 X-Spam-Level: ** X-Spam-Status: No, score=2.279 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, NO_DNS_FOR_FROM=0.379] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=globalchangemusic.org header.b=uHJWCzmV; dkim=neutral reason="invalid (public key: DNS error: SERVFAIL)" header.d=globalchangemusic.org header.b=HwbqlujW Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id hh7MAgIgHSKS for ; Fri, 25 Aug 2017 22:00:55 +0000 (UTC) Received: from triata.globalchangemultimedia.net (triata.globalchangemultimedia.net [206.169.39.146]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 49E4A5FB9F for ; Fri, 25 Aug 2017 22:00:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by triata.globalchangemultimedia.net (Postfix) with ESMTP id B0A4C8DF9 for ; Fri, 25 Aug 2017 15:00:33 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=globalchangemusic.org; s=TRIATA; t=1503698433; bh=BcHr/Izbd9XWa9gSTF43Z5et9T3e4nQWhvcULhbqC4c=; h=From:Subject:Date:References:To:In-Reply-To; b=uHJWCzmVXTCtRKTQeDFYsLxeHuLykS+KeE0j/+x0ZYhfJVGaz+jUV8AEUlNeqAsYv TUbb8TGOw1I7G+yiJvoY5omTambaDLPZ8Z3GA+hRrOLcTpD+TMwvqfv8I200y//PW4 hIWcGbWl77riGbAQITK0QiH2pkGxscZPqtjd8GAQ= X-Virus-Scanned: amavisd-new at globalchangemultimedia.net Authentication-Results: triata.globalchangemultimedia.net (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=globalchangemusic.org Received: from triata.globalchangemultimedia.net ([127.0.0.1]) by localhost (triata.globalchangemultimedia.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WrQYb9SfqD67 for ; Fri, 25 Aug 2017 15:00:32 -0700 (MST) Received: from hyperion.gcmm (unknown [192.168.50.50]) by triata.globalchangemultimedia.net (Postfix) with ESMTPSA id 94C628DF8 for ; Fri, 25 Aug 2017 15:00:32 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=globalchangemusic.org; s=TRIATA; t=1503698432; bh=BcHr/Izbd9XWa9gSTF43Z5et9T3e4nQWhvcULhbqC4c=; h=From:Subject:Date:References:To:In-Reply-To; b=HwbqlujWQkbM/9EjaGYslvXVeM/FBkUZ4APDda1KfwvkmL6WAv83mqvVArSGvh4qG 1vL94oFrJvXby6WOM8NRE/pXkT/fNGIWiULd71rePPwdxKdRCDjwev5RBPiLqp7vlj Qxm0g+xPI2rO+itZ05VCP71ORjpeX5Br2tjmdsa8= From: Asai Content-Type: multipart/alternative; boundary="Apple-Mail=_77DDCA0C-68E4-4E5B-9CB1-01F98F7527A1" Message-Id: Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Unable to locate datastore with id Date: Fri, 25 Aug 2017 15:00:32 -0700 References: <809B3F09-3782-40EF-88AF-8151B86F775D@globalchangemusic.org> <94D901BC-535C-48EE-8AEC-832E80AC148D@globalchangemusic.org> <1432676A-6CBE-4693-94B4-7F916E8333C7@globalchangemusic.org> To: users@cloudstack.apache.org In-Reply-To: X-Mailer: Apple Mail (2.3124) archived-at: Fri, 25 Aug 2017 22:01:12 -0000 --Apple-Mail=_77DDCA0C-68E4-4E5B-9CB1-01F98F7527A1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Yes, I had two servers running in the cluster and each had a primary = storage. I removed one of them, but before removing, I migrated all the = VMs and Volumes on that server to the other one. Asai > On Aug 25, 2017, at 10:57 AM, Rafael Weing=C3=A4rtner = wrote: >=20 > By migrated, you mean moved the VM's disk to another storage that was > already connected in the cluster where the vm was running? >=20 > On Fri, Aug 25, 2017 at 1:13 PM, Asai = wrote: >=20 >> I migrated the VM to another Primary Storage and Host, then removed = the >> primary storage that was no longer in use from the Infrastructure. >> Asai >> Network and Systems Administrator >> GLOBAL CHANGE MEDIA >> office: 520.398.2542 >> http://globalchange.media >> Tucson, AZ >>=20 >>> On Aug 25, 2017, at 7:10 AM, Rafael Weing=C3=A4rtner < >> rafaelweingartner@gmail.com> wrote: >>>=20 >>> I did not understand. You removed a primary storage, how do you = still >> have >>> a VM running that is from this deleted primary storage? >>> What did you do? what was the process to remove a storage? >>>=20 >>> On Thu, Aug 24, 2017 at 1:57 PM, Asai >> wrote: >>>=20 >>>> Thanks, >>>>=20 >>>> The next problem seems to be now, that there was an original = snapshot >> that >>>> is no longer there. When I try to snapshot the volume I=E2=80=99m = working on, >> it >>>> fails, because it=E2=80=99s looking for an initial snapshot that = the database >> says >>>> is still there, but which was actually removed when I removed the = other >>>> Primary Storage volume. Does that make sense? What do I need to >> change in >>>> the database for that volume to be able to snapshot? >>>> Asai >>>>=20 >>>>=20 >>>>> On Aug 24, 2017, at 1:53 PM, Rafael Weing=C3=A4rtner < >>>> rafaelweingartner@gmail.com> wrote: >>>>>=20 >>>>> Do not remove (delete), to remove you can mark the flags. First = set the >>>>> removed date flag and then the state as Destroyed. >>>>>=20 >>>>> On Thu, Aug 24, 2017 at 1:10 PM, Asai >>>> wrote: >>>>>=20 >>>>>> I the DB table snapshot_store_ref I see two snapshots listed with >>>> store_id >>>>>> 3. Can I safely remove those rows? >>>>>> Asai >>>>>> Network and Systems Administrator >>>>>> GLOBAL CHANGE MEDIA >>>>>> office: 520.398.2542 >>>>>> http://globalchange.media >>>>>> Tucson, AZ >>>>>>=20 >>>>>>> On Aug 24, 2017, at 1:06 PM, Asai >> wrote: >>>>>>>=20 >>>>>>> I can see now that id 3 refers to a primary storage that I had = to >>>> remove >>>>>> a while ago. It=E2=80=99s still in the DB, though, and seems to = be causing >> the >>>>>> error. What steps should I take to remove this reference = completely >>>> from >>>>>> the DB? >>>>>>> Asai >>>>>>>=20 >>>>>>>=20 >>>>>>>> On Aug 24, 2017, at 11:20 AM, Gabriel Beims Br=C3=A4scher < >>>>>> gabrascher@gmail.com> wrote: >>>>>>>>=20 >>>>>>>> Just adding to Rafael's comment. Constant database backup is = also a >>>>>> great >>>>>>>> idea. >>>>>>>>=20 >>>>>>>> 2017-08-24 15:19 GMT-03:00 Rafael Weing=C3=A4rtner < >>>>>> rafaelweingartner@gmail.com>: >>>>>>>>=20 >>>>>>>>> I would suggest you taking quite a lot of care before = executing >>>>>> anything in >>>>>>>>> the database. >>>>>>>>> Please, do not hesitate to ask for further assistance here. >>>>>>>>>=20 >>>>>>>>> On Thu, Aug 24, 2017 at 2:15 PM, Asai = >>>>>> wrote: >>>>>>>>>=20 >>>>>>>>>> Thank you very much for the assistance. I will try that. >>>>>>>>>> Asai >>>>>>>>>>> On Aug 24, 2017, at 11:12 AM, Rafael Weing=C3=A4rtner < >>>>>>>>>> rafaelweingartner@gmail.com> wrote: >>>>>>>>>>>=20 >>>>>>>>>>> Yes, quite easily. >>>>>>>>>>> I do not know if your problem is the same (you need a human = not >>>>>> paying >>>>>>>>>> much >>>>>>>>>>> attention to cause this type of problem), but basically, you = can >>>>>> check >>>>>>>>> in >>>>>>>>>>> the database what is the data store with id =3D 3, and then = the >>>> volumes >>>>>>>>> of >>>>>>>>>>> snapshots that are allocated in this data store, and then = you can >>>>>>>>> remove >>>>>>>>>>> them manually setting the flags. >>>>>>>>>>>=20 >>>>>>>>>>>=20 >>>>>>>>>>> On Thu, Aug 24, 2017 at 2:09 PM, Asai < >> asai@globalchangemusic.org> >>>>>>>>>> wrote: >>>>>>>>>>>=20 >>>>>>>>>>>> Do you recall if it was able to be fixed? >>>>>>>>>>>> Asai >>>>>>>>>>>>=20 >>>>>>>>>>>>=20 >>>>>>>>>>>>> On Aug 24, 2017, at 11:03 AM, Rafael Weing=C3=A4rtner < >>>>>>>>>>>> rafaelweingartner@gmail.com> wrote: >>>>>>>>>>>>>=20 >>>>>>>>>>>>> I have seen this issue before. In the environment I = noticed it, >>>> it >>>>>>>>> was >>>>>>>>>>>>> caused by someone that manually deleted a volume in the >> database >>>> in >>>>>>>>>> order >>>>>>>>>>>>> to remove a data store, but the snapshot that was using = that >>>> volume >>>>>>>>> was >>>>>>>>>>>> not >>>>>>>>>>>>> removed. Then, the data store was removed. By delete here = I >> mean >>>>>>>>>> setting >>>>>>>>>>>>> the flag "removed" in the database to some data and the = "state" >>>> to >>>>>>>>>>>>> destroyed. >>>>>>>>>>>>>=20 >>>>>>>>>>>>> On Thu, Aug 24, 2017 at 1:45 PM, Asai < >>>> asai@globalchangemusic.org> >>>>>>>>>>>> wrote: >>>>>>>>>>>>>=20 >>>>>>>>>>>>>> Greetings, >>>>>>>>>>>>>>=20 >>>>>>>>>>>>>> I was browsing to the Snapshots section under = =E2=80=9CStorage=E2=80=9D today >>>> and >>>>>>>>> came >>>>>>>>>>>> up >>>>>>>>>>>>>> with this error: >>>>>>>>>>>>>>=20 >>>>>>>>>>>>>> Unable to locate datastore with id 3 >>>>>>>>>>>>>>=20 >>>>>>>>>>>>>> I am unable to figure this out. I went to the Secondary >> Storage >>>>>>>>>> server >>>>>>>>>>>>>> and it looks like all the snapshots are there from 2 days = ago. >>>>>> Can >>>>>>>>>>>> someone >>>>>>>>>>>>>> please assist me on how to troubleshoot this problem? >>>>>>>>>>>>>> Asai >>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>=20 >>>>>>>>>>>>>>=20 >>>>>>>>>>>>>=20 >>>>>>>>>>>>>=20 >>>>>>>>>>>>> -- >>>>>>>>>>>>> Rafael Weing=C3=A4rtner >>>>>>>>>>>>=20 >>>>>>>>>>>>=20 >>>>>>>>>>>=20 >>>>>>>>>>>=20 >>>>>>>>>>> -- >>>>>>>>>>> Rafael Weing=C3=A4rtner >>>>>>>>>>=20 >>>>>>>>>>=20 >>>>>>>>>=20 >>>>>>>>>=20 >>>>>>>>> -- >>>>>>>>> Rafael Weing=C3=A4rtner >>>>>>>>>=20 >>>>>>>=20 >>>>>>=20 >>>>>>=20 >>>>>=20 >>>>>=20 >>>>> -- >>>>> Rafael Weing=C3=A4rtner >>>>=20 >>>>=20 >>>=20 >>>=20 >>> -- >>> Rafael Weing=C3=A4rtner >>=20 >>=20 >=20 >=20 > --=20 > Rafael Weing=C3=A4rtner --Apple-Mail=_77DDCA0C-68E4-4E5B-9CB1-01F98F7527A1--