How to Configure Linux Clients for Connectivity
- Install the iSCSI initiator package on RPM distro.
a. sudo yum install iscsi-initiator-utils - Check to ensure that the iSCSI daemon is running on the host.
a. RHEL 6: sudo /etc/init.d/iscsi status
b. RHEL 7: sudo service iscsid status
c. Replace status with start if the status is not returned as running. - Get the iSCSI initiator name from the host.
a. cat /etc/iscsi/initiatorname.iscsi - Create a Nutanix VG using acli.
a. Connect to any CVM using SSH.
b. Run the aCLI . - Create a VG.
a. vg.create vg_name
b. Example: vg.create DATADG shared=true
c. Specify shared if the disks are shared across hosts. - Add one or more disks to the VG.
a. vg.disk_create DATADG container=container_name create_size=disk_size
b. Example: vg.disk_create DATADG container=DATABSE create_size=500G - Attach the initiator IQN to the VG. Do this for each host participating in the cluster.
a. vg.attach_external vg_name initiator_name=initiator_iqn
b. Example: vg.attach_external DATADG initiator_name=iqn.1994-05.com.redhat:oracerac - Discover the available targets on the host.
a. iscsiadm -m discovery -t st -p , where -p is the
iSCSI data services IP address.
b. Take note of the listed targets. - Connect to the discovered targets on the host.
a. iscsiadm -m node –login
- Verify that the disk is attached.
a) rescan host bus adaptor
b) run lslk to see the disk