This repository has been archived by the owner on Apr 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathREADME
58 lines (40 loc) · 1.61 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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!