docs/doc/source/storage/kubernetes/list-partitions.rst
Keane Lim ceea9dda0d Storage Guide update
Applied review feedback.

Fixed 'grey bars' formatting.
Fixed gerunds and lists
Added abbreviations and references

Change-Id: I104d678ce3ea52bddcbc141f8aad49ea1e1971db
Signed-off-by: Keane Lim <keane.lim@windriver.com>
2021-02-09 12:50:24 -05:00

1.1 KiB

List Partitions

To list partitions, use the system host-disk-partition-list command.

The command has the following format:

system host-disk-partition-list [--nowrap] [--disk [disk_uuid]] <host>

where:

<host>

is the hostname or ID.

For example, run the following command to list the partitions on a compute-1 disk.

~(keystone_admin)$ system host-disk-partition-list --disk fcd2f59d-c9ee-4423-9f57-e2c55d5b97dc compute-1
+------...+------------------+-------------+...+----------+--------+
| uuid    | device_path      | device_node |   | size_mib | status |
+------...+------------------+-------------+...+----------+--------+
| 15943...| ...ata-2.0-part1 | /dev/sdb1   |...| 1024     | In-Use |
| 63440...| ...ata-2.0-part2 | /dev/sdb2   |...| 10240    | In-Use |
| a4aa3...| ...ata-2.0-part3 | /dev/sdb3   |...| 10240    | In-Use |
+------...+------------------+-------------+...+----------+--------+