Flashcache
制作步骤
步骤: 1. qemu-img create -f raw /tmp/test.img 1G 2. dd if=/dev/zero of=/tmp/test.img bs=1M count=1024 3. losetup -f /tmp/test.img //将 test.img 虚拟成第一个未使用的回环设备 4. losetup -a //显示所有已经使用的回环设备状态 5. flashcache_create -p back cachedev /dev/loop0 /dev/vdb 6. sudo mkfs.ext4 /dev/mapper/cachedev 7. sudo mount /dev/mapper/cachedev /mnt
相关链接
- http://godorz.info/category/programming/
- http://www.ningoo.net/html/2012/all_things_about_flashcache_4.html