ais storage command supports the following subcommands:
Alternatively (or in addition), run with --help to view subcommands and short descriptions, both:
As always, each subcommand (above) will have its own help and usage examples - the latter possibly spread across multiple markdowns.
You can easily look up examples and descriptions of any keyword via a simple
find, for instance:
Similar to all supported batch operations (aka xactions), cleanup runs asynchronously and can be monitored during its run, e.g.:
Further references:
For command line options and usage examples, please refer to:
Checks all objects of the bucket BUCKET and show number of misplaced objects, number of objects that have insufficient number of copies, etc.
If optional arguments are omitted, show information about all in-cluster buckets.
In other words, include relevant metrics that have only zero values.
Note that 172 (records) = 1637 - 1465.
There are two related commands:
ais storage diskais storage mountpathwhere mountpath is a higher-level abstraction that typically “utilizes” a single undivided disk. More exactly:
A mountpath is a single disk or a volume (a RAID) formatted with a local filesystem of choice, and a local directory that AIS utilizes to store user data and AIS metadata. A mountpath can be disabled and (re)enabled, automatically or administratively, at any point during runtime. In a given cluster, a total number of mountpaths would normally compute as a direct product of (number of storage targets) x (number of disks in each target).
You can manage and monitor (i.e., show) disks and mountpaths using ais storage command.
For strictly monitoring purposes, you can universally use
ais showcommand, e.g.:ais show storage disk, etc.
ais storage disk show [TARGET_ID]
or, same:
ais show storage disk [TARGET_ID]
As the name implies, the syntax:
ais show storage mountpath [TARGET_ID]
for example:
As always, --help will also list supported options. Note in particular the option to run continuously and periodically:
Show mountpaths for a given target or all targets.
Ease of Usage notice: like all other
ais showcommands,ais show storage mountpathis an alias (or a shortcut) - in this specific case - forais storage mountpath show.
ais storage mountpath attach TARGET_ID=MOUNTPATH [DAEMONID=MOUNTPATH...]
Attach a mountpath on a specified target to AIS storage.
ais storage mountpath detach TARGET_ID=MOUNTPATH [DAEMONID=MOUNTPATH...]
Detach a mountpath on a specified target from AIS storage.