Aller au contenu principal

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.

FieldWhat to typeWhich commands
DiskThe name of a disk; the hint reads For example sdb or nvme1n1Disk SMART, Disk self-test, Prepare the new disk, Install the boot loader
Healthy diskThe name of the healthy diskPrepare the new disk
ArrayThe name of an array; the hint reads For example md0Array state, Remove the disk from the array, Add the disk to the array, Return the partition to the array, Check the array
PartitionThe name of a partition; the hint reads For example sdb1Remove the disk from the array, Add the disk to the array, Return the partition to the array
Network portThe name of a network port; the hint reads For example enp0s31f6; an empty field picks the first portNetwork check
ServiceThe name of a serviceService state, Restart the service
KindA choice: Short or LongDisk self-test
From (ms) and To (ms)Two moments as Unix milliseconds; the hint reads For example 1762480000000 — Unix millisecondsLog excerpt
Keep addressesAddresses separated by commas or spaces; the hint reads For example 203.0.113.5, 2001:db8::1 — comma-separatedLog 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​

  1. Fill the fields and click Run.
  2. The window shows grey blocks while the command works, then the block Result.
  3. Click Terminé.

A changing command​

  1. Fill the fields and click Dry run. The fields become read-only.
  2. 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.
  3. 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.
  4. Click the red button below. It carries the title of the command, for example Restart the server. The command starts.
  5. The window shows the block Result. Click Terminé.

The button Annuler 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.

Attention

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.

ReasonRaised by
the command needs your confirmationA changing command whose call carries an empty confirmation number
no such commandA command outside the list of the program
the parameters do not fitA field outside the inventory of the server
the excerpt window is 1 ms to 6 hoursThe time span of Log excerpt: it takes from 1 millisecond up to 6 hours
the command failed on the serverA command of the host that the check pass runs
the output of the command is too longA command of the host with a long output
no such jobA job number that the program has already forgotten
the executor is shutting downThe program is stopping
another command runsAnother command is running on the server when the command starts
the server has none of apt-get, dnf and yumA command that installs updates, on a server that has none of the package programs it knows
no such file in the programA file name outside the code of the program (Code)
the file is larger than 1 MBA file of the code that exceeds 1 MB
the array is still resyncingDisk self-test and Restart the server
the array is busyCheck the array
the disk is not an array memberRemove the disk from the array
the array would lose its last copyRemove the disk from the array
it is the same diskPrepare the new disk
the disk was an array memberPrepare the new disk
the disk is in usePrepare the new disk
the disk is too smallPrepare the new disk
the healthy disk has errorsPrepare the new disk
the partition table of the disk is not recognizedPrepare the new disk
every disk of the array is in placeAdd the disk to the array
the partition carries a RAID labelAdd the disk to the array
the partition is mountedAdd the disk to the array, Install the boot loader
the partition is not emptyAdd the disk to the array, Install the boot loader
the partition is not preparedAdd the disk to the array
the partition type does not matchAdd the disk to the array
the partition is too smallAdd the disk to the array
the disk has errorsReturn the partition to the array
the disk is not in the array of the systemInstall the boot loader
no network boot entryInstall the boot loader
no EFI partitionInstall the boot loader
no EFI loaderInstall the boot loader
no EFI partition to copy fromInstall the boot loader
the partition has no PARTUUIDInstall the boot loader
no mount point for the EFI partitionInstall the boot loader
the mount point of the EFI partition is busyInstall the boot loader
no default gatewayNetwork check
a backup is runningRestart the server
the volume is being re-encryptedRestart the server
the protection level is being changedRestart the server
the boot of the encrypted server is not verifiedRestart the server
no bootloader on the remaining disksRestart the server

Answers of the panel's server​

MessageWhen 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

What's next​