Skip to content

Instantly share code, notes, and snippets.

View keepzero's full-sized avatar

KeepZero keepzero

View GitHub Profile
@keepzero
keepzero / lvmcache_on_centos6.md
Created November 22, 2017 07:48 — forked from archsh/lvmcache_on_centos6.md
Using lvmcache on CentOS6

目标

  1. 使用SSD加速系统IO;
  2. 通过LVMCACHE来将SSD作为HDD的CACHE使用;

确认安装版本是否支持lvmcache:

lvm 命令

[root@localhost mnt]# lvm segtypes

(看输出里面有cache,cache-pool即表示支持了)

@keepzero
keepzero / bcache-status
Last active December 1, 2017 07:52 — forked from kairen/bcache-status
#!/usr/bin/env python
#
# Dumb script to dump (some) of bcache status
# Copyright 2013 Darrick J. Wong. All rights reserved.
#
# This file is part of Bcache. Bcache is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT