# Instalar y Configurar Writeboost/Caché ## DKMS https://github.com/akiradeveloper/dm-writeboost ``` apt install dkms -y ``` ## Writeboost DKMS module Clone repository: ``` git clone https://github.com/akiradeveloper/dm-writeboost cd dm-writeboost && make && make install ``` Check that Writeboost DKMS is installed: ``` dkms status ``` ## Writeboost tools ``` git clone https://github.com/akiradeveloper/dm-writeboost-tools apt install cargo cd dm-writeboost-tools && cargo install cp /root/.cargo/bin/* /usr/local/sbin/ ``` Reboot and check module install Create new Writeboost Cache Examples: ``` wbcreate --reformat --read_cache_threshold=127 --writeback_threshold=80 storage /dev/md0 /dev/nvme0n1 wbcreate --reformat --read_cache_threshold=127 --writeback_threshold=80 cached /dev/md1 /dev/mapper/cache-cache ``` storage/cached: new cache device name md0/md1: slow disks nvme0n1/cache-cache: fast disks (cache device) ## Crete writeboosttab and service ``` vi /etc/writeboosttab ``` ``` ## dm-writeboost "tab" (mappings) file, see writeboosttab(5). ##{DM target name} {cached block device e.g. HDD} {caching block device e.g. SSD} [options] ## ## wb_hdd /dev/disk/by-uuid/2e8260bc-024c-4252-a695-a73898c974c7 /dev/disk/by-partuuid/43372b68-3407-45fa-9b2f-61afe9c26a68 writeback_threshold=70,sync_data_interval=3600 ## storage /dev/md0 /dev/nvme0n1 writeback_threshold=80,read_cache_threshold=127 cached /dev/md1 /dev/mapper/cache-cache writeback_threshold=80,read_cache_threshold=127 ``` ``` systemctl daemon-reload systemctl enable writeboost ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up