You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Gian Paolo Buono <gi...@gesca.it> on 2017/10/05 07:40:45 UTC
Merge VHD
Hi,
I use cloudstack with XenServer and I would like to move some disks to another xenserver pool.
I would like to join the chain of disks and create a single vhd to move it. I'm doing some tests with a disk with an example chain:
vhd-util scan -f -m 8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd -p
vhd=8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd capacity=8589934592 size=20992 hidden=0 parent=f8ab7260-c1ae-4007-85ec-aa2ba4a04127.vhd (not found in scan)
I would like to create a new disk called merge.vhd that contain both vhd, and I tried to follow this:
https://shankerbalan.net/blog/recover-xenserver-vhd-volumes/
[root@xenser]# mkdir appo ; cp 8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd f8ab7260-c1ae-4007-85ec-aa2ba4a04127.vhd appo ; cd appo
[root@xenser]# vhd-util coalesce -n 8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd
but I can not have a single file.
Thanks
Re: Merge VHD
Posted by Gian Paolo Buono <gi...@gesca.it>.
Great...thank !!!
On 10/05/2017 01:12 PM, Rafael Weingärtner wrote:
Gian, I did that once, but I used the following command:
vhd-util coalesce -p -n <vhdUUID>.vhd –o /tmp/ <name>.vhd
You need the full chain of the '<vhdUUID>.vhd' in the folder you are
running this command
On Thu, Oct 5, 2017 at 8:07 AM, Mārtiņš Jakubovičs <ma...@hostnet.lv>
wrote:
Hello Gian,
I would suggest just to copy vdi.
xe vdi-copy uuid= sr-uuid=
This will create new VDI in destination SR without VHD chain.
On 2017.10.05. 10:40, Gian Paolo Buono wrote:
Hi,
I use cloudstack with XenServer and I would like to move some disks to
another xenserver pool.
I would like to join the chain of disks and create a single vhd to move
it. I'm doing some tests with a disk with an example chain:
vhd-util scan -f -m 8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd -p
vhd=8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd capacity=8589934592
size=20992 hidden=0 parent=f8ab7260-c1ae-4007-85ec-aa2ba4a04127.vhd (not
found in scan)
I would like to create a new disk called merge.vhd that contain both vhd,
and I tried to follow this:
http://mail01.gesca.it:32224/?dmVyPTEuMDAxJiYyMzhhNTczODAyZjAwY2QxYj01OUQ2MTNBM18xNjQ0XzIxMTBfMSYmMTkwYWZkZDczNjc2NTY5PTEyMjMmJnVybD1odHRwcyUzQSUyRiUyRnNoYW5rZXJiYWxhbiUyRW5ldCUyRmJsb2clMkZyZWNvdmVyLXhlbnNlcnZlci12aGQtdm9sdW1lcyUyRg==
[root@xenser]# mkdir appo ; cp 8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd
f8ab7260-c1ae-4007-85ec-aa2ba4a04127.vhd appo ; cd appo
[root@xenser]# vhd-util coalesce -n 8d430cda-c109-4c4b-acfd-3492b8
f35cd7.vhd
but I can not have a single file.
Thanks
Re: Merge VHD
Posted by Rafael Weingärtner <ra...@gmail.com>.
Gian, I did that once, but I used the following command:
vhd-util coalesce -p -n <vhdUUID>.vhd –o /tmp/ <name>.vhd
You need the full chain of the '<vhdUUID>.vhd' in the folder you are
running this command
On Thu, Oct 5, 2017 at 8:07 AM, Mārtiņš Jakubovičs <martins-lists@hostnet.lv
> wrote:
> Hello Gian,
>
> I would suggest just to copy vdi.
>
> xe vdi-copy uuid= sr-uuid=
>
> This will create new VDI in destination SR without VHD chain.
>
>
>
> On 2017.10.05. 10:40, Gian Paolo Buono wrote:
>
>> Hi,
>>
>> I use cloudstack with XenServer and I would like to move some disks to
>> another xenserver pool.
>> I would like to join the chain of disks and create a single vhd to move
>> it. I'm doing some tests with a disk with an example chain:
>>
>> vhd-util scan -f -m 8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd -p
>> vhd=8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd capacity=8589934592
>> size=20992 hidden=0 parent=f8ab7260-c1ae-4007-85ec-aa2ba4a04127.vhd (not
>> found in scan)
>>
>> I would like to create a new disk called merge.vhd that contain both vhd,
>> and I tried to follow this:
>>
>> https://shankerbalan.net/blog/recover-xenserver-vhd-volumes/
>>
>> [root@xenser]# mkdir appo ; cp 8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd
>> f8ab7260-c1ae-4007-85ec-aa2ba4a04127.vhd appo ; cd appo
>> [root@xenser]# vhd-util coalesce -n 8d430cda-c109-4c4b-acfd-3492b8
>> f35cd7.vhd
>>
>> but I can not have a single file.
>>
>> Thanks
>>
>
>
--
Rafael Weingärtner
Re: Merge VHD
Posted by Mārtiņš Jakubovičs <ma...@hostnet.lv>.
Hello Gian,
I would suggest just to copy vdi.
xe vdi-copy uuid= sr-uuid=
This will create new VDI in destination SR without VHD chain.
On 2017.10.05. 10:40, Gian Paolo Buono wrote:
> Hi,
>
> I use cloudstack with XenServer and I would like to move some disks to another xenserver pool.
> I would like to join the chain of disks and create a single vhd to move it. I'm doing some tests with a disk with an example chain:
>
> vhd-util scan -f -m 8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd -p
> vhd=8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd capacity=8589934592 size=20992 hidden=0 parent=f8ab7260-c1ae-4007-85ec-aa2ba4a04127.vhd (not found in scan)
>
> I would like to create a new disk called merge.vhd that contain both vhd, and I tried to follow this:
>
> https://shankerbalan.net/blog/recover-xenserver-vhd-volumes/
>
> [root@xenser]# mkdir appo ; cp 8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd f8ab7260-c1ae-4007-85ec-aa2ba4a04127.vhd appo ; cd appo
> [root@xenser]# vhd-util coalesce -n 8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd
>
> but I can not have a single file.
>
> Thanks
Re: Merge VHD
Posted by Dag Sonstebo <Da...@shapeblue.com>.
Hi Gian Paolo,
Can you elaborate ? What are the errors you are seeing, what doesn’t work?
Regards,
Dag Sonstebo
Cloud Architect
ShapeBlue
On 05/10/2017, 08:40, "Gian Paolo Buono" <gi...@gesca.it> wrote:
Hi,
I use cloudstack with XenServer and I would like to move some disks to another xenserver pool.
I would like to join the chain of disks and create a single vhd to move it. I'm doing some tests with a disk with an example chain:
vhd-util scan -f -m 8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd -p
vhd=8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd capacity=8589934592 size=20992 hidden=0 parent=f8ab7260-c1ae-4007-85ec-aa2ba4a04127.vhd (not found in scan)
I would like to create a new disk called merge.vhd that contain both vhd, and I tried to follow this:
https://shankerbalan.net/blog/recover-xenserver-vhd-volumes/
[root@xenser]# mkdir appo ; cp 8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd f8ab7260-c1ae-4007-85ec-aa2ba4a04127.vhd appo ; cd appo
[root@xenser]# vhd-util coalesce -n 8d430cda-c109-4c4b-acfd-3492b8f35cd7.vhd
but I can not have a single file.
Thanks
Dag.Sonstebo@shapeblue.com
www.shapeblue.com
53 Chandos Place, Covent Garden, London WC2N 4HSUK
@shapeblue