summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2017-04-10 22:07:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2017-04-10 22:07:56 +0000
commitc942987a96449cc168c1b50397680c73998932ab (patch)
tree4c1e385f4a2529f50802b12155aa1db113474a64 /share
parentAdding debian version 20170405-1. (diff)
downloadopen-infrastructure-storage-tools-c942987a96449cc168c1b50397680c73998932ab.tar.xz
open-infrastructure-storage-tools-c942987a96449cc168c1b50397680c73998932ab.zip
Merging upstream version 20170410.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share')
l---------share/ceph-info/web/bootstrap.min.css1
l---------share/ceph-info/web/bootstrap.min.js1
l---------share/ceph-info/web/font-awesome1
-rw-r--r--share/ceph-info/web/index.html97
-rw-r--r--share/ceph-info/web/navbar.css8
-rw-r--r--share/cron/cephfs-snap1
-rw-r--r--share/doc/examples/storage-tools20
-rw-r--r--share/man/ceph-log.1.txt2
-rw-r--r--share/man/cephfs-snap.1.txt39
-rw-r--r--share/man/storage-tools.7.txt4
10 files changed, 147 insertions, 27 deletions
diff --git a/share/ceph-info/web/bootstrap.min.css b/share/ceph-info/web/bootstrap.min.css
new file mode 120000
index 0000000..ca97db2
--- /dev/null
+++ b/share/ceph-info/web/bootstrap.min.css
@@ -0,0 +1 @@
+/usr/share/javascript/bootstrap/css/bootstrap.min.css \ No newline at end of file
diff --git a/share/ceph-info/web/bootstrap.min.js b/share/ceph-info/web/bootstrap.min.js
new file mode 120000
index 0000000..22d433b
--- /dev/null
+++ b/share/ceph-info/web/bootstrap.min.js
@@ -0,0 +1 @@
+/usr/share/javascript/bootstrap/js/bootstrap.min.js \ No newline at end of file
diff --git a/share/ceph-info/web/font-awesome b/share/ceph-info/web/font-awesome
new file mode 120000
index 0000000..3437336
--- /dev/null
+++ b/share/ceph-info/web/font-awesome
@@ -0,0 +1 @@
+/usr/share/fonts-font-awesome \ No newline at end of file
diff --git a/share/ceph-info/web/index.html b/share/ceph-info/web/index.html
index b55f637..95b059d 100644
--- a/share/ceph-info/web/index.html
+++ b/share/ceph-info/web/index.html
@@ -1,34 +1,81 @@
-<html>
- <head>
- <title>ceph-info</title>
- <script type="text/javascript" src="jquery.min.js"></script>
- <script type="text/javascript" src="logtail.js"></script>
- <meta http-equiv="refresh" content="300" />
- </head>
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
+ <meta name="description" content="storage-tools: ceph-info">
+ <meta name="author" content="open-infrastructure.net">
+ <link rel="icon" type="image/png" href="favicon.png" />
- <body>
- <h1>ceph-info</h1>
+ <title>storage-tools: ceph-info</title>
- <h2>$ ceph --watch</h2>
- <div id="header"><a id="pause" href='#'>Pause</a></div>
- <pre id="data">Loading...</pre>
+ <!-- Bootstrap core CSS -->
+ <link href="bootstrap.min.css" rel="stylesheet">
- <h2>$ ceph status</h2>
- <p><iframe src="ceph-status.txt" frameborder="0" height="250" width="95%"></iframe></p>
+ <!-- Custom styles for this template -->
+ <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet">
+ <link href="navbar.css" rel="stylesheet">
- <h2>$ ceph df</h2>
- <p><iframe src="ceph-df.txt" frameborder="0" height="250" width="95%"></iframe></p>
+ <meta http-equiv="refresh" content="300" />
+ </head>
- <h2>$ ceph osd df</h2>
- <p><iframe src="ceph-osd-df.txt" frameborder="0" height="250" width="95%"></iframe></p>
+ <body>
- <h2>$ ceph osd tree</h2>
- <p><iframe src="ceph-osd-tree.txt" frameborder="0" height="250" width="95%"></iframe></p>
+ <div class="container">
- <h2>$ ceph version</h2>
- <p><iframe src="ceph-version.txt" frameborder="0" height="25" width="95%"></iframe></p>
+ <!-- Static navbar -->
+ <nav class="navbar navbar-default">
+ <div class="container-fluid">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="https://open-infrastructure.net/software/storage-tools" style="color: black;"><b><i class="fa fa-fw fa-hdd-o" style="color: black;"></i> storage-tools: ceph-info</b></a>
+ </div>
+ </div><!--/.container-fluid -->
+ </nav>
- <h3>Last Updated:</h3>
- <p><iframe src="date.txt" frameborder="0" height="25" width="95%"></iframe></p>
- </body>
+ <!-- Content -->
+ <div id="header"><h2>$ ceph --watch <a class="pull-right" id="pause" href='#'>Pause</a></h2></div>
+<pre id="data">Loading...</pre>
+
+ <h2>$ ceph status</h2>
+ <p><iframe src="ceph-status.txt" frameborder="0" height="250" width="95%"></iframe></p>
+
+ <h2>$ ceph df</h2>
+ <p><iframe src="ceph-df.txt" frameborder="0" height="250" width="95%"></iframe></p>
+
+ <h2>$ ceph osd df</h2>
+ <p><iframe src="ceph-osd-df.txt" frameborder="0" height="250" width="95%"></iframe></p>
+
+ <h2>$ ceph osd tree</h2>
+ <p><iframe src="ceph-osd-tree.txt" frameborder="0" height="250" width="95%"></iframe></p>
+
+ <h2>$ ceph version</h2>
+ <p><iframe src="ceph-version.txt" frameborder="0" height="25" width="95%"></iframe></p>
+
+ <h3>Last Updated:</h3>
+ <p><iframe src="date.txt" frameborder="0" height="25" width="95%"></iframe></p>
+ <!-- /Content -->
+
+ <hr />
+
+ <footer>
+ <p><a class="text-muted" href="mailto:software@lists.open-infrastructure.net?subject=storage-tools/ceph-info:%20Bug%20Report"><i class="fa fa-fw fa-bug" style="color: black;"></i> Report a Bug</a> <a class="text-muted pull-right" href="https://sources.open-infrastructure.net/software/storage-tools"><i class="fa fa-fw fa-heart" style="color: #cc0000;"></i> Source Code</a></p>
+ </footer>
+
+ </div> <!-- /container -->
+
+ <!-- Bootstrap core JavaScript -->
+ <script src="jquery.min.js"></script>
+ <script>window.jQuery || document.write('<script src="jquery.min.js"><\/script>')</script>
+ <script src="bootstrap.min.js"></script>
+ <!-- Custom scripts for this template -->
+ <script src="logtail.js"></script>
+ </body>
</html>
diff --git a/share/ceph-info/web/navbar.css b/share/ceph-info/web/navbar.css
new file mode 100644
index 0000000..d219524
--- /dev/null
+++ b/share/ceph-info/web/navbar.css
@@ -0,0 +1,8 @@
+body {
+ padding-top: 20px;
+ padding-bottom: 20px;
+}
+
+.navbar {
+ margin-bottom: 20px;
+}
diff --git a/share/cron/cephfs-snap b/share/cron/cephfs-snap
index 40340b6..ced26c7 100644
--- a/share/cron/cephfs-snap
+++ b/share/cron/cephfs-snap
@@ -2,3 +2,4 @@
0 0 * * * root [ -e /usr/bin/cephfs-snap ] && /usr/bin/cephfs-snap daily
0 0 * * 1 root [ -e /usr/bin/cephfs-snap ] && /usr/bin/cephfs-snap weekly
0 0 * 1 * root [ -e /usr/bin/cephfs-snap ] && /usr/bin/cephfs-snap monthly
+0 0 1 1 * root [ -e /usr/bin/cephfs-snap ] && /usr/bin/cephfs-snap yearly
diff --git a/share/doc/examples/storage-tools b/share/doc/examples/storage-tools
new file mode 100644
index 0000000..c74cb78
--- /dev/null
+++ b/share/doc/examples/storage-tools
@@ -0,0 +1,20 @@
+# /etc/default/storage-tools
+
+CEPH_INFO="true"
+CEPH_LOG="true"
+
+CEPHFS_SNAP="true"
+CEPHFS_SNAP_DIRECTORIES=""
+
+# keep hourly snapshots for 1 week: (24 * 7) + 1
+CEPHFS_SNAP_HOURLY="169"
+# keep daily snapshots for 1 month: (31) + 1
+CEPHFS_SNAP_DAILY="32"
+# keep weekly snapshots for 6 months: (4 * 6) + 1
+CEPHFS_SNAP_WEEKLY="25"
+# keep monthly snapshots for 1 year: (12) + 1
+CEPHFS_SNAP_MONTHLY="13"
+# keep yearly snapshots for 10 year: (10) + 1
+CEPHFS_SNAP_YEARLY="11"
+
+IRK_TARGETS=""
diff --git a/share/man/ceph-log.1.txt b/share/man/ceph-log.1.txt
index c3fe237..997db04 100644
--- a/share/man/ceph-log.1.txt
+++ b/share/man/ceph-log.1.txt
@@ -39,7 +39,7 @@ administrator watch everything that is happening in a ceph cluster, such as the
health state of the cluster, any cluster changes and any commands and mounts
from clients that are happening.
-Unfortunatly the 'ceph -w' command is a tool that a system administrator uses
+Unfortunately the 'ceph -w' command is a tool that a system administrator uses
for real time information, means there is no history or looking backward what
happened at a given time.
diff --git a/share/man/cephfs-snap.1.txt b/share/man/cephfs-snap.1.txt
index 972bcd0..06b1ab7 100644
--- a/share/man/cephfs-snap.1.txt
+++ b/share/man/cephfs-snap.1.txt
@@ -29,7 +29,9 @@ cephfs-snap - create CephFS snapshots periodically
SYNOPSIS
--------
-*cephfs-snap* {hourly|daily|weekly|monthly}
+*cephfs-snap*
+
+*cephfs-snap* [hourly|daily|weekly|monthly]
DESCRIPTION
@@ -40,13 +42,48 @@ backups.
The cephfs-snap program is a simple tool to do this periodically.
+CONFIGURATION
+-------------
+cephfs-snap is configured in /etc/default/storage-tools. The following variables are used:
+
+*CEPHFS_SNAP*::
+ Boolean, either true or false. If set to false (default), cephfs will do nothing.
+
+*CEPHFS_SNAP_DIRECTORIES*::
+ List of one or more space separated directories. If no directory is specified, cephfs-snap will do nothing.
+
+*CEPHFS_SNAP_HOURLY*::
+ Integer, number of how many most recent hourly snapshots are to be kept at any given time. Any older snapshots will be removed. Note: specify one more than you wan to keep, e.g. 25 for one day of hourly snapshots alongside the most current one.
+
+*CEPHFS_SNAP_DAILY*::
+ Integer, number of how many most recent daily snapshots are to be kept at any given time.
+
+*CEPHFS_SNAP_WEEKLY*::
+ Integer, number of how many most recent weekly snapshots are to be kept at any given time.
+
+*CEPHFS_SNAP_MONTHLY*::
+ Integer, number of how many most recent monthly snapshots are to be kept at any given time.
+
+*CEPHFS_SNAP_YEARLY*::
+ Integer, number of how many most recent yearly snapshots are to be kept at any given time.
+
+*IRK_TARGETS*::
+ List of space separated IRC channels to send notifications to, e.g.: irc://irc.oftc.net:6668/open-infrastructure
+
+
FILES
-----
The following files are used:
+*/etc/cron.d/cephfs-snap*::
+ Cron file.
+
*/etc/default/storage-tools*::
Configuration file.
+*/var/log/storage-tools/cephfs-snap*::
+ Log files.
+
SEE ALSO
--------
diff --git a/share/man/storage-tools.7.txt b/share/man/storage-tools.7.txt
index 20bae0b..a5133d1 100644
--- a/share/man/storage-tools.7.txt
+++ b/share/man/storage-tools.7.txt
@@ -54,6 +54,10 @@ SOURCE
2. git clone https://sources.open-infrastructure.net/software/storage-tools
3. cd storage-tools && sudo make install
+DEBIAN 10 (BUSTER) AND NEWER
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ * sudo apt install storage-tools
+
DEVELOPMENT
-----------