Connecting the Client to Lightbits
To connect the client to Lightbits, make sure to do the following:
- Ping to data_ip from the client to the target.
- To use NVMe/TCP, load the NVMe host modules.
modprobe nvme_tcp; lsmod | grep nvmeThe output is similar to the following example:
root@rack07-server56:~ modprobe nvme_tcp; lsmod | grep nvmenvme_tcp 36864 0nvme_fabrics 24576 1 nvme_tcpnvme_core 118784 3 nvme_tcp ,nvme_fabricst10_pi 16384 2 sd_mod ,nvme_coreOn the target node, enter the lbcli get cluster command on the Lightbits storage server to identify the subsytem NQN.
lbcli get clusterSample Output
root@rack03-server72:~ lbcli get clusterUUID Subsystem NQNCurrent Max Replicas Supported Max Replicas MinVersionInCluster MinAllowedVersion MaxAllowedVersiond63110c9-f6f3-4ab3-ba86-1e6fd6afc66a nqn.2016-01.com.lightbitslabs:uuid:66ee2ad7-8602-49ed-9b82-0c85af8da36d 3 3 2.3.12~b793 2.3.X 2.4.XEnter the lbcli list nodes command to identify the NIC IP address and TCP port. With the IP, port, subsystem NQN, and ACL values for the volume, you can execute the nvme connect command to connect to all of the nodes in the cluster.
lbcli list nodesSample Output
root@rack03-server72:~ lbcli list nodesName UUID State NVMe endpoint Failure domains Locaserver02-0 3b7a262a-ba3f-5447-9c21-e3c8ed699f0f Active 172.16.231.72:4420 [server02] Noneserver00-0 8b980170-f941-5473-9162-36a17e866a36 Active 172.16.231.70:4420 [server00] Noneserver01-0 cfbfdc90-43b3-5ce6-be99-1ab4171785b0 Active 172.16.231.71:4420 [server01] NoneFor persisting the NVMe connections across client reboots, use the Lightbits open source discovery-client tool.
Check Connection
To check which clients are connected to the Lightbits cluster, run:
lbcli list connected-hostsSample Output
root@rack03-server72:~ lbcli list connected-hostsHost NQN IP Address Hostnameacl3 172.16.231.78Was this page helpful?