Hi,
on my test system I have a 20GB Disk, splitted into 18.5GB lv_root and 1GB lv_swap.
Production systems look the same, just with larger disks.
I've set storage in proxmox as directory /var/lib/vz.
It has been fine, but I want to use snapshots, so I have to use lvm. Is there a way to switch from directory to lvm?
My plan was to shut down the containers, do a snapshot and restore them on lvm, but if I add lv_root as storage option in proxmox, it shows disk usage is 100%.
on my test system I have a 20GB Disk, splitted into 18.5GB lv_root and 1GB lv_swap.
Production systems look the same, just with larger disks.
I've set storage in proxmox as directory /var/lib/vz.
It has been fine, but I want to use snapshots, so I have to use lvm. Is there a way to switch from directory to lvm?
My plan was to shut down the containers, do a snapshot and restore them on lvm, but if I add lv_root as storage option in proxmox, it shows disk usage is 100%.
Code:
Disk /dev/sda: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1606d709
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 976895 974848 476M 83 Linux
/dev/sda2 976896 20969471 19992576 9.5G 8e Linux LVM
/dev/sda3 20969472 41943039 20973568 10G 8e Linux LVM
Code:
root@proxmox:~# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 vg lvm2 a-- 9.53g 0
/dev/sda3 vg lvm2 a-- 10.00g 0
root@proxmox:~# vgs
VG #PV #LV #SN Attr VSize VFree
vg 2 2 0 wz--n- 19.53g 0
root@proxmox:~# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lv_root vg -wi-ao---- 18.53g
lv_swap vg -wi-ao---- 1.00g