LXC Storage: convert raw to LV

bizzarrone

Renowned Member
Nov 27, 2014
44
1
73
47
Milan
pinguinuzzo.wordpress.com
Is there a way to convert a raw virtual disk into a Logiacl Volume in a ThinLVM storage without passing throght a backup and restore into a different storage?
Thank you

ex:
from storge: local
/var/lib/vz/images/991/vm-991-disk-1.raw

to storage local-lvm:
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
data pve twi-aotz-- 184.84g 26.16 13.06
root pve -wi-ao---- 69.50g
swap pve -wi-ao---- 8.00g
vm-108-disk-1 pve Vwi-aotz-- 12.00g data 24.33

Regards,
Luca
 
Hi,

yes use move disk on the gui.
 
Hi Wolfstang,
I am using latest version but for LXC is not possible.

proxmox-ve: 4.3-66 (running kernel: 4.4.19-1-pve)
pve-manager: 4.3-1 (running version: 4.3-1/e7cdc165)
pve-kernel-4.4.6-1-pve: 4.4.6-48
pve-kernel-4.4.19-1-pve: 4.4.19-66
lvm2: 2.02.116-pve3
corosync-pve: 2.4.0-1
libqb0: 1.0-1
pve-cluster: 4.0-46
qemu-server: 4.0-88
pve-firmware: 1.1-9
libpve-common-perl: 4.0-73
libpve-access-control: 4.0-19
libpve-storage-perl: 4.0-61
pve-libspice-server1: 0.12.8-1
vncterm: 1.2-1
pve-qemu-kvm: 2.6.1-6
pve-container: 1.0-75
pve-firewall: 2.0-29
pve-ha-manager: 1.0-35
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u2
lxc-pve: 2.0.4-1
lxcfs: 2.0.3-pve1
criu: 1.6.0-1
novnc-pve: 0.5-8
zfsutils: 0.6.5.7-pve10~bpo80
 

Attachments

  • prox-lxc-storge.png
    prox-lxc-storge.png
    27.3 KB · Views: 6
For LXC it is not implemented yet.

but you can use qemu-img for this task.
 
This is correct.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!