akiradeveloper / dm-writeboost

Log-structured Caching for Linux
GNU General Public License v2.0
120 stars 18 forks source link

Using dm-writeboost with lvmthin #209

Open justnx opened 4 years ago

justnx commented 4 years ago

Hi,

good project so far. I really like your approach.

I want you to ask if it's out of the box possible to use dm-writeboost in combination with lvm or lvmthin. I had no luck so far. So any hints for doing this would be very nice.

akiradeveloper commented 4 years ago

@justnx Yes, you can. You can use lvm devices as either underlying device and that's actually the way I test this driver.

akiradeveloper commented 4 years ago

I don't know what you guys are trying to do. LVM device is just a DM device that's managed by tool called LVM. Since stacking DM devices is valid. There is nothing you have to do any more.

This might help: dm-writeboost can't be managed by LVM and there is no plan to do so. Instead users manage dm-writeboost by other userland tools. All you can do is creating LVM devices and then create WB device using them and the opposite is impossible because LVM devices are created at boot time. So, it you are trying to stack some LVM device (like dm-thin) above WB device this would be failure because the WB device is no where to be seen at the momemt.

justnx commented 4 years ago

Hmm i'm wondering how is lvmcache with dm-cache doing this. Cant we just use dm-writeboost as an replacement of dm-cache for such purposes?

bash99 commented 4 years ago

@akiradeveloper dm-writeboost under lvm-thin can be used in KVM host, all vm can have a performance-boost thin provisioning storage. otherwise you have to set it up one by one. Another choice is use qcow2 format on dm-writeboost backed file-system, but it's not as fast as raw device on lvm-thin.