anvil-manage-files \- This program manages the files sync'ed across machines in the Anvil! cluster
anvil-manage-files \- This program manages the files sync'ed across machines in the Anvil! cluster
.TP
.BNote:
This tool is not yet complete.
.SHSYNOPSIS
.SHSYNOPSIS
.Banvil-manage-files
.Banvil-manage-files
\fI\,<command> \/\fR[\fI\,options\/\fR]
\fI\,<command> \/\fR[\fI\,options\/\fR]
@ -21,18 +24,31 @@ When logging, record sensitive data, like passwords.
Set the log level to 1, 2 or 3 respectively. Be aware that level 3 generates a significant amount of log data.
Set the log level to 1, 2 or 3 respectively. Be aware that level 3 generates a significant amount of log data.
.SS"Commands:"
.SS"Commands:"
.TP
.TP
\fB\-\-add\fR
(not implemented yet)
.TP
\fB\-\-check\fR
This runs a check for files that need to be processed (added, deleted, etc).
.TP
\fB\-\-delete\fR
\fB\-\-delete\fR
This will delete the \fB\-\-file\fR </path/to/file> from the entire Anvil! cluster.
This will delete the \fB\-\-file\fR </path/to/file> from the entire Anvil! cluster.
.TP
.TP
This action is permanent!
\fB\-\-download\fR
(not implemented yet)
.TP
\fB\-\-file\fR <file>
This is the file being worked on.
.TP
\fB\-\-is\-script\fR
When set, the file is marked as a script or program. Files marked this way can be used in different places in the Anvil! cluster.
.TP
\fB\-\-rename\fR
The changes the name of a file. Use \fB\-\-file\fR <old name> and \fB\-\-to\fR <new name>.
.TP
.TP
\fB\-\-job\-uuid\fR <name>
\fB\-\-to\fR <new 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.
The is the new file name that's being changed.
.IP
.IP
.SHAUTHOR
.SHAUTHOR
Written by Madison Kelly, Alteeve staff and the Anvil! project contributors.
Written by Madison Kelly, Alteeve staff and the Anvil! project contributors.
anvil-manage-host \- Tool used to check or set various configuration options for a host.
anvil-manage-host \- Tool used to check or set various configuration options for a host.
.SHSYNOPSIS
.SHSYNOPSIS
.Banvil-manage-host
.Banvil-manage-host
\fI\,<command> \/\fR[\fI\,options\/\fR]
\fI\,<command> \/\fR[\fI\,options\/\fR]
.SHDESCRIPTION
.SHDESCRIPTION
This tool provides a way to perform actions on a host that normally are handled by other processes, like marking a system as configure, etc. This will likely grow constantly over time.
.TP
.TP
.SHOPTIONS
.SHOPTIONS
.TP
.TP
@ -22,7 +22,7 @@ Set the log level to 1, 2 or 3 respectively. Be aware that level 3 generates a s
.SS"Commands:"
.SS"Commands:"
.TP
.TP
\fB\-\-age\-out\-database\fR
\fB\-\-age\-out\-database\fR
This requests the database check for records that are too old and purge them.
This searches the database(s) for data that is old enough that it's no longer needed and deletes it from the database. This helps with the performance of resync operations in particular.
.TP
.TP
\fB\-\-auto\-grow\-pv\fR
\fB\-\-auto\-grow\-pv\fR
This looks at LVM physical volumes on the local host. For each one that is found, 'parted' is called to check if there's more that 1 GiB of free space available after it. If so, it will extend the PV partition to use the free space.
This looks at LVM physical volumes on the local host. For each one that is found, 'parted' is called to check if there's more that 1 GiB of free space available after it. If so, it will extend the PV partition to use the free space.
@ -30,25 +30,28 @@ This looks at LVM physical volumes on the local host. For each one that is found
If you deleted the default '/home' partition during the install of a subnode or DR host, this should give you that space back.
If you deleted the default '/home' partition during the install of a subnode or DR host, this should give you that space back.
.TP
.TP
\fB\-\-check\-configured\fR
\fB\-\-check\-configured\fR
Check to see if the host is marked as configured or yet.
This reports if the host is marked as configured yet or not.
.TP
.TP
\fB\-\-check\-database\fR
\fB\-\-check\-database\fR
This checks to see if the database is enabled or not.
This reports if the database on the local Striker is active or inactive.
.TP
.TP
\fB\-\-confirm\fR
\fB\-\-confirm\fR
This confirms actions that would normally prompt the user to confirm before proceeding.
This confirms actions that would normally prompt the user to confirm before proceeding.
.TP
.TP
\fB\-\-database\-active\fR
\fB\-\-database\-active\fR
This enables the database on the local Striker dashboard.
This marks the local database to be active.
.TP
.TP
\fB\-\-database\-inactive\fR
\fB\-\-database\-inactive\fR
This disables the database on the local Striker dashboard.
This marks the local database to be inactive.
.TP
.TP
\fB\-\-mark\-configured\fR
\fB\-\-mark\-configured\fR
This marks the host as having been configured.
This marks the local system as being configured. This should be used carefully.
.TP
\fB\-\-mark\-unconfigured\fR
This marks the local system as being unconfigured. This should be used carefully.
.TP
.TP
\fB\-\-resync\-database\fR
\fB\-\-resync\-database\fR
This forces a database resync if two or more strikers are online.
This forces the databases to be resync'ed, even if they seem synced.
.IP
.IP
.SHAUTHOR
.SHAUTHOR
Written by Madison Kelly, Alteeve staff and the Anvil! project contributors.
Written by Madison Kelly, Alteeve staff and the Anvil! project contributors.
<keyname="log_0191">Connection only to: [#!variable!db_uuid!#], skipping: [#!variable!uuid!#].</key>
<keyname="log_0191">Connection only to: [#!variable!db_uuid!#], skipping: [#!variable!uuid!#].</key>
<keyname="log_0192">The connection to the database: [#!variable!server!#] has failed. Will attempt to reconnect.</key>
<keyname="log_0192">The connection to the database: [#!variable!server!#] has failed. Will attempt to reconnect to databases-.</key>
<keyname="log_0193">Switching the default database handle to use the database: [#!variable!server!#] prior to reconnect attempt.</key>
<keyname="log_0193">Switching the default database handle to use the database: [#!variable!server!#] prior to reconnect attempt.</key>
<keyname="log_0194">Switching the default database to read from to the database: [#!variable!server!#] prior to reconnect attempt.</key>
<keyname="log_0194">Switching the default database to read from to the database: [#!variable!server!#] prior to reconnect attempt.</key>
<keyname="log_0195">Ready to try to reconnect to: [#!variable!server!#], but delaying for: [#!variable!delay!#] seconds to give the database a chance to come back online in case this is a transient issue.</key>
<keyname="log_0195">Ready to try to reconnect to: [#!variable!server!#], but delaying for: [#!variable!delay!#] seconds to give the database a chance to come back online in case this is a transient issue.</key>
@ -2739,6 +2739,9 @@ The file: [#!variable!file!#] needs to be updated. The difference is:
The key in the database has been updated, so we're going to swap the key. The change is;
The key in the database has been updated, so we're going to swap the key. The change is;
<keyname="warning_0175">[ Warning ] - The DB query: [#!variable!query!#] timed out! It was given: [#!variable!timeout!#] seconds, and alarmed with: [#!variable!error!#].</key>
<keyname="warning_0176">[ Warning ] - The DB query: [#!variable!query!#] failed with the error: [#!variable!error!#].</key>
<keyname="warning_0177">[ Warning ] - SQL quoting string: [#!variable!string!#] failed with the error: [#!variable!error!#].</key>
<keyname="warning_0178">[ Warning ] - About to run 'anvil-configure-host'. This is likely going to take the network down, so we will hold here until this job is complete.</key>
<keyname="warning_0179">[ Warning ] - The connection to the database: [#!variable!server!#] was not restored, unable to this database.</key>
<keyname="warning_0180">[ Warning ] - We were asked to read from the database: [#!variable!server!#], but it is not or is no longer available.</key>
<keyname="warning_0181">[ Warning ] - We were asked to read from the database: [#!variable!server!#], but it is no longer available, and no alternative databases are available.</key>
<keyname="warning_0182">[ Warning ] - We appear to have lost access to the database: [#!variable!uuid!#], during a write. Skipping this database.</key>
# - Move Cluster->_set_server_constraint() to call here at the same time as we ban the peer.
#
# - Read the CIB; 'pcs status xml' or '/usr/sbin/cibadmin --local --query' ?
# - Read the CIB; 'pcs status xml' or '/usr/sbin/cibadmin --local --query' ?
# -- Map the peer's name in pacemaker.
# -- Map the peer's name in pacemaker.
# -- Verify that stonith is enabled:
# -- Verify that stonith is enabled:
@ -44,7 +46,7 @@
# -- Verify that we're quorate (a-la pacemaker):
# -- Verify that we're quorate (a-la pacemaker):
# - Verify that the resource is 'resource-and-stonith'
# - Verify that the resource is 'resource-and-stonith'
# - Verify that the resource is 'UpToDate' (if not, should we suicide to give the other node priority, regardless of fence delay? what if both nodes have resources that are not UpToDate?)
# - Verify that the resource is 'UpToDate' (if not, should we suicide to give the other node priority, regardless of fence delay? what if both nodes have resources that are not UpToDate?)
# -
#
### NOTE: This doesn't use Anvil::Tools on purpose. We want to be quick and depend on as few things as
### NOTE: This doesn't use Anvil::Tools on purpose. We want to be quick and depend on as few things as