Skip to content

dahefanteng/bcache-ctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WHY

Integrate multi tools to a single one. Display the output in a more readable way.

Install

    1. Inatall the dependence. For Centos:
    #yum install centos-release-yum4 -y 
    #yum install libblkid libblkid-devel libuuid libuuid-devel libsmartcols libsmartcols-devel -y
    For OpenSUSE:
    #zypper install libblkid libblkid-devel libuuid libuuid-devel libsmartcols libsmartcols-devel 
    1. Clone the repo.
    #git clone https://github.com/dahefanteng/bcache-ctl.git 
    1. Build
    #cd bcache-ctl 
    #make

Usage:

'bcache-ctl --help'
  
Usage:bcache-ctl [SUBCMD]
show		show all bcache devices in this host
tree		show active bcache devices in this host
make		make regular device to bcache device
regist 		regist device to kernel
unregist	unregist device from kernel
attach		attach backend device(data device) to cache device
detach		detach backend device(data device) from cache device
set-cachemode	set cachemode for backend device

About

Command line tools for manage bcache devices

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published