vinfra service backup volume-params change

Modify volume parameters:

usage: vinfra service backup volume-params change [--tier {0,1,2,3}]
                                                  [--encoding <M>+<N>]
                                                  [--failure-domain
                                                  {disk,host,rack,row,room}]
--tier {0,1,2,3}
Storage tier
--encoding <M>+<N>

Storage erasure encoding mapping in the format:

  • M: the number of data blocks
  • N: the number of parity blocks
--failure-domain {0,1,2,3,4}
Storage failure domain

Example:

# vinfra service backup volume-params change --tier 1 --encoding 1+0 \
--failure-domain host
+---------+--------------------------------------+
| Field   | Value                                |
+---------+--------------------------------------+
| task_id | 28ae19dc-51c9-49bf-bd93-51a763fa181b |
+---------+--------------------------------------+

This command creates a task to change volume parameters of the backup cluster as follows:

  • The storage tier to 1
  • The erasure coding scheme to 1+0
  • The failure domain to host

Task outcome:

# vinfra task show 28ae19dc-51c9-49bf-bd93-51a763fa181b
+---------+--------------------------------------------------------+
| Field   | Value                                                  |
+---------+--------------------------------------------------------+
| details |                                                        |
| name    | backend.presentation.abgw.tasks.ChangeVolumeParamsTask |
| result  |                                                        |
| state   | success                                                |
| task_id | 28ae19dc-51c9-49bf-bd93-51a763fa181b                   |
+---------+--------------------------------------------------------+