Open Filer enabling iScsi Initiator

OpenFiler is a free SAN/NAS filer. Although iSCSI target is well define within its web interface, the initiator must be invoked using CLI interface (ssh/command line access/other). Open filer uses open-iscsi implementation of iscsi initiator, which main interface is iscsiadm.

1. Enable both startup and service of iSCSI initiator in web interface
2. using SSH use the following commands:
3. Identify published LUNs via:
#iscsiadm -m discovery -t st -p <iscsi target ip>
response:  <ip>:3260,1 <iqn>
e.g. 127.0.0.1:3260,1 iqn.2006-01.com.openfiler:tsn.5d3194b5b7a5
(deleting discovery with: #iscsiadm -m discovery -p localhost --op=delete)

4. Add LUNs
#iscsiadm -m node -T <iqn> -p <target ip address> --op update -n node.startup -v automatic

5. Now you should be able to see all volumes in Block devices.

6. Notice that: if you are working with one or more iSCSI initator volumes you must update the open-iscsi module (I was using OF2.99):
#conary update gcc
#conary update patch
#conary update glib:devel
#conary update glibc:devel
#conary update openssl:devellib
#wget http://www.open-iscsi.org/bits/open-iscsi-2.0-872.tar.gz
#tar -xzvf  open-iscsi-2.0-872.tar.gz
#cd open-iscsi-2.0-872
#make
#/etc/init.d/open-iscsi stop
#make install
#/etc/init.d/open-iscsi start
#iscsiadm -V
Response: iscsiadm version 2.0-872
#reboot

More references:
Setting Up An iSCSI Environment On Linux
iscsiadm(8) - Linux man page
Open-ISCSI-865: Error iscsiadm: Could not get host for sid

Artikel Terkait


EmoticonEmoticon