Flashcache

来源:互联网 发布:windows tracert 实现 编辑:程序博客网 时间:2024/05/29 19:53

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

1 0
原创粉丝点击