Storage and mountpath management
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:
Table of Contents
- Storage cleanup
- Show capacity usage
- Validate in-cluster content for misplaced objects and missing copies
- Mountpath (and disk) management
- Show mountpaths
- Attach mountpath
- Detach mountpath
Storage cleanup
Similar to all supported batch operations (aka xactions), cleanup runs asynchronously and can be monitored during its run, e.g.:
Further references:
Show capacity usage
For command line options and usage examples, please refer to:
Validate in-cluster content for misplaced objects and missing copies
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.
Example: validate a given prefix-defined portion of an s3 bucket
Example: same as above but show all columns
In other words, include relevant metrics that have only zero values.
Note that 172 (records) = 1637 - 1465.
Mountpath (and disk) management
There are two related commands:
ais storage diskais storage mountpath
where 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.
Show disks
ais storage disk show [TARGET_ID]
or, same:
ais show storage disk [TARGET_ID]
Show mountpaths
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.
Examples (slightly outdated)
Attach mountpath
ais storage mountpath attach TARGET_ID=MOUNTPATH [DAEMONID=MOUNTPATH...]
Attach a mountpath on a specified target to AIS storage.
Examples
Detach mountpath
ais storage mountpath detach TARGET_ID=MOUNTPATH [DAEMONID=MOUNTPATH...]
Detach a mountpath on a specified target from AIS storage.