SSD caching: Difference between revisions
Jump to navigation
Jump to search
Created page with "Follow the instructions at [http://www.bradfordembedded.com/2015/03/lvmcache/] to enable SSD caching If the dom0 is running Debian, this requires Jessie. Make sure that you'r..." |
No edit summary |
||
| Line 2: | Line 2: | ||
If the dom0 is running Debian, this requires Jessie. Make sure that you're not running some sort of crazy 9.x version of lvm2. | If the dom0 is running Debian, this requires Jessie. Make sure that you're not running some sort of crazy 9.x version of lvm2. | ||
==Setting up caching== | |||
Mainly, this involves steps like: | |||
sudo lvcreate -n xcache -L3.6G lvmssd /dev/mdX | |||
sudo lvcreate -n xcachemeta -L32M lvmssd /dev/mdX | |||
sudo lvconvert --type cache-pool --cachemode writeback --poolmetadata lvmssd/xcachemeta lvmssd/xcache | |||
sudo lvconvert --type cache --cachepool lvmssd/xcache lvm1/x | |||
Note that mdX is the SSD RAID drive | |||
lvremove /dev/lvm1/xcache | |||
Latest revision as of 15:26, 6 November 2015
Follow the instructions at [1] to enable SSD caching
If the dom0 is running Debian, this requires Jessie. Make sure that you're not running some sort of crazy 9.x version of lvm2.
Setting up caching
Mainly, this involves steps like:
sudo lvcreate -n xcache -L3.6G lvmssd /dev/mdX sudo lvcreate -n xcachemeta -L32M lvmssd /dev/mdX sudo lvconvert --type cache-pool --cachemode writeback --poolmetadata lvmssd/xcachemeta lvmssd/xcache sudo lvconvert --type cache --cachepool lvmssd/xcache lvm1/x
Note that mdX is the SSD RAID drive
lvremove /dev/lvm1/xcache