Configure iSCSI Initiator (client) in CentOS / RHEL 6 Rumi, October 30, 2018 To use RHEL/CentOS 6 system as an iSCSI initiator or client, you must have iscsi-initiator-utils package installed. You can verify that this is installed on your system using the rpm command, as shown in the following example: $ rpm -qa | grep iscsi-initiator-utils Install the package if its not already available on your system using yum. # yum install iscsi-initiator-utils Start the iscsi demaon and use chkconfig to enable it to start after reboot as well. # service iscsi start # chkconfig iscsi on Once you have installed the required package and started the service you can start discovering the available targets. To Obtain a listing of available targets from a given host (please note that ipaddress listed below must be replaced with the resolvable hostname or IP address of the system providing the port if different than default): # iscsiadm -m discovery -t st -p 192.168.10.10 192.168.10.10:3260,1 iqn.2010-03.com.example:tgtd Here, iqn.2010-03.com.example:tgtd – is the target_iqn_name. You can view more information on the target using the below command. # iscsiadm -m node -T [target_iqn_name] -p [target_ipaddress] The next step is to login to the discovered target. # iscsiadm -m node -T iqn.2010-03.com.example:tgtd -p 192.168.10.10 -l Logging in to [iface: default, target: iqn.2010-03.com.example:tgtd, portal: 192.168.10.10,3260] Login to [iface: default, target: iqn.2010-03.com.example:tgtd, portal: 192.168.10.10,3260]: successful You can also login into all the LUNs exported on the target by running: # iscsiadm -m discovery -t st -l The iscsi initiator has it’s own database to save the target/node information and configuration. This is located in “/var/lib/iscsi” directory. You can view the newly attached iSCSI storage using fdisk command. # fdisk -l To disconnect an existing iSCSI storage, you will have to first log out of the target. # iscsiadm -m node -T [target_iqn_name] -p [ipaddress] -u To remove the target from the iscsi database so that the iscsi does not reconnect upon reboot, delete the target after logging out of it: # iscsiadm -m node -T target_iqn_name -p ip address --op delete If you have multiple targets that you have logged into, you can log out of all targets by running: # iscsiadm -m node -U all Trouble Shooting To get target list, run: # iscsiadm -m discovery To get the node list, run: # iscsiadm -m node The iscsid daemon opens a TCP session with the target. To check the open session, run: # iscsiadm -m session or # netstat -tpan | grep iscsid You can also check for the file /sys/class/iscsi_session to find open sessions. Find which session a disk belongs to: # iscsiadm -m session The output will include active sessions and attached scsi disks. For ZTE KU Storage integraion: For ISCSI Discovery # iscsiadm -m discovery -t sendtargets -p 10.10.10.211:3260 # iscsiadm -m discovery -t sendtargets -p 10.10.10.212:3260 ( **this ip is the port IP where the optical fiber is connected) To get the iqn number from blade: (need to enter in KU5200) #yum install iscsi-initiator-utils Next command is # cat /etc/iscsi/initiatorname.iscsi Related Administrations Configurations (Linux) CentOSCentOS 6iSCSI
Webmin install on Debian System February 9, 2012 If you are using the DEB version of webmin, first download the file from the downloads page , or run the command : wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580_all.deb then run the command : dpkg –install webmin_1.580_all.deb The install will be done automatically to /usr/share/webmin, the administration username set to root and the password… Read More
Enable TLS 1.0 in Firefox Browser March 26, 2022 Firefox 43 supports TLS 1.0, 1.1, and 1.2 by default. You shouldn’t need to make any changes, but you can double-check the settings here if you like: (1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful…. Read More
Netstat Command January 11, 2012January 11, 2012 Netstat command displays various network related information such as network connections, routing tables, interface statistics, masquerade connections, multicast memberships etc., In this article, let us review 10 practical unix netstat command examples. 1. List All Ports (both listening and non listening ports) Related Read More