Running a command
A click on Run or Dry run in the Commands tab, and a click on a command button in the repair request block, open the command window. The title of the window is the title of the command, and under it stands the description of the command. A watching command takes one step. A changing command takes two: the check pass and the run.
The fields of a command
A command takes the fields that it needs; a command with an empty list of fields opens straight to its buttons. The button of a step stays dimmed until every required field holds text. Two fields are optional: Network port and Keep addresses.
| Field | What to type | Which commands |
|---|---|---|
| Disk | The name of a disk; the hint reads For example sdb or nvme1n1 | Disk SMART, Disk self-test, Prepare the new disk, Install the boot loader |
| Healthy disk | The name of the healthy disk | Prepare the new disk |
| Array | The name of an array; the hint reads For example md0 | Array state, Remove the disk from the array, Add the disk to the array, Return the partition to the array, Check the array |
| Partition | The name of a partition; the hint reads For example sdb1 | Remove the disk from the array, Add the disk to the array, Return the partition to the array |
| Network port | The name of a network port; the hint reads For example enp0s31f6; an empty field picks the first port | Network check |
| Service | The name of a service | Service state, Restart the service |
| Kind | A choice: Short or Long | Disk self-test |
| From (ms) and To (ms) | Two moments as Unix milliseconds; the hint reads For example 1762480000000 — Unix milliseconds | Log excerpt |
| Keep addresses | Addresses separated by commas or spaces; the hint reads For example 203.0.113.5, 2001:db8::1 — comma-separated | Log excerpt |
The server checks every field against its own inventory: a disk, a partition, an array and a port must exist on the server, and a service must belong to the list that the program knows (Catalog of commands).
A watching command
- Fill the fields and click Run.
- The window shows grey blocks while the command works, then the block Result.
- Click Listo.
A changing command
- Fill the fields and click Dry run. The fields become read-only.
- The window shows the block What will run: every command line that will run, in the
form
$ command, and under it On the server now with the state of the server as the program reads it now. - A notice carries the confirmation number: Confirmation No. … holds until … and works once. (the dots stand for the number and the moment). The number belongs to this command, these fields and this incident, and lives 30 minutes.
- Click the red button below. It carries the title of the command, for example Restart the server. The command starts.
- The window shows the block Result. Click Listo.
The button Cancelar closes the window before the result. While a command is running and the result is still missing, the window waits for the answer.
A command set to Without asking shows the same steps. The server runs it at the click of the red button and records your name in the journal.
The red button starts a change on the real server. The lines of the check pass show what will run, and the block On the server now shows the state of the server at that moment; read both before the click.
The result
The block Result shows what the server answers:
- Steps. For each step of the command a line
$ command, then the code of the exit (exit code …, the dots stand for the code), the duration in milliseconds and the output of the step in a framed area that scrolls. - A job. A changing command and the long watching commands (Disk self-test, Network check) run as jobs. The window asks for the job every 3 seconds until its state reads one of: done, failed, cancelled, interrupted, timed out, refused or ended. While the steps of a job are still empty, the result shows the line State: … (the dots stand for the state) with queued or running.
- Log excerpt. The result reads Lines in the excerpt: … (the dots stand for the count), then the lines as
moment unit: message. When the window holds more lines than the limit of 5000, or the read exceeds 60 seconds, the text reads Lines in the excerpt: … — the start of the window, it has more. - A refusal. A red line The server refused: …. (the dots stand for the reason).
Every command that you run from the window lands in the Server actions tab. A job is recorded when it ends; Qubix follows it for up to 2 hours for that.
If the server refuses
The server checks the conditions of a command twice: at the check pass and right before the run. A refusal shows the line "The server refused" and the reason. The reasons come from the command program of the server; the catalog names the command that raises each condition.
| Reason | Raised by |
|---|---|
| the command needs your confirmation | A changing command whose call carries an empty confirmation number |
| no such command | A command outside the list of the program |
| the parameters do not fit | A field outside the inventory of the server |
| the excerpt window is 1 ms to 6 hours | The time span of Log excerpt: it takes from 1 millisecond up to 6 hours |
| the command failed on the server | A command of the host that the check pass runs |
| the output of the command is too long | A command of the host with a long output |
| no such job | A job number that the program has already forgotten |
| the executor is shutting down | The program is stopping |
| another command runs | Another command is running on the server when the command starts |
| the server has none of apt-get, dnf and yum | A command that installs updates, on a server that has none of the package programs it knows |
| no such file in the program | A file name outside the code of the program (Code) |
| the file is larger than 1 MB | A file of the code that exceeds 1 MB |
| the array is still resyncing | Disk self-test and Restart the server |
| the array is busy | Check the array |
| the disk is not an array member | Remove the disk from the array |
| the array would lose its last copy | Remove the disk from the array |
| it is the same disk | Prepare the new disk |
| the disk was an array member | Prepare the new disk |
| the disk is in use | Prepare the new disk |
| the disk is too small | Prepare the new disk |
| the healthy disk has errors | Prepare the new disk |
| the partition table of the disk is not recognized | Prepare the new disk |
| every disk of the array is in place | Add the disk to the array |
| the partition carries a RAID label | Add the disk to the array |
| the partition is mounted | Add the disk to the array, Install the boot loader |
| the partition is not empty | Add the disk to the array, Install the boot loader |
| the partition is not prepared | Add the disk to the array |
| the partition type does not match | Add the disk to the array |
| the partition is too small | Add the disk to the array |
| the disk has errors | Return the partition to the array |
| the disk is not in the array of the system | Install the boot loader |
| no network boot entry | Install the boot loader |
| no EFI partition | Install the boot loader |
| no EFI loader | Install the boot loader |
| no EFI partition to copy from | Install the boot loader |
| the partition has no PARTUUID | Install the boot loader |
| no mount point for the EFI partition | Install the boot loader |
| the mount point of the EFI partition is busy | Install the boot loader |
| no default gateway | Network check |
| a backup is running | Restart the server |
| the volume is being re-encrypted | Restart the server |
| the protection level is being changed | Restart the server |
| the boot of the encrypted server is not verified | Restart the server |
| no bootloader on the remaining disks | Restart the server |
Answers of the panel's server
| Message | When it appears |
|---|---|
| "The confirmation is out of date. Open the card again." | The number is unknown, expired, spent or belongs to another command |
| "The server has no such command." | The name of the command is missing from the list of the program |
| "This command only looks and runs at once." | A watching command arrives at the check pass |
| "The server's command program is not answering. Try again in a minute." | The program of the server is silent |
| "The command «name» is not in the list of this server." | The incident block asks for a command that the program lacks |