diff --git a/docs/usage/cli.en.md b/docs/usage/cli.en.md index 7d6c8f18..145a8578 100644 --- a/docs/usage/cli.en.md +++ b/docs/usage/cli.en.md @@ -26,6 +26,8 @@ It supports the following commands: - [rm-osd](#rm-osd) - [osd-tree](#osd-tree) - [ls-osd](#ls-osd) +- [modify-osd](#modify-osd) +- [pg-list](#pg-list) - [create-pool](#create-pool) - [modify-pool](#modify-pool) - [ls-pools](#ls-pools) @@ -307,6 +309,24 @@ OSD PARENT UP SIZE USED% TAGS WEIGHT BLOCK BITMAP Set OSD reweight, tags or noout flag. See detail description in [OSD config documentation](../config.pool.en.md#osd-settings). +## pg-list + +`vitastor-cli pg-list|pg-ls|list-pg|ls-pg|ls-pgs [OPTIONS] [state1+state2] [^state3] [...]` + +List PGs with any of listed state filters (^ or ! in the beginning is negation). Options: + +``` +--pool Only list PGs of the given pool. +--min Only list PGs with number >= min. +--max Only list PGs with number <= max. +``` + +Examples: + +`vitastor-cli pg-list active+degraded` + +`vitastor-cli pg-list ^active` + ## create-pool `vitastor-cli create-pool|pool-create (-s |--ec +) -n [OPTIONS]` diff --git a/docs/usage/cli.ru.md b/docs/usage/cli.ru.md index b0a74a27..a17d78fc 100644 --- a/docs/usage/cli.ru.md +++ b/docs/usage/cli.ru.md @@ -25,6 +25,8 @@ vitastor-cli - интерфейс командной строки для адм - [rm-osd](#rm-osd) - [osd-tree](#osd-tree) - [ls-osd](#ls-osd) +- [modify-osd](#modify-osd) +- [pg-list](#pg-list) - [create-pool](#create-pool) - [modify-pool](#modify-pool) - [ls-pools](#ls-pools) @@ -324,6 +326,25 @@ OSD PARENT UP SIZE USED% TAGS WEIGHT BLOCK BITMAP Установить вес OSD, теги или флаг noout. Смотрите подробное описание в [документации настроек OSD](../config.pool.ru.md#настройки-osd). +## pg-list + +`vitastor-cli pg-list|pg-ls|list-pg|ls-pg|ls-pgs [OPTIONS] [state1+state2] [^state3] [...]` + +Вывести список PG с состояними, удовлетворяющими любому из переданных фильтров (^ или ! +в начале фильтра означает отрицание). Опции: + +``` +--pool Only list PGs of the given pool. +--min Only list PGs with number >= min. +--max Only list PGs with number <= max. +``` + +Примеры: + +`vitastor-cli pg-list active+degraded` + +`vitastor-cli pg-list ^active` + ## create-pool `vitastor-cli create-pool|pool-create (-s |--ec +) -n [OPTIONS]`