You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by vi...@indiqus.com on 2016/10/08 09:19:43 UTC
Lost vhd file in cloudstack
Hello Guys,
I have a setup of acs 4.5.2 with 4 xenserver's 6.5, one day while migrating root disk of a vm to another storage pool its gives me error.
I tried to start my vm but it couldn't start and said unable to start due to insufficient capacity so I checked the logs and try to migrates again and this time it gave me error that unable to reach storage pool and the uuid that u supplied is invalid. So I check the vhd file location from the db and searched it on my primary storage and found nothing that time.
Then I logged in to my xen server and checked the location of that vhd it gave me 3 uuid of that vms so I checked that these 3 vhd was there in my primary storage, and here comes the main point that these 3 vhd were very small in size however my original vhd would be around 100GB, and then I did manually entry of that vhd path in my database but successfully to start the vm but with no data.
So where do I find the the old vhd file name..
So anyone have any idea that we can find the old vhd name.
Regards
Vivek Kumar
Re: Lost vhd file in cloudstack
Posted by Adrian Sender <as...@testlabs.com.au>.
As Stephan mentioned .... its the path that corresponds with the LV.
mysql> select * from volumes where name='ROOT-4190' \G
*************************** 1. row ***************************
id: 6061
account_id: 2
domain_id: 1
pool_id: 228
last_pool_id: NULL
instance_id: 4190
device_id: 0
name: ROOT-4190
uuid: d72cb93e-7585-4d2f-a9d1-c2c0924d3cd3
size: 42949672960
folder: NULL
path: d787ba56-e852-449d-8626-821bf72f872f
Login to the XS Pool master
lvscan | grep d787ba56-e852-449d-8626-821bf72f872f
-Adrian
---------- Original Message -----------
From: Stephan Seitz <s....@secretresearchfacility.com>
To: users@cloudstack.apache.org
Sent: Mon, 10 Oct 2016 16:12:20 +0200
Subject: Re: Lost vhd file in cloudstack
> Hi,
>
> if you take a look into the mysql cloud.volumes table, you should
> find uuid-strings in the path-field. At least for XenServer lvmohba Storages
> you should find that uuid as part of the lv-name (VHD-[uuid])
>
> cheers,
>
> - Stephan
>
> Am Samstag, den 08.10.2016, 09:19 +0000 schrieb
> vivek.kumar@indiqus.com:
> >
> > Hello Guys,
> >
> >
> > I have a setup of acs 4.5.2 with 4 xenserver's 6.5, one day while
> > migrating root disk of a vm to another storage pool its gives me
> > error.
> >
> >
> > I tried to start my vm but it couldn't start and said unable to start
> > due to insufficient capacity so I checked the logs and try to
> > migrates again and this time it gave me error that unable to reach
> > storage pool and the uuid that u supplied is invalid. So I check the
> > vhd file location from the db and searched it on my primary storage
> > and found nothing that time.
> >
> >
> > Then I logged in to my xen server and checked the location of that
> > vhd it gave me 3 uuid of that vms so I checked that these 3 vhd was
> > there in my primary storage, and here comes the main point that these
> > 3 vhd were very small in size however my original vhd would be around
> > 100GB, and then I did manually entry of that vhd path in my database
> > but successfully to start the vm but with no data.
> >
> >
> > So where do I find the the old vhd file name..
> >
> >
> > So anyone have any idea that we can find the old vhd name.
> >
> >
> > Regards
> >
> >
> > Vivek Kumar
> >
> >
------- End of Original Message -------
Re: Lost vhd file in cloudstack
Posted by Adrian Sender <as...@testlabs.com.au>.
If you have a old DB backup before the storage migration, check that path as
it would change once the storage migration process begins.
-Adrian
---------- Original Message -----------
From: Vivek Kumar <vi...@indiqus.com>
To: CloudStack Users Mailing list <us...@cloudstack.apache.org>
Sent: Mon, 10 Oct 2016 22:38:59 +0530
Subject: Re: Lost vhd file in cloudstack
> Hello Stephan,
>
> Yes i ve already seen that. but unable to find that string in my primary
> storage.i found this blog but unable to find old vhd
>
> http://blog.branix.net/cloudplatform/when-live-storage-migration-
> goes-wrong
>
> On Mon, Oct 10, 2016 at 7:42 PM, Stephan Seitz <s.seitz@
> secretresearchfacility.com> wrote:
>
> > Hi,
> >
> > if you take a look into the mysql cloud.volumes table, you should find
> > uuid-strings in the path-field. At least for XenServer lvmohba Storages
> > you should find that uuid as part of the lv-name (VHD-[uuid])
> >
> > cheers,
> >
> > - Stephan
> >
> >
> > Am Samstag, den 08.10.2016, 09:19 +0000 schrieb
> > vivek.kumar@indiqus.com:
> > >
> > > Hello Guys,
> > >
> > >
> > > I have a setup of acs 4.5.2 with 4 xenserver's 6.5, one day while
> > > migrating root disk of a vm to another storage pool its gives me
> > > error.
> > >
> > >
> > > I tried to start my vm but it couldn't start and said unable to start
> > > due to insufficient capacity so I checked the logs and try to
> > > migrates again and this time it gave me error that unable to reach
> > > storage pool and the uuid that u supplied is invalid. So I check the
> > > vhd file location from the db and searched it on my primary storage
> > > and found nothing that time.
> > >
> > >
> > > Then I logged in to my xen server and checked the location of that
> > > vhd it gave me 3 uuid of that vms so I checked that these 3 vhd was
> > > there in my primary storage, and here comes the main point that these
> > > 3 vhd were very small in size however my original vhd would be around
> > > 100GB, and then I did manually entry of that vhd path in my database
> > > but successfully to start the vm but with no data.
> > >
> > >
> > > So where do I find the the old vhd file name..
> > >
> > >
> > > So anyone have any idea that we can find the old vhd name.
> > >
> > >
> > > Regards
> > >
> > >
> > > Vivek Kumar
> > >
> > >
> >
>
> --
>
> *Vivek Kumar*
> Virtualization and Cloud Consultant
>
> [image: http://www.indiqus.com/images/logo.jpg] <http://www.indiqus.com/>
> *I*ndi*Q*us Technologies Pvt Ltd
> A-98, LGF, C.R.Park, New Delhi - 110019
> *O* +91 11 4055 1411 | *M* +91 7503460090
> www.indiqus.com <http://www.indiqus.com/>
------- End of Original Message -------
Re: Lost vhd file in cloudstack
Posted by Vivek Kumar <vi...@indiqus.com>.
Hello Stephan,
Yes i ve already seen that. but unable to find that string in my primary
storage.i found this blog but unable to find old vhd
http://blog.branix.net/cloudplatform/when-live-storage-migration-goes-wrong
On Mon, Oct 10, 2016 at 7:42 PM, Stephan Seitz <s.seitz@
secretresearchfacility.com> wrote:
> Hi,
>
> if you take a look into the mysql cloud.volumes table, you should find
> uuid-strings in the path-field. At least for XenServer lvmohba Storages
> you should find that uuid as part of the lv-name (VHD-[uuid])
>
> cheers,
>
> - Stephan
>
>
> Am Samstag, den 08.10.2016, 09:19 +0000 schrieb
> vivek.kumar@indiqus.com:
> >
> > Hello Guys,
> >
> >
> > I have a setup of acs 4.5.2 with 4 xenserver's 6.5, one day while
> > migrating root disk of a vm to another storage pool its gives me
> > error.
> >
> >
> > I tried to start my vm but it couldn't start and said unable to start
> > due to insufficient capacity so I checked the logs and try to
> > migrates again and this time it gave me error that unable to reach
> > storage pool and the uuid that u supplied is invalid. So I check the
> > vhd file location from the db and searched it on my primary storage
> > and found nothing that time.
> >
> >
> > Then I logged in to my xen server and checked the location of that
> > vhd it gave me 3 uuid of that vms so I checked that these 3 vhd was
> > there in my primary storage, and here comes the main point that these
> > 3 vhd were very small in size however my original vhd would be around
> > 100GB, and then I did manually entry of that vhd path in my database
> > but successfully to start the vm but with no data.
> >
> >
> > So where do I find the the old vhd file name..
> >
> >
> > So anyone have any idea that we can find the old vhd name.
> >
> >
> > Regards
> >
> >
> > Vivek Kumar
> >
> >
>
--
*Vivek Kumar*
Virtualization and Cloud Consultant
[image: http://www.indiqus.com/images/logo.jpg] <http://www.indiqus.com/>
*I*ndi*Q*us Technologies Pvt Ltd
A-98, LGF, C.R.Park, New Delhi - 110019
*O* +91 11 4055 1411 | *M* +91 7503460090
www.indiqus.com <http://www.indiqus.com/>
Re: Lost vhd file in cloudstack
Posted by Stephan Seitz <s....@secretresearchfacility.com>.
Hi,
if you take a look into the mysql cloud.volumes table, you should find
uuid-strings in the path-field. At least for XenServer lvmohba Storages
you should find that uuid as part of the lv-name (VHD-[uuid])
cheers,
- Stephan
Am Samstag, den 08.10.2016, 09:19 +0000 schrieb
vivek.kumar@indiqus.com:
>
> Hello Guys,
>
>
> I have a setup of acs 4.5.2 with 4 xenserver's 6.5, one day while
> migrating root disk of a vm to another storage pool its gives me
> error.
>
>
> I tried to start my vm but it couldn't start and said unable to start
> due to insufficient capacity so I checked the logs and try to
> migrates again and this time it gave me error that unable to reach
> storage pool and the uuid that u supplied is invalid. So I check the
> vhd file location from the db and searched it on my primary storage
> and found nothing that time.
>
>
> Then I logged in to my xen server and checked the location of that
> vhd it gave me 3 uuid of that vms so I checked that these 3 vhd was
> there in my primary storage, and here comes the main point that these
> 3 vhd were very small in size however my original vhd would be around
> 100GB, and then I did manually entry of that vhd path in my database
> but successfully to start the vm but with no data.
>
>
> So where do I find the the old vhd file name..
>
>
> So anyone have any idea that we can find the old vhd name.
>
>
> Regards
>
>
> Vivek Kumar
>
>