config

Operations with the configuration file.

Except for the show subcommand, the commands listed in this chapter require superuser privileges.

# xicli config <subcommand> <args> [optional_args]

Subcommands for the config command:

apply

Apply the configuration files for all restoring RAIDs.

backup

Save the common configuration file (create the backup file backup_raid.conf in the current directory).

restore

Restore the configuration file from a file or from the drives.

show

Show configuration files stored on the drives.

apply

The command unloads all RAIDs in the system whose configuration files are present in the directory /etc/xiraid/raids/*, and then restores all RAIDs that are possible to restore.

# xicli config apply

backup

Save the common configuration file from /etc/xiraid/raid.conf (create the backup file backup_raid.conf in the current directory).

# xicli config backup

restore

Restore the configuration file from a file or from the drives.

# xicli config restore <arg>
Table 1. Arguments for the restore subcommand

Mutually excluded required arguments

-c --common_file A file to restore or replace the common configuration file /etc/xiraid/raid.conf.

If no file is specified, restore or replace from /etc/xiraid/raid.conf.bak.

-d

--drives

The list of block devices (/dev/sd*, /dev/mapper/mpath*, /dev/nvme*, /dev/dm-*) separated by a space to restore the most recent RAID configuration files to the /etc/xiraid/raids.drive/ directory.

If no disks are specified, restore the most recent RAID configuration files from all disks.

-r --raid_file A file to restore or replace the RAID configuration file in /etc/xiraid/raids/.

show

Show configuration files stored on the RAID drives.

# xicli config show [optional_arg]
Table 2. Argument for the show subcommand

Optional argument

-d

--drives

The list of block devices (/dev/sd*, /dev/mapper/mpath*, /dev/nvme*, /dev/dm-*) separated by a space.

Without the argument, show from all disks.

The command also shows the newest configuration file from the drives.