akiradeveloper / dm-writeboost

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

Trouble locating dmsetup #187

Closed allenjhan closed 7 years ago

allenjhan commented 7 years ago

I'm currently trying to use dm-writeboost and I am having some trouble locating the command for dmsetup.

First, I zero the first block on the ssd: sudo dd if=/dev/zero of=/dev/sdc count=1.

Next, I use command sudo dmsetup create mylv --table "0 `blockdev --getsize /dev/sdb` writeboost /dev/sdb /dev/sdc".

Terminal replies sudo: dmsetup: command not found.

I checked the source and there is nothing that looks like a command line tool dmsetup. This seems very odd, and I'm having some trouble understanding if I'm missing something.

I checked dm-writeboost-tools, and it doesn't look like where dmsetup is located. dmsetup I think should be here in the dm-writeboost source code. But I cannot find it and my computer cannot find it either.

Sorry, I am a beginner.

akiradeveloper commented 7 years ago

I guess you should set PATH to the dmsetup?

allenjhan commented 7 years ago

Thanks for the reply. I didn't realize dmsetup is packaged with Linux. I'll install the dependencies and then it should work.