vinfra node join
Join a node to the storage cluster:
usage: vinfra node join [--disk <disk>:<role>[:<key=value,…>]] <node>
--disk <disk>:<role> [:<key=value,…>]-
Disk configuration in the format:
<disk>: disk device ID or name<role>: disk role (cs,mds,journal,mds-journal,mds-system,cs-system,system)- comma-separated
key=valuepairs with keys (optional):tier: disk tier (0, 1, 2 or 3)journal-tier: journal (cache) disk tier (0, 1, 2 or 3)journal-type: journal (cache) disk type (no_cache,inner_cacheorexternal_cache)journal-disk: journal (cache) disk ID or device namebind-address: bind IP address for the metadata service
Example:
sda:cs:tier=0,journal-type=inner_cache.
This option can be used multiple times. <node>- Node ID or hostname
Example:
# vinfra node join f59dabdb-bd1c-4944-8af2-26b8fe9ff8d4 \ --disk sda:mds-system \ --disk sdb:cs \ --disk sdc:cs +---------+--------------------------------------+ | Field | Value | +---------+--------------------------------------+ | task_id | a2713068-9544-4ea1-8ec8-69a068cf86f2 | +---------+--------------------------------------+
This command creates a task to add the node with the ID f59dabdb-bd1c-4944-8af2-26b8fe9ff8d4 to the storage cluster and assigns roles to disks: mds-system to sda, cs to sdb and sdc.
Task outcome:
# vinfra task show a2713068-9544-4ea1-8ec8-69a068cf86f2
+---------+--------------------------------------------+
| Field | Value |
+---------+--------------------------------------------+
| args | - f59dabdb-bd1c-4944-8af2-26b8fe9ff8d4 |
| | - 1 |
| kwargs | disks: |
| | - id: 85F32403-94A9-465A-9E6C-C1A2B41294FC |
| | role: mds-system |
| | service_params: {} |
| | - id: FE0B5876-E054-489B-B0FD-72429BEFD46A |
| | role: cs |
| | service_params: {} |
| | - id: D3BEF4BB-AA3B-4DB6-9376-BC7CDA636700 |
| | role: cs |
| | service_params: {} |
| name | backend.tasks.node.AddNodeInClusterTask |
| result | {} |
| state | success |
| task_id | a2713068-9544-4ea1-8ec8-69a068cf86f2 |
+---------+--------------------------------------------+