Capacity: Capacity Bytes Used (CLI)
This statistic shows the used bytes, in gigabyte units, for storage capacity, including data, metadata, and snapshots, except for reservations. It is used as a threshold alert and cannot be displayed in a graph. Unlike other statistics, it is updated every five minutes instead of every second. Various breakdowns are available to show the pool, project, and share capacity used.
To create this capacity alert for datasets in the CLI, navigate to the analytics datasets
context. Next, use the command create
to set the alert.
hostname:> analytics datasets hostname:analytics datasets> create cap.bytesused[name]
If using worksheets, navigate to the analytics worksheets
context, select the desired worksheet, and then navigate to the dataset
context. Next, use the command set name
to set the alert. Finally, commit your changes. In the following example, the "\" character denotes a line break.
hostname:> analytics worksheets hostname:analytics worksheets> select worksheet-000 hostname:analytics worksheets worksheet-000> dataset hostname:analytics worksheets worksheet-000 dataset \ (uncommitted)> set name="cap.bytesused[name]" hostname:analytics worksheets worksheet-000 dataset \ (uncommitted)> commit
For cap.bytesused
, substitute the appropriate parameters for
[name]
according to the following table.
Table 5-17 Parameters for Capacity Bytes Used Alert
Parameter | Description |
---|---|
|
Selects all pools |
|
Selects the pool named poolname |
|
Selects all projects |
|
Selects the project named projectname |
|
Selects all projects in poolname |
|
Selects the project named projectname in poolname |
|
Selects all shares |
|
Selects the share named sharename |
|
Selects all shares in poolname |
|
Selects the share named sharename in poolname |
|
Selects all shares in projectname |
|
Selects the share named sharename in projectname |
|
Selects all shares in projectname in poolname |
|
Selects the share named sharename in projectname in poolname |
When to Check Capacity Bytes Used
This statistic can be used as a threshold alert for the used storage capacity in bytes. If the threshold is exceeded and the alert is triggered, you can mitigate the situation before storage becomes too full and performance is impacted.
Capacity Bytes Used Breakdowns
-
Pool - Name of the pool to set the alert on
-
Project - Name of the project to set the alert on
-
Share - Name of the share to set the alert on
Further Analysis
See Capacity: Capacity Percent Used (CLI) for a threshold alert for the percentage of storage used capacity.