<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">You have to create a qcow2 disk as I
said. You have to do so in a Directory type of storage.<br>
<br>
On 24/02/15 12:06, Mailing Lists wrote:<br>
</div>
<blockquote
cite="mid:CAD+doCwJ_1mQdF6VQLsFPbqnN_MYjGOpMHyRvmU0kWT9J=+4Qg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Eneko,
<div><br>
</div>
<div>Thanks for your reply. I'm a little unsure how to replace
my new vm with the empty one I created. Using a regular file
system like ext4 this is easy as I can just cd to the mounted
file system and move my image over the empty one, but with the
ceph object store I can't seem to find the mount point or the
image I need to replace?</div>
<div><br>
</div>
<div>I have 3 servers, each have 2 disks, here's an example from
one of the servers (ceph and proxmox are running on the same
boxes):</div>
<div><br>
</div>
<div>
<div>/dev/sdb1 2.8T 82G
2.7T 3% /var/lib/ceph/osd/ceph-1</div>
<div>/dev/sdc1 2.8T 102G
2.7T 4% /var/lib/ceph/osd/ceph-4</div>
</div>
<div><br>
</div>
<div>If I look inside /var/lib/ceph/osd/ceph-1/current where I
believe some my data is, I see many _head directories with
even more files inside:</div>
<div><br>
</div>
<div>
<div>/var/lib/ceph/osd/ceph-1/current# ls -l 9.da_head/ |head</div>
<div>total 813816</div>
<div>-rw-r--r-- 1 root root 4194304 Jan 24 06:50
rbd\udata.1598342ae8944a.00000000000000a3__head_C767A8DA__9</div>
<div>-rw-r--r-- 1 root root 4194304 Jan 31 06:36
rbd\udata.1598342ae8944a.000000000000123a__head_1FA2DDDA__9</div>
<div>-rw-r--r-- 1 root root 4194304 Jan 27 06:48
rbd\udata.16a7622ae8944a.00000000000000dd__head_ACDFF8DA__9</div>
</div>
<div>...</div>
<div><br>
</div>
<div>A little lost :)</div>
<div><br>
</div>
<div>Thanks</div>
<div>Marc</div>
<div><br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Feb 24, 2015 at 12:52 PM,
Eneko Lacunza <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:elacunza@binovo.es" target="_blank">elacunza@binovo.es</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,
<div>
<div class="h5"><br>
<br>
On 24/02/15 11:42, Mailing Lists wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I'm running proxmox with ceph storage backend and
I'm looking to import an existing vm into proxmox.
I've converted it to kvm/qcow2 and created a new vm
in proxmox with similar disk parameters but I cannot
figure out how to mount the ceph volume so I can
copy over the existing vm image.<br>
<br>
Can anyone give me any pointers?<br>
<br>
Current vm I want to replace in proxmox says:
ceph-store-1:vm-110-disk,size=32G<br>
<br>
</blockquote>
<br>
</div>
</div>
Remove that (empty) RBD disk. Create an empty qcow2 disk
in the VM, then replace the created empty file with the
one you have. Finally select the disk in proxmox interface
and move it to ceph storage.<br>
<br>
Cheers<span class="HOEnZb"><font color="#888888"><br>
Eneko<br>
<br>
-- <br>
Zuzendari Teknikoa / Director Técnico<br>
Binovo IT Human Project, S.L.<br>
Telf. 943575997<br>
943493611<br>
Astigarraga bidea 2, planta 6 dcha., ofi. 3-2; 20180
Oiartzun (Gipuzkoa)<br>
<a moz-do-not-send="true" href="http://www.binovo.es"
target="_blank">www.binovo.es</a><br>
<br>
_______________________________________________<br>
pve-user mailing list<br>
<a moz-do-not-send="true"
href="mailto:pve-user@pve.proxmox.com"
target="_blank">pve-user@pve.proxmox.com</a><br>
<a moz-do-not-send="true"
href="http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user"
target="_blank">http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user</a><br>
</font></span></blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Zuzendari Teknikoa / Director Técnico
Binovo IT Human Project, S.L.
Telf. 943575997
943493611
Astigarraga bidea 2, planta 6 dcha., ofi. 3-2; 20180 Oiartzun (Gipuzkoa)
<a class="moz-txt-link-abbreviated" href="http://www.binovo.es">www.binovo.es</a></pre>
</body>
</html>