![]() ![]() ![]() Lvconvert -type cache -cachepool RootVG/cryptroot_cache RootVG/cryptrootĬryptsetup luksFormat -type luks2 /dev/RootVG/cryptroot Lvcreate -type cache-pool -l 100%PVS -n cryptroot_cache RootVG /dev/sda3 Lvcreate -l 100%PVS -n cryptroot RootVG /dev/sdb1 With the following commands: pvcreate /dev/sda3 /dev/sdb1 I set up an encrypted root filesystem across an SSD partition ( /dev/sda3) You will have a your_name LV that you can use like any other LV,Īnd several internal LVs that you can see with lvs -a YourVG. ![]() Lvconvert -type cache -cachepool YourVG/your_name_cache YourVG/your_name Lvcreate -type cache-pool -l 100%PVS -n your_name_cache YourVG /dev/YourSSD ![]() The gist of it is, assuming you already have a VG spanning both drives: lvcreate -l 100%PVS -n your_name YourVG /dev/YourHDD e., you only get as much space as is on the HDD),īut frequently used blocks and metadata are cached on the SSD to improve performance. What you can do in recent-ish LVM versions is create one “origin” LV on the HDD and one “cache pool” LV on the SSD,Īnd then combine it into a single “cache” LV. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |