Procedure
Each available access point maintains a session with the meta service. Run the following command on any node in the cluster to view the session status list for the access services:
zbs-meta session list
Output example
UUID Ip Port Cid Secondary_data_ip Zone Machine UUID
------------------------------------ ------------ ------ ----- ------------------- ------- ------------------------------------
0b48597c-7d6b-45a7-82f5-94f3b9f0aaa0 10.2.234.198 10201 1 10.93.180.25 default 22a79016-2c6d-11ef-806c-52540097039a
8af221a8-96ad-4d82-ae41-94756414a170 10.2.234.197 10201 3 10.93.180.24 default 0f8d8274-2c6d-11ef-a0c4-52540097039a
d1ceb1f7-8142-4922-a717-cbe4e948c766 10.2.234.196 10201 2 10.93.180.23 default 05e85370-2c6d-11ef-ba09-52540097039aOutput note
| Parameter | Description |
|---|---|
UUID | The session UUID. |
IP | The storage network IP address. |
Port | The storage port. |
Cid | The node cluster ID. |
Secondary_data_ip | The management network IP address. |
Zone | The zone that the node belongs to, used to differentiate multi-active clusters. |
Machine UUID | The UUID of the physical node where the access service is running. |
Procedure
Run the following command on any node in the cluster to query the session based on the UUID:
zbs-meta session show <session_id>
Output example
{ 'group': u'access',
'items': [ { 'key': u'ZBS-ISCSI',
'value': u'dummy'},
{ 'key': u'has_config_push_ability',
'value': u'true'},
{ 'key': u'has_thick_extent_ability',
'value': u'true'},
{ 'key': u'host_data_ip',
'value': u''},
{ 'key': u'ip',
'value': u'10.0.20.50'},
{ 'key': u'machine_id',
'value': u'1ad7ec12-5f34-11ed-9699-5254001b0267'},
{ 'key': u'port',
'value': u'10201'},
{ 'key': u'sec_data_ip',
'value': u'192.168.20.36'},
{ 'key': u'sec_valid',
'value': u'true'},
{ 'key': u'zone',
'value': u'default'}],
'lease_expire_ns': 777738098323556L,
'session_epoch': { 'epoch': 1814861099L,
'uuid': u'4b1b1ef7-0326-4950-abb5-e520612311e2'}}Output note
| Parameter | Description |
|---|---|
has_config_push_ability | Whether the iSCSI config can be uploaded. |
ip | The storage network IP address. |
port | The storage network port. |
sec_data_ip | The secondary network IP address. |
sec_valid | Whether data links via the secondary network are supported. |
zone | The associated availability zone. |
Procedure
Run the following command on any cluster node to view the iSCSI connection information for the session:
zbs-meta session list_iscsi_conn [session_id]
session_id is the UUID of the session. If this parameter is not specified, connection information for all sessions is displayed.
Output example
Initiator Initiator IP Target ID Client Port Session ID CID Transport Type
-------------------------------------------------------------------------------------------------- -------------- ------------------------------------ ------------- ------------------------------------ ----- ----------------
iqn.1994-05.com.redhat:3d529e7b469 10.0.18.155 4a461048-a6a6-4156-9530-3f385a3bb35a 34386 59688f04-57cb-4f3e-b716-f3752b67a856 3 TCP
iqn.1994-05.com.redhat:c83cb51956cd 10.1.18.75 62901dbb-df26-4635-9975-0c617e7e5177 33472 59688f04-57cb-4f3e-b716-f3752b67a856 3 TCP
iqn.1994-05.com.redhat:e389825c840 10.0.18.212 01f2e1e3-1984-45b2-b1a2-8087cf2c1653 43534 59688f04-57cb-4f3e-b716-f3752b67a856 3 TCPOutput note
| Parameter | Description |
|---|---|
Initiator | The iSCSI client. |
Initiator IP | The iSCSI client IP address. |
Target ID | The iSCSI target identifier. In ABS, each target ID maps to a storage pool. |
Session ID | The session ID that manages this iSCSI connection. |
CID | The iSCSI connection ID. |
Transport Type | The transport protocol type. |
Procedure
Run the following command on any node in the cluster:
zbs-meta reroute show
Output example
enable_reroute: true
enable_secondary_data_channel: trueProcedure
Run the following command on any node in the cluster to update the rerouting function settings:
zbs-meta reroute update [--enable_reroute {true|false}] [--enable_secondary_data_channel {true|false}]
| Parameter | Description |
|---|---|
--enable_reroute | Whether to enable the I/O rerouting service. |
--enable_secondary_data_channel | Whether to use the management network as a secondary data channel. |
Output note
If the command succeeds, no output is displayed.