Connecting to an iSCSI-attached volume doesn't require a specific IAM policy. However, you might need permission to
run the necessary commands on the attached instance's guest OS. Contact your system
administrator for more information.
Prerequisites
You must attach the volume to the instance before you can connect the volume to the instance's guest OS. For details, see Attaching a Volume.
To connect the volume, you need the following information:
iSCSI IP address
iSCSI port numbers
CHAP credentials (if you enabled CHAP)
IQN
The Console provides the commands required to configure, authenticate, and log on to iSCSI.
Connecting to a Volume on a Linux Instance
Use the Console to obtain the iSCSI data
that you need to connect the volume:
Open the navigation menu and click Compute. Under Compute, click Instances.
Under List scope, select the compartment that
contains the instance.
Click the name of the instance to display the instance details.
Under Resources, click Attached block volumes to
view the attached block volume.
Click the Actions menu () next to the volume that you're interested in, and then select iSCSI Commands and Information.
The iSCSI Commands and Information dialog box displays
specific identifying information about the volume and the iSCSI commands
you need. The commands are ready to use with the appropriate information
included. You can copy the commands and paste them into your instance
session window for each of the following steps.
Log in to the instance's guest OS.
Register the volume with the iscsiadm tool.
Copy
iscsiadm -m node -o new -T <volume IQN> -p <iSCSI IP address>:<iSCSI port>
A successful registration response resembles the following example:
New iSCSI node [tcp:[hw=,ip=,net_if=,iscsi_if=default] 169.254.0.2,3260,-1 iqn.2015-12.us.oracle.com:c6acda73-90b4-4bbb-9a75-faux09015418] added
Configure iSCSI to automatically connect to the authenticated block
volumes after a reboot:
Use the Console to obtain the iSCSI data that you need to connect the volume:
Open the navigation menu and click Compute. Under Compute, click Instances.
Under List scope, select the compartment that
contains the instance.
Click the name of the instance to display the instance details.
Under Resources, click Attached block volumes to view the
attached block volume.
Click the Actions menu () next to the volume that you're interested in, and then select iSCSI Commands and Information.
The iSCSI Commands and Information dialog box displays the volume's IP address and port, which you need to know later in this procedure.
Log in to the instance by using a Remote Desktop client.
On the Windows instance, open the iSCSI Initiator. The steps to open the
iSCSI Initiator vary depending on the version of Windows.
For example: Open Server Manager, click Tools, and then select iSCSI Initiator.
In the iSCSI Initiator Properties dialog box, click the Discovery tab, and then click Discover Portal.
Enter the block volume IP address and port, and then click
OK.
Click the Targets tab.
Under Discovered targets, select the volume IQN.
Click Connect.
Ensure that the Add this connection to the list of favorite targets check
box is selected, and then click OK.
You can now format (if needed) and mount the volume. To view a list of mountable iSCSI devices on your instance, in Server Manager, click File and Storage Services, and then click Disks.