Nutanix volumes with Linux

How to Configure Linux Clients for Connectivity

  1. Install the iSCSI initiator package on RPM distro.
    a. sudo yum install iscsi-initiator-utils
  2. 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.
  3. Get the iSCSI initiator name from the host.
    a. cat /etc/iscsi/initiatorname.iscsi
  4. Create a Nutanix VG using acli.
    a. Connect to any CVM using SSH.
    b. Run the aCLI .
  5. 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.
  6. 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
  7. 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
  8. 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.
  9. Connect to the discovered targets on the host.

a. iscsiadm -m node –login

  1. Verify that the disk is attached.
    a) rescan host bus adaptor

b) run lslk to see the disk

Leave a Reply