Releasing node disks

During a disk release, its data is safely migrated to other disks, which takes time. To avoid data loss, wait until data migration is complete.

Limitations

  • A graceful release of a storage disk is possible only if the remaining disks in the storage cluster can comply with the configured redundancy scheme. You can, however, release a disk forcibly without data migration by using the command-line interface. This will make the cluster degraded and trigger the cluster self-healing.

Prerequisites

  • Before replacing a disk with the Metadata, Cache, or Metadata+Cache role, ensure that the same role is assigned to a new disk, and then release the old disk.
  • If you want all disks with the Storage role to be assigned automatically after replacement, automatic configuration of new disks must be enabled, as described in Configuring new storage disks automatically.

To release a disk from the storage cluster

Admin panel

  1. On the Infrastructure > Nodes screen, click the name of the node.
  2. On the Disks tab, click the disk to replace.
  3. On the disk right pane, click Release.
  4. Click Release.

You can release a disk even if the node or the disk is offline. When the data migration from the disk completes, the disk will be displayed without a role on the Disks tab and can be replaced with a new one.

Command-line interface

Use the following command:

vinfra node disk release [--force] [--node <node>] <disk>
--force
Release without data migration
--node <node>
Node ID or hostname
<disk>
Disk ID or device name

For example, to release the role cs from the disk sdc on the node node003, run:

# vinfra node disk release sdc --node node003

To cancel a pending disk release

Admin panel

  1. On the Infrastructure > Nodes screen, click the name of the node.
  2. On the Disks tab, click the disk whose release is pending.
  3. On the disk right pane, click Cancel release.

Command-line interface

Use the following command:

vinfra node disk cancel-release [--node <node>] --disk <disk> [--disk <disk> ...]
--node <node>
Node ID or hostname
--disk <disk>
Disk ID or device name. This option can be used multiple times.

For example, to cancel pending release for disks vdc and vdd on the node node003, run:

# vinfra node disk cancel-release --node node003 --disk vdc --disk vdd