2015-01-01 Set Up DNS and iSCSI

Overview

With REDFERN1 set up with networking, memory, and extra local disk space, it is now time to configure DNS and iSCSI disks.

References

Procedure

Update DNS

Used the procedure at DNS to implement the new IP addresses documented at IP Addresses.

Create iSCSI Devices

Create New LUN Group

On NARRABRI, I created a new LUN group called REDFERN for target, iqn.1994-11.com.netgear:narrabri:4eca4c51:redfern.

Create New LUNs

Using the design at Planning, the following LUNs were created NARRABRI:

All of these LUNs are assigned to the REDFERN LUN group.

Configuring an iSCSI Initiator

Followed the procedure in 17.6.2 Configuring an iSCSI Initiator.

Install Package

Ran the following command as root:

yum install iscsi-initiator-utils

The output is:

Loaded plugins: refresh-packagekit, security ol6_UEK_latest | 1.2 kB 00:00 ol6_latest | 1.4 kB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package iscsi-initiator-utils.x86_64 0:6.2.0.873-13.0.1.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================== Package Arch Version Repository Size ============================================================================================================== Installing: iscsi-initiator-utils x86_64 6.2.0.873-13.0.1.el6 ol6_latest 720 k Transaction Summary ============================================================================================================== Install 1 Package(s) Total download size: 720 k Installed size: 2.4 M Is this ok [y/N]: y Downloading Packages: iscsi-initiator-utils-6.2.0.873-13.0.1.el6.x86_64.rpm | 720 kB 00:01 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY Retrieving key from http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 Importing GPG key 0xEC551F03: Userid: "Oracle OSS group (Open Source Software group) <build@oss.oracle.com>" From : http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : iscsi-initiator-utils-6.2.0.873-13.0.1.el6.x86_64 1/1 Verifying : iscsi-initiator-utils-6.2.0.873-13.0.1.el6.x86_64 1/1 Installed: iscsi-initiator-utils.x86_64 0:6.2.0.873-13.0.1.el6 Complete!

Discover Targets on Narrabri

When I tried the command described in the manual, I got the following result:

[root@redfern2 ~]# iscsiadm -m discovery --type sendtargets --portal 192.168.1.253 iscsiadm: Please specify portal as <ipaddr>[:<ipport>]

Instead of using the command described, I used the example from the info page to interrogate NARRABRI (192.168.1.253):

iscsiadm --mode discoverydb --type sendtargets --portal 192.168.1.253 --discover

The result is:

Starting iscsid: [ OK ] 192.168.1.253:3260,1 iqn.1994-11.com.netgear:narrabri:69444463:ovmvictoria 192.168.1.253:3260,1 iqn.1994-11.com.netgear:narrabri:4eca4c51:redfern

Establish a Session

iscsiadm --mode node --targetname iqn.1994-11.com.netgear:narrabri:4eca4c51:redfern --portal 192.168.1.253:3260 --login

This failed with the following error messages:

Logging in to [iface: default, target: iqn.1994-11.com.netgear:narrabri:4eca4c51:redfern, portal: 192.168.1.253,3260] (multiple) iscsiadm: Could not login to [iface: default, target: iqn.1994-11.com.netgear:narrabri:4eca4c51:redfern, portal: 192.168.1.253,3260]. iscsiadm: initiator reported error (24 - iSCSI login failed due to authorization failure) iscsiadm: Could not log into all portals

I changed the properties for the REDFERN group to Allowed Initiators: Any. The result is now:

Logging in to [iface: default, target: iqn.1994-11.com.netgear:narrabri:4eca4c51:redfern, portal: 192.168.1.253,3260] (multiple) Login to [iface: default, target: iqn.1994-11.com.netgear:narrabri:4eca4c51:redfern, portal: 192.168.1.253,3260] successful.

However, I am getting the following errors:

WARNING: at block/genhd.c:1474 __disk_unblock_events+0x10e/0x120()

This looks like I have a problem with OEL6u3 and iSCSI on NetGear ReadyNAS.