An external key management service consists of one or more key management servers sharing data with each other. Any client registered on a node of the key management service can access any node in the service.
Procedure
Run the following command on any node in the cluster to create an external key management service:
zbs-meta kms create_kmip --servers SERVERS [--vendor <VENDOR>] [--key_rotate_period_seconds <KEY_ROTATE_PERIOD_SECONDS>]
--certificate <CERTIFICATE> --private_key <PRIVATE_KEY> [--username <USERNAME>] [--password <PASSWORD>]
[--crypt_algos <CRYPT_ALGOS>]
<provider_name>| Parameter | Description |
|---|---|
--servers <SERVERS> | The information about the key management servers, formatted as host:port. Multiple servers can be specified, separated by commas (,). |
--vendor <VENDOR> | The vendor of the key management service. |
--key_rotate_period_seconds <KEY_ROTATE_PERIOD_SECONDS> | The interval for automatic key rotation in the ACOS cluster, in seconds. Valid range: [86400, 31536000]. |
--certificate <CERTIFICATE> | The path to the certificate required for authentication when accessing the key management service. |
--private_key <PRIVATE_KEY> | The path to the private key required for authentication when accessing the key management service. |
--username <USERNAME> | The username required for authentication when accessing the key management service. |
--password <PASSWORD> | The password required for authentication when accessing the key management service. |
--crypt_algos <CRYPT_ALGOS> | The encryption algorithm enabled by the key management service, which can be AES256_CTR. |
<provider_name> | The name of the key management service. |
Output example
Provider Id: 1b8872b5-ffc4-4811-8671-b814efdf9c54
Provider Name: kmip-kms
Vendor: test-vendor
Auth Id: ka-1b8872-01
Username: test-username
Is Rotating Key: False
Key Rotation Seconds: 31536000
Last Key Rotation Time: 2026-01-06 13:46:04.0
Last Key Backup Time: 2026-01-01 11:04:12.0
Crypt Stats:
CipherFamily: AES256_CTR, Encrypt Res Num: 60
Status: KMS_STATUS_RUNNING
ID Host Port Status
------------ -------------- ------ ------------------------
ks-1b8872-01 192.168.2.2 5696 KMIP_SERVER_CONNECTED
ks-1b8872-02 172.20.1.1 5696 KMIP_SERVER_DISCONNECTEDOutput note
| Parameter | Description |
|---|---|
Provider Id | The ID of the key management service. |
Provider Name | The name of the key management service. |
Vendor | The vendor of the key management service. |
Auth Id | The authentication information ID of the key management service. |
Username | The username in the authentication information about the key management service. |
Is Rotating Key | Whether the cluster is rotating keys. |
Key Rotation Seconds | The interval for automatic key rotation in the cluster. |
Last Key Rotation Time | The last key rotation time. |
Last Key Backup Time | The last key backup time. |
CipherFamily | The encryption algorithm enabled by the key management service. |
Encrypt Res Num | The number of encryption resources associated with this encryption algorithm in the cluster. |
Status | The status of the key management service. |
ID | The ID of the key management server. |
Host | The IP address or domain name of the key management server. |
Port | The port of the key management service. |
Status | The status of the key management server. |
Output note
If the command succeeds, no output is displayed.
Procedure
Run the following command on any node in the cluster to update the external key management service configuration:
zbs-meta kms refresh_kmip [--provider_name <PROVIDER_NAME>] --servers <SERVERS> [--vendor <VENDOR>] [--key_rotate_period_seconds <KEY_ROTATE_PERIOD_SECONDS>] --certificate <CERTIFICATE> --private_key <PRIVATE_KEY> [--username <USERNAME>] [--password <PASSWORD>] [--crypt_algos <CRYPT_ALGOS>] <provider_id> | Parameter | Description |
|---|---|
--provider_name <PROVIDER_NAME> | The name of the key management service. |
--servers <SERVERS> | The information about the key management servers, formatted as host:port. Multiple servers can be specified, separated by commas (,). |
--vendor <VENDOR> | The vendor of the key management service. |
--key_rotate_period_seconds <KEY_ROTATE_PERIOD_SECONDS> | The interval for automatic key rotation in the ACOS cluster, in seconds. Valid range: [86400, 31536000]. |
--certificate <CERTIFICATE> | The path to the certificate required for authentication when accessing the key management service. |
--private_key <PRIVATE_KEY> | The path to the private key required for authentication when accessing the key management service. |
--username <USERNAME> | The username in the authentication information about the key management service. |
--password <PASSWORD> | The password in the authentication information about the key management service. |
--crypt_algos <CRYPT_ALGOS> | The encryption algorithm enabled by the key management service, which can be AES256_CTR. |
<provider_id> | The ID of the key management service. |
Output example
Provider Id: 1b8872b5-ffc4-4811-8671-b814efdf9c54
Provider Name: kmip-kms
Vendor: test-vendor
Auth Id: ka-1b8872-01
Username: test-username
Is Rotating Key: False
Key Rotation Seconds: 31536000
Last Key Rotation Time: 2026-01-06 13:46:04.0
Crypt Stats:
CipherFamily: AES256_CTR, Encrypt Res Num: 60
Status: KMS_STATUS_RUNNING
ID Host Port Status
------------ -------------- ------ ------------------------
ks-1b8872-01 192.168.2.2 5696 KMIP_SERVER_CONNECTED
ks-1b8872-02 172.20.1.1 5696 KMIP_SERVER_DISCONNECTEDOutput note
| Parameter | Description |
|---|---|
Provider Id | The ID of the key management service. |
Provider Name | The name of the key management service. |
Vendor | The vendor of the key management service. |
Auth Id | The authentication information ID of the key management service. |
Username | The username in the authentication information about the key management service. |
Is Rotating Key | Whether the cluster is rotating keys. |
Key Rotation Seconds | The interval for automatic key rotation in the cluster. |
Last Key Rotation Time | The last key rotation time. |
Last Key Backup Time | The last key backup time. |
CipherFamily | The encryption algorithm enabled by the key management service. |
Encrypt Res Num | The number of encryption resources associated with this encryption algorithm in the cluster. |
Status | The status of the key management service. |
ID | The ID of the key management server. |
Host | The IP address or domain name of the key management server. |
Port | The port of the key management service. |
Status | The status of the key management server. |
Only the basic and authentication information about an external key management service can be updated.
Procedure
Run the following command on any node in the cluster to update the basic information about the external key management service:
zbs-meta kms update_kmip_attr [--name <NAME>] [--vendor <VENDOR>] [--key_rotate_period_seconds <KEY_ROTATE_PERIOD_SECONDS>] [--crypt_algos CRYPT_ALGOS] <provider_id>| Parameter | Description |
|---|---|
--name <NAME> | The name of the key management service. |
--vendor <VENDOR> | The vendor of the key management service. |
--key_rotate_period_seconds <KEY_ROTATE_PERIOD_SECONDS> | The interval for automatic key rotation in the cluster, in seconds. Valid range: [86400, 31536000]. |
--crypt_algos <CRYPT_ALGOS> | The encryption algorithm enabled by the key management service, which can be AES256_CTR. |
<provider_id> | The ID of the key management service. |
Output note
If the command succeeds, no output is displayed.
Procedure
Run the following command on any node in the cluster to update the authentication information about the external key management service:
zbs-meta kms update_kmip_auth [--action {add|set|delete}] [--force] [--auth_id AUTH_ID] [--certificate CERTIFICATE] [--private_key PRIVATE_KEY] [--username USERNAME] [--password PASSWORD] <provider_id>| Parameter | Description |
|---|---|
| `--action {add\ | set\ |
--force | Forcibly updates the key management service authentication information. |
--auth_id AUTH_ID | The ID in the authentication information about the key management service. |
--certificate CERTIFICATE | The path to the certificate required for authentication when accessing the key management service. |
--private_key PRIVATE_KEY | The path to the private key required for authentication when accessing the key management service. |
--username USERNAME | The username in the authentication information about the key management service. |
--password PASSWORD | The password in the authentication information about the key management service. |
Output note
If the command succeeds, no output is displayed.
Procedure
Run the following command on any node in the cluster to delete the external key management service. Deletion is allowed only if there are no encrypted resources (virtual volumes, volumes of VM templates, snapshots, iSCSI targets, LUNs, etc.):
zbs-meta kms delete_kmip <provider_id>| Parameter | Description |
|---|---|
provider_id | The ID of the key management service. |
Output note
If the command succeeds, no output is displayed.
Only the key management servers of an external key management service can be managed.
Procedure
Run the following command on any node in the cluster to view the key management servers:
zbs-meta kms list_kmip_server [--show_task] <provider_id>| Parameter | Description |
|---|---|
--show_task | Displays the heartbeat tasks of the key management servers. |
provider_id | The ID of the key management service to which a key management server belongs. |
Output example
Server: 192.168.20.227:5696
Heart Task: 2026-01-06 13:48:04 c0fe30d662484a608190da0cd6c39b6bcb2ba625366b45438abd9809d32e7946 EOK
ID Host Port Status
------------ -------------- ------ ---------------------
ks-1b8872-01 192.168.20.227 5696 KMIP_SERVER_CONNECTEDOutput note
| Parameter | Description |
|---|---|
Server | The key management server information. |
Heart Task | The heartbeat task information. |
ID | The ID of the key management server. |
Host | The IP address or domain name of the key management server. |
Port | The port of the key management service. |
Status | The status of the key management server. |
Procedure
Run the following command on any node in the cluster to update the key management server information:
zbs-meta kms update_kmip_server [--action {add|set|delete}] [--force] [--server_id <SERVER_ID>] [--name <NAME>] [--host <HOST>] [--port <PORT>] <provider_id>| Parameter | Description |
|---|---|
| `--action {add\ | set\ |
--force | Forcibly updates the key management server. |
--server_id <SERVER_ID> | The ID of the key management server to update. |
--name <NAME> | The name of the key management server. |
--host <HOST> | The IP address or domain name of the key management server. |
--port <PORT> | The port of the key management server. |
<provider_id> | The ID of the key management service to which the key management server belongs. |
Output note
If the command succeeds, no output is displayed.