<div dir="ltr"><div><div><div>Hi,<br><br></div>I am testing LVM Cache but I am completely concerned about obtained iozone results which are worse than without using an SSD card, so my guess is that I am doing something wrong.<br><br></div>We have a machine with 2 storage devices sda (LSI Controller 1: RAID6(16+2)+RAID6(16+2)) & sdb (LSI Controller 2: RAID6(16+2)+RAID6(16+2)), 6TB Disks. Hence, we have a ~384TB (sda = 192TB + sdb = 192TB)<br><br></div>On the other hand, we purchased a 400GB SSD card, which is shown as /dev/nvme0n1. I created 2 partitions 356.61 GiB and 16.00 GiB. I guess this shouldn't be necessary but I created a 16GiB partition for cache metadata.<br><div><br>vgcreate dcvg_a /dev/sda /dev/sdb<br>  lvcreate -i 2 -I8192 -n dcpool -l 100%PVS -v dcvg_a /dev/sda /dev/sdb<br>lvcreate -n cache0meta -l 100%PVS dcvg_a /dev/nvme0n1p1 <br>lvcreate -n cache0 -l 100%PVS dcvg_a /dev/nvme0n1p2 <br> <span class="">lvconvert</span> --type cache-pool --poolmetadata dcvg_a/cache0meta dcvg_a/cache0<br><br></div><div>I also tried with a single SSD partition:<br></div><div><br>vgcreate dcvg_a /dev/sda /dev/sdb<br>lvcreate -n dcpool -l 100%PVS dcvg_a<br>lvcreate --type cache -l 100%PVS -n cache0 dcvg_a/dcpool /dev/nvme0n1<br><div><div><br></div><div>So here are my questions:<br></div><div>- I guess both methods are the same, isn't it? The main difference is to define or not a specific/custom partition for the pool metadata.<br>- Are they correct and which method is the recommended with 1 SSD? Is there any "this is the best" recommended setup?<br></div><div>- Default mode is 'writethrough' which should be safer, but I do not see any improvement of performance on reads and neither on writes (I used iozone). Instead of this, performance becomes really bad. Why?<br></div><div>- I would like to set up 'writeback', but for a single SSD (so no RAID1 for SSD) which are the risks? I can expect that current data being written will be lost, but no data corruption can be found in the Origin LV, isn't it?<br></div><div>- writethrough / writeback caches can be hot-removed from the LVM? As I can see, it seems so.<br></div><div>- Any suggestions?<br><br></div><div>Thanks a lot for your help,<br><div><div>-- <br><div class="gmail_signature">Marc Caubet Serrabou<br>PIC (Port d'Informació Científica)<br>Campus UAB, Edificio D<br>E-08193 Bellaterra, Barcelona<br>Tel: +34 93 581 33 22<br>Fax: +34 93 581 41 10<br><a href="http://www.pic.es" target="_blank">http://www.pic.es</a><br>Avis - Aviso - Legal Notice: <a href="http://www.ifae.es/legal.html" target="_blank">http://www.ifae.es/legal.html</a></div>
</div></div></div></div></div></div>