Questions tagged [lvmcache]

A new technique which in theory take your existing logical volumes and convert them to be cached devices.

Quoted from http://man7.org/linux/man-pages/man7/lvmcache.7.html

The cache logical volume type uses a small and fast LV to improve the performance of a large and slow LV. It does this by storing the frequently used blocks on the faster LV. LVM refers to the small fast LV as a cache pool LV. The large slow LV is called the origin LV. Due to requirements from dm-cache (the kernel driver), LVM further splits the cache pool LV into two devices - the cache data LV and cache metadata LV. The cache data LV is where copies of data blocks are kept from the origin LV to increase speed. The cache metadata LV holds the accounting information that specifies where data blocks are stored (e.g. on the origin LV or on the cache data LV). Users should be familiar with these LVs if they wish to create the best and most robust cached logical volumes.

9 questions
11
votes
2 answers

How to install Ubuntu with both disk encryption AND SSD caching

I'm using Ubuntu in a corporate environment, and our security policy states that we have to use full disk encryption. I've also got a laptop with a 32GB mSATA SSD and 750GB of spinning rust. My current installation uses bcache to leverage this,…
Adrian
  • 5,256
3
votes
1 answer

How to add an SSD cache to an encrypted HDD for desktop/GUI use?

SSHDs seem to be stuck at 4TB and 8GB SSD cache (one model is available with 1TB/32GB) while bigger SSDs are widely available and some solutions exist to to pair an HDD with an SSD in Linux. I'm looking for a solution that is easy to use on a…
LiveWireBT
  • 29,597
3
votes
2 answers

lvmcache failed to boot: "device-mapper: cache-policy: unknown policy type"

TL;TR Failed to boot with lvm2's new default cache-pool setting cache-policy-smq The problem I have created a lvm disk with lvmcache on SSD drive on ubuntu 16.04 Following this, but failed to mount my root volume after reboot server. I can boot…
jcppkkk
  • 163
2
votes
1 answer

Ubuntu 18.04 won't boot when LVM volumes are cached

I have an Ubuntu 18.04 PC with the following disk layout : ====================== lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 931,5G 0 disk └─sda1 8:1 0 931,5G 0 part …
2
votes
0 answers

slow startup, failed to connect to lvmetad

Ubuntu 18.04 after install seems to be doing quite OK, but the startup is slow. It's almost minute to get to "cryptluks screen", to enter pass to decrypt lvm partition. I noticed unknown error to me, so maybe it can be related? Failed to connect to…
1
vote
1 answer

A Question about LVM volume and storage management

Hi, I have 2 block devices: a 256G SSD and an 1TB HDD. I want to do: *Use the SSD storage for actively accessed and speed demanding files/directories such as runtime files, main system resources; and the HDD for storing sparsely accessed …
zLadin
  • 11
1
vote
1 answer

How to setup lvm to cache /root on 18.04?

I have two drives and can use lvmcache to cache the hard drive with the SSD with 16.04. However, when I follow the same process with 18.04, I can create the lvmcache but when I reboot, I get the Grub2 screen and prompt. How do I setup lvmcache to…
cabryan
  • 21
0
votes
1 answer

lvm commands report no data after lvextend

Had a weird issue happen yesterday on our Ubuntu 18.04 server. One of the team tried to add 30G of space to this LV: Disk /dev/mapper/rootvg-pgexecstsqllv: 32 GiB, 34359738368 bytes, 67108864 sectors Units: sectors of 1 * 512 = 512 bytes Sector size…
S. Nixon
  • 472
0
votes
2 answers

lvchange -ay on a lvmcached logical volume memory leak Ubuntu 22.04

Ubuntu 22.04, I configured SSD cached LVs using lvmcache (type writecache) following lvmcache man page. The system boots fine but the cached LVs status is always NOT available. LV Path /dev/vg_fast3/disk3_lv LV Name …