Git Product home page Git Product logo

lvmts's Introduction

Application for monitoring LVM volumes and moving blocks based on usage to 
faster and slower storage. In other words, Hierarchical Storage Manager
utilizing LVM on Linux.

Dependencies:
=============
lvm
blktrace
confuse
debugfs (mounted in /sys/kernel/debug/)

Compiling:
==========
make

Usage:
======
Run collector daemon:

MAKE SURE YOU HAVE debugfs MOUNTED!

./lvmtscd -f lvm-volume.lvmts -l /dev/lvm-group/lvm-volume

After some time you can output the stats using cat (by default it will output
100 most active blocks with blocks being logical extents):

./lvmtscat --LE lvm-volume.lvmts

To get 25 most active physical extents formatted as a parameter to pvmove, use following
command:

./lvmtscat -b 25 --pvmove --VG VolumeGroupName --LV LogicalVolumeName lvm-volume.lvmts

Using lvmtsd
============

While collecting stats and using lvmtscat for looking at most active blocks
gives much information, it doesn't do anything.

(it's a hack now, it will be made more user-friendly later)

First, edit doc/sample.conf file, the title of the volume section should have
the same name as file created by lvmtscd, sans .lvmts extension, rest of the
options is explained there.

Currently only one volume is supported, additional "volume" sections will be
ignored.

First, run lvmtscd in the same dir as is doc/. Wait for it to write some
statistics (if your system isn't active, wait at least half an hour, with
busy system, 10min should suffice). If the file has gotten big, just run

./lvmtsd

It will move most active extents to fastest storage and then keep it updated
according to rules in sample.conf

Now you may enjoy your hybrid storage!

lvmts's People

Contributors

tomato42 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.