You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Alessandro Caviglione <c....@gmail.com> on 2017/12/08 18:10:05 UTC
Manually copy volume and update database
Hi guys,
I've a little issue.
We're decommissioning a XS6.2 cluster and the last instance is a big one,
with a DATA DISK of 1 TB.
Our cluster is connected by NFS and we're trying to migrate this instance
to a new XS6.5 cluster but every try, will fail.
I tried to shutdown the instance and move the disk with API: migrate volume
volumeid=8d5d0640-49cd-40e2-8318-f6732ce91094
storageid=c24cd510-10ff-3cf2-b490-76bc4028d81e
but after some hours I got:
Error
Async job 741bffa2-ef32-4f3d-b013-f66e0c1c4836 failed
Error 530, Resource [StoragePool:14] is unreachable: Migrate volume failed:
com.cloud.utils.exception.CloudRuntimeException: Failed to migrate volume
org.apache.cloudstack.storage.volume.VolumeObject@73f6327b to storage pool
org.apache.cloudstack.storage.datastore.PrimaryDataStoreImpl@286c64b7
Since the new cluster uses the same storage, I can just copy/past the VHD
directly on the storage and change the database data to let the instance
point to the new VHD just copied.
I've already tried to do this changing these tables:
volumes: pool_id, last_pool_id, folder,
vm_instance: last_host_id, power_host
But the instance does not start...
Any suggestion??
Thank you!!
Re: Manually copy volume and update database
Posted by Rafael Weingärtner <ra...@gmail.com>.
Can you share some other log entries with us around the exception?
On Sat, Dec 9, 2017 at 1:13 PM, Alessandro Caviglione <
c.alessandro@gmail.com> wrote:
> pleeease....
>
> On Fri, Dec 8, 2017 at 7:10 PM, Alessandro Caviglione <
> c.alessandro@gmail.com> wrote:
>
> > Hi guys,
> > I've a little issue.
> > We're decommissioning a XS6.2 cluster and the last instance is a big one,
> > with a DATA DISK of 1 TB.
> > Our cluster is connected by NFS and we're trying to migrate this instance
> > to a new XS6.5 cluster but every try, will fail.
> > I tried to shutdown the instance and move the disk with API: migrate
> > volume volumeid=8d5d0640-49cd-40e2-8318-f6732ce91094
> > storageid=c24cd510-10ff-3cf2-b490-76bc4028d81e
> >
> > but after some hours I got:
> > Error
> > Async job 741bffa2-ef32-4f3d-b013-f66e0c1c4836 failed
> > Error 530, Resource [StoragePool:14] is unreachable: Migrate volume
> > failed: com.cloud.utils.exception.CloudRuntimeException: Failed to
> > migrate volume org.apache.cloudstack.storage.
> volume.VolumeObject@73f6327b
> > to storage pool org.apache.cloudstack.storage.datastore.
> > PrimaryDataStoreImpl@286c64b7
> >
> >
> > Since the new cluster uses the same storage, I can just copy/past the VHD
> > directly on the storage and change the database data to let the instance
> > point to the new VHD just copied.
> > I've already tried to do this changing these tables:
> > volumes: pool_id, last_pool_id, folder,
> > vm_instance: last_host_id, power_host
> >
> >
> > But the instance does not start...
> >
> > Any suggestion??
> >
> > Thank you!!
> >
> >
>
--
Rafael Weingärtner
Re: Manually copy volume and update database
Posted by Alessandro Caviglione <c....@gmail.com>.
pleeease....
On Fri, Dec 8, 2017 at 7:10 PM, Alessandro Caviglione <
c.alessandro@gmail.com> wrote:
> Hi guys,
> I've a little issue.
> We're decommissioning a XS6.2 cluster and the last instance is a big one,
> with a DATA DISK of 1 TB.
> Our cluster is connected by NFS and we're trying to migrate this instance
> to a new XS6.5 cluster but every try, will fail.
> I tried to shutdown the instance and move the disk with API: migrate
> volume volumeid=8d5d0640-49cd-40e2-8318-f6732ce91094
> storageid=c24cd510-10ff-3cf2-b490-76bc4028d81e
>
> but after some hours I got:
> Error
> Async job 741bffa2-ef32-4f3d-b013-f66e0c1c4836 failed
> Error 530, Resource [StoragePool:14] is unreachable: Migrate volume
> failed: com.cloud.utils.exception.CloudRuntimeException: Failed to
> migrate volume org.apache.cloudstack.storage.volume.VolumeObject@73f6327b
> to storage pool org.apache.cloudstack.storage.datastore.
> PrimaryDataStoreImpl@286c64b7
>
>
> Since the new cluster uses the same storage, I can just copy/past the VHD
> directly on the storage and change the database data to let the instance
> point to the new VHD just copied.
> I've already tried to do this changing these tables:
> volumes: pool_id, last_pool_id, folder,
> vm_instance: last_host_id, power_host
>
>
> But the instance does not start...
>
> Any suggestion??
>
> Thank you!!
>
>