menuimage

Description

Scenario

Usage

Example

Options

Kudos

Changelog

Download

Donation

My_Other_Sites

My_Programs

Comments

lv-convert2cache v0.0.0 [11 Jan 2022] by Dominic

Description

Wrapper that converts an existing LVM logical volume (LV) into a read/write 'cache LV'.

Scenario

- an existing LV (on an existing VG) currently uses one or more PVs on one or more slower devices
- we want to make this LV faster by (optionally creating and) using a PV on a faster device as a cache
- of 2 possible cache methods, this uses dm-cache (dm-writecache only speeds up writing not reading)
- of 2 possible cache options, this uses cachevol (cachepool only better with cache data blocks & metadata on different devices)

Usage

lv-convert2cache [options] existing_VG/existing_LV new_PV "further_options_for_cache_creation"

Example

./lv-convert2cache timedicer/home /dev/sda1 "-c 512"

Options

-h see this help
-l see changelog

Kudos

The following pages were helpful in devising this utility -
https://blog.delouw.ch/2020/01/29/using-lvm-cache-for-storage-tiering/
https://manpages.ubuntu.com/manpages/focal/man7/lvmcache.7.html
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_and_managing_logical_volumes/enabling-caching-to-improve-logical-volume-performance_configuring-and-managing-logical-volumes

Changelog

0.0.0 [11 Jan 2022] - Initial version

Download lv-convert2cache

Donation

I have provided this software free gratis and for nothing. If you would like to thank me with a contribution, please let me know and I will send you a link. Thank you!

My Other Sites

My Programs

Here is a selection of some (other) programs I have written, most of which run from the command line (CLI), are freely available and can be obtained by clicking on the links. Dependencies are shown and while in most cases written for a conventional Linux server, they should run on a Raspberry Pi, and many can run under Windows using Windows Subsystem for Linux (WSL) or Cygwin. Email me if you have problems or questions, or if you think I could help with a programming requirement.

Backup Utilities

Debian/Ubuntu kernel and LVM Utilities

Dellmont - VoIP and Mobile Phone Account Utilities

Miscellaneous Programs

Comments

If you have a comment or question, please email me, thank you.

No comments yet for '/programs/help/lv-convert2cache.sh.php'