.. _vinfra cluster create: vinfra cluster create --------------------- Create a storage cluster: :: usage: vinfra cluster create [--disk :[:]] [--tier-encryption {0,1,2,3}] --node ``--disk : [:]`` Disk configuration in the format: - ````: disk device ID or name; - ````: disk role (``cs``, ``mds``, ``journal``, ``mds-journal``, ``mds-system``, ``cs-system``, ``system``); - comma-separated ``key=value`` pairs 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_cache`` or ``external_cache``); - ``journal-disk``: journal (cache) disk ID or device name; - ``journal-size``: journal (cache) disk size, in bytes; - ``bind-address``: bind IP address for the metadata service. E.g., ``sda:cs:tier=0,journal-type=inner_cache``. This option can be used multiple times. ``--tier-encryption {0,1,2,3}`` Enable encryption for storage cluster tiers. Encryption is disabled by default. This option can be used multiple times. ``--node `` Node ID or hostname ```` Storage cluster name Example: :: # vinfra cluster create stor1 --node 94d58604-6f30-4339-8578-adb7903b7277 +---------+--------------------------------------+ | Field | Value | +---------+--------------------------------------+ | task_id | d9ca8e1d-8ac8-4459-898b-2d803efd7bc6 | +---------+--------------------------------------+ This command creates a task to create the storage cluster ``stor1`` on the node with the ID ``94d58604-6f30-4339-8578-adb7903b7277``. As disk roles are not explicitly specified, they are assigned automatically: ``mds-system`` to the system disk, and ``cs`` to all other disks. .. May need to mention what happens during cluster creation: MDS is created, storage services are launched, disk roles are assigned (anything else?). And why the user may want to select the node for it: maybe some nodes are more suitable to run MDS than the other; maybe some nodes are not to be added to the cluster for now. Task outcome: :: # vinfra task show d9ca8e1d-8ac8-4459-898b-2d803efd7bc6 +---------+----------------------------------------+ | Field | Value | +---------+----------------------------------------+ | args | - stor1 | | | - 94d58604-6f30-4339-8578-adb7903b7277 | | | - null | | | - null | | kwargs | {} | | name | backend.tasks.cluster.CreateNewCluster | | result | cluster_id: 1 | | state | success | | task_id | d9ca8e1d-8ac8-4459-898b-2d803efd7bc6 | +---------+----------------------------------------+