ubuntu12.04上安装flashcahce

os:ubuntu12.04 LTS

kernel:3.5.0.26-generic

1、下载flashcache

https://github.com/facebook/flashcache/

2、unzip flaschache-master.zip

3、cd ./flashcache-master

4、make(在当前运行的内核中编译flashcache模块)

5、make install(安装flashcache的相关模块、工具以及帮助页)

6、modprobe flashcache(初始化安装好的flashcache模块)

7、dmesg | tail(检测flashcache模块是否成功初始化)

flashcache:flashcache-2.0 initialized

8、成功安装之后,就可以通过flashcache_create创建一个虚拟设备

flashcache_create -p back cache_dev /dev/sdf /dev/sda

/dev/sdf 为SSD盘/dev/sda 为普通硬盘

提示:Flashcache metadata will use 951MB of your 15977MB main memory,表示新建虚拟设备成功

原文地址:https://www.cnblogs.com/javawebsoa/p/2987501.html