The following steps show how to install flashcache3.1.1 on ubuntu12.04 desktop
1. Get the source code from https://github.com/facebook/flashcache
2. Extract the source code from the file (flashcache.zip)
3. cd ./flashcache
4. sudo make
5. sudo make install
6. modprobe flashcache; to install the flashcache module
7. dmesg | tail to check if the module is initialized correctly
8. create the wanted cache by the following command:
flashcache_create -p back testcache /dev/sdb /dev/sdc1
Here, the sdb is the ssd device, and sdc1 is the hdd we want to accelerate, and sdc1 can not be mounted before this command or the command will fail.
9. If the step 8 is successfully done, then we can find a file in /dev/mapper named testcache. So if we want to use sdc1 then we just need to mount
/dev/mapper/testcache, for example. mount /dev/mapper/testcache /mnt; then we can use sdc1 with more faster speed.