Add iSCSI drive to a system
We’re moving from one netapp to a newer one. Previously, I’ve dealt with NFS mounts, rsyncing them, then unmounting the old NFS share and mounting the new one.
The process for iSCSI drives is a little different because they aren’t mounted via NFS.
I started out by logging into the SuSE 9.3 box and editing /etc/iscsi.conf. I added one line to the file:
[text]
DiscoveryAddress=1.2.3.4
[/text]
If you need to create a new group, go to LUNs -> Initiator Groups -> Manage. Click Add Initiator Group. The Group Name should be something descriptive, i.e. “SubversionUsers” (no spaces allowed here). The Type should be iSCSI, the Operating System depends (I chose Linux). For the Initiators list, on your Linux box run “cat /etc/initiatorname.iscsi” and copy and paste the InitatorName (iqn.1987-05.com.cisco:01.0001bee55337 below) into the Initiators box.
[text]
svn:~ # cat /etc/initiatorname.iscsi
## DO NOT EDIT OR REMOVE THIS FILE!
## If you remove this file, the iSCSI daemon will not start.
## If you change the InitiatorName, existing access control lists
## may reject this initiator. The InitiatorName must be unique
## for each iSCSI initiator. Do NOT duplicate iSCSI InitiatorNames.
InitiatorName=iqn.1987-05.com.cisco:01.0001bee55337
svn:~ #
[/text]
I then needed to allow this box to load the Netapp share. Logging into the Netapp via the web, I went to LUNs -> Manage. This was an existing LUN (you could add a new LUN if needed) so I clicked on the LUN name. I then clicked on Map LUN, then Add Groups to Map. Click the group you want to add and click Add. On the following page, in the LUN ID box you need to provide a unique (to this LUN) ID. I chose 500.
Now on the Linux box, restart iSCSI.