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
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: