Commit 5457912c authored by rwwalter's avatar rwwalter

now we are getting somewhere

parent b81d7f5e
......@@ -14,25 +14,26 @@ LVMcache uses the dm-cache kernel driver to create a hybrid storage LV using...
All LVs must be on the same VG
## TLDR
## TL:DR
### Creating the cache
One liner...
lvcreate --type cache --cachemode writethrough -L 20G -n dataLV_cachepool dataVG/dataLV /dev/<ssd>
lvcreate --type cache --cachemode writethrough -L 20G -n dataLV_cachepool dataVG/dataLV /dev/sda
Options Explained:
- "--type"
-- Defines the type of cache
Defines the type of cache
- "--cachemode"
-- Defines to either write to the ssd (writeback) or only use the ssd as a read cache (writethrough)
Defines to either write to the ssd (writeback) or only use the ssd as a read cache (writethrough)
### Removing The Cache
lvconvert --uncache dataVG/dataLV
lvconvert --uncache dataVG/dataLV
Flushes all writes to the cached vol and removed the caching layer
## Refrences
[Arch Wiki[(https://wiki.archlinux.org/index.php/LVM#LVM_cache)
[Arch Wiki](https://wiki.archlinux.org/index.php/LVM#LVM_cache)
......@@ -3,7 +3,7 @@ site_description: A field book by a guy in the field
site_author: Ryan W Walter
repo_url: 'https://git.onr.com/rwwalter/rybook'
repo_name: 'Rybook: LE Edition'
theme: readthedocs
nav:
- Home: 'index.md'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment