X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-wiki.git;a=blobdiff_plain;f=input%2Fhowto%2Flvm.creole;fp=input%2Fhowto%2Flvm.creole;h=ef201e6e3de3e4fd42991d56f9253c4b24ed68aa;hp=0000000000000000000000000000000000000000;hb=e65ba8b85b4598adb9aba5d21468a0f4e52fae1e;hpb=0005b5d0b23ab73cb26f508733fbc3c6d54de56b diff --git a/input/howto/lvm.creole b/input/howto/lvm.creole new file mode 100644 index 0000000..ef201e6 --- /dev/null +++ b/input/howto/lvm.creole @@ -0,0 +1,21 @@ +== Random LVM stuff == + +=== LV caching === + +We use LV caching at least on godard.d.o and smit.d.o. Here are the setup instructions: + +* Make sure that both the HDD and SSD are in the same volume group. + +* Make sure module loading is enabled + +* Run the following command to enable LV caching for the srv LV in the vg0 VG, assuming the SSD is /dev/sda3: + +{{{ + lvcreate --type cache --cachemode writethrough -L 120G -n srv_cachepool vg0/srv /dev/sda3 +}}} + +* It is currently not possible to resize a LV with a LVM cache. The workaround is to disable LV caching, resize the LV and reenable it. LV caching can be disabled with the following command: + +{{{ + lvconvert --uncache vg0/srv +}}}