* Added the anvil-configure-host man page.

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 2 years ago
parent 7eff8f0801
commit 55dd28e7f1
  1. 2
      man/Makefile.am
  2. 4
      man/anvil-boot-server.8
  3. 4
      man/anvil-check-memory.8
  4. 30
      man/anvil-configure-host.8
  5. 7
      tools/anvil-configure-host

@ -9,5 +9,7 @@ dist_man5_MANS = \
dist_man8_MANS = \
alteeve-repo-setup.8 \
anvil-boot-server.8 \
anvil-check-memory.8 \
anvil-configure-host.8 \
anvil-daemon.8 \
scancore.8

@ -4,10 +4,10 @@
.SH NAME
anvil-boot-server \- Tool used to boot servers (virtual machines) on the Anvil! IA cluster.
.SH SYNOPSIS
.B alteeve-repo-setup
.B anvil-boot-server
\fI\,<command> \/\fR[\fI\,options\/\fR]
.SH DESCRIPTION
anvil-boot-server \- This tool allows booting of hosted servers on an Anvil! cluster, or a specific sub-node if desired.
This tool allows booting of hosted servers on an Anvil! cluster, or a specific sub-node if desired.
.TP
This method, when used with '\fB\-\-server\fR all', will honour server boot priority and delays.
.TP

@ -4,10 +4,10 @@
.SH NAME
anvil-check-memory \- This reports the total memory used by all processes with to passed-in program name.
.SH SYNOPSIS
.B alteeve-repo-setup
.B anvil-check-memory
\fI\,<command> \/\fR[\fI\,options\/\fR]
.SH DESCRIPTION
anvil-check-memory \- This reports the total memory used by all processes with to passed-in program name. It can be an Anvil! or Striker program, or any other program running on the system.
This reports the total memory used by all processes with to passed-in program name. It can be an Anvil! or Striker program, or any other program running on the system.
.TP
This looks in 'ps' and finds pids for the given program name, then parses the '/proc/<pid>/smaps' kernel file to calculate the memory use. This will include shared memory space! Ending the program won't necessarily release the reported amount of RAM.
.TP

@ -0,0 +1,30 @@
.\" Manpage for the Anvil! server boot program
.\" Contact mkelly@alteeve.com to report issues, concerns or suggestions.
.TH anvil-check-memory "8" "August 02 2022" "Anvil! Intelligent Availability™ Platform"
.SH NAME
anvil-check-memory \- This program configures the host for use in an Anvil! cluster.
.SH SYNOPSIS
.B anvil-check-memory
\fI\,<command> \/\fR[\fI\,options\/\fR]
.SH DESCRIPTION
This picks up a job from the database and, using the data from it, configures the host to prepare it for use in an Anvil! cluster.
.TP
.SH OPTIONS
.TP
\-?, \-h, \fB\-\-help\fR
Show this man page.
.TP
\fB\-\-log-secure\fR
When logging, record sensitive data, like passwords.
.TP
\-v, \-vv, \-vvv
Set the log level to 1, 2 or 3 respectively. Be aware that level 3 generates a significant amount of log data.
.SS "Commands:"
.TP
\fB\-\-job-uuid\fR <name>
The program is normally run as a job, with data on how to configure the host defined in the job. This switch allows the running of a specific job. If this is not set, the program will search for a job that has not yet been picked up by another process. If found, that job UUID is used automatically.
.IP
.SH AUTHOR
Written by Madison Kelly, Alteeve staff and the Anvil! project contributors.
.SH "REPORTING BUGS"
Report bugs to users@clusterlabs.org

@ -36,11 +36,8 @@ $| = 1;
my $anvil = Anvil::Tools->new();
# Read switches
$anvil->Get->switches;
### TODO: Remove this before final release
$anvil->Log->level({set => 2});
$anvil->Log->secure({set => 1});
##########################################
$anvil->Get->switches({list => ["job-uuid"], man => $THIS_FILE});
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => 2, list => $anvil->data->{switches}});
# Make sure we're running as 'root'
# $< == real UID, $> == effective UID

Loading…
Cancel
Save