Moving VDisks
- Move a VDisk from a block store volume
- Move VDisks from a broken/missing block store volume
- Enable the VDisk back after reassignment
Move a VDisk from a block store volume
To move a VDisk from a block store volume, log in to the node via SSH and run the command:
kikimr admin bs config invoke --proto 'Command { ReassignGroupDisk { GroupId: <Storage group ID> GroupGeneration: <Storage group generation> FailRealmIdx: <FailRealm> FailDomainIdx: <FailDomain> VDiskIdx: <Slot number> } }'
You can find the parameters for the command in the viewer (link).
Move VDisks from a broken/missing block store volume
If SelfHeal is disabled or fails to move VDisks, you’ll have to run this operation manually.
Make sure that the VDisk has actually failed.
Write down the node’s FQDN, ic-port, VDisk path, and pdisk-id
Go to any cluster node
Move the VDisk
kikimr admin bs config invoke --proto 'Command { UpdateDriveStatus { HostKey: { Fqdn: "<host>" IcPort: <ic-port>} Path: "<Path to the storage volume part label>" PDiskId: <pdisk-id> Status: BROKEN } }'
Enable the VDisk back after reassignment
In Monitoring, make sure that the PDisk is actually operable
Write down the node’s FQDN, ic-port, store path, and pdisk-id
Go to any cluster node
Enable the PDisk back
kikimr admin bs config invoke --proto 'Command { UpdateDriveStatus { HostKey: { Fqdn: "<host>" IcPort: <ic-port>} Path: "<Path to the storage volume part label>" PDiskId: <pdisk-id> Status: ACTIVE } }'