It took several howto's and hacking around, but once I found all the pieces, it was actually quite simple. Using Fedora 6 as a base, the first step was to install the iSCSI RPMs:
lsscsi(lsscsi may not be necessary, but let's be safe for now)
iscsi-initiator-utils
In the /etc/iscsi directory are two files. We need to add the host IP and port as the first two directives of the iscsid.conf.
isns.address = 172.16.1.110Next, change initiatorname.iscsi to contain the name defined on the host.
isns.port = 3260
InitiatorName=iqn.2007-09.vm.vi3:esx7Start the service and execute a sendtargets request:
# service iscsi start(Yes, the IP's are different. For some reason, I have to initiate to one NAS in order to connect to the other.)
# iscsiadm -m -discovery -t sendtargets -p 172.16.1.131
Now I see the LUNs, but what about the devices? An fdisk -l sees the .110 NAS which was defined, but not the .131 NAS, which was discovered. We could be reboot, but this is Linux, not Windows! Let's try:
# service iscsi restartWhoa! Look at all that output. Another fdisk -l now sees the devices.
Set the service to start at boot time, and we are in business:
# chkconfig iscsi on
No comments:
Post a Comment