LVM-caching in proxmox

tenhi_shadow

Active Member
Dec 21, 2016
3
0
41
34
Hello Team,

Could you please help me with caching in proxmox VE

1. I`ve created cache pool
lvcreate --type cache-pool -n cachelv -L10G somevg

2. I`ve converted it for using with my real LV
lvconvert --type cache --cachepool somevg/cachelv somevg/vm-100-disk-1

LV state:
root@myhostname:/dev/mapper# lvs | grep cache
vm-100-disk-1 somevg Cwi-a-C--- 30,00g [cachelv] [vm-100-disk-1_corig] 0,00 10,74 0,00

VM config
root@myhostname:~# grep lvm /etc/pve/qemu-server/100.conf
virtio1: lvm:vm-100-disk-1,backup=0,cache=writethrough,iothread=1,size=30G

So, there is a question: is it normal to set cache=writethrough in vm-config(via web, or via editing file, doesnt` matter).
I`m affraid of twice caching or something like this. We have set it firstly on LVM-level, secondly on kvm level and maybe in guest OS (it`s Windows, who khows how does it works :) )
Could you please advice
 
Last edited:
Hi,

If you have installed a cache on LVM I would set VM cache to none.
 

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!