Oracle Cloud Infrastructure Documentation

Adding a Block Volume to a Windows Instance

Block Volume provides network storage to use with your Oracle Cloud Infrastructure instances. After you create, attach, and mount a volume to your instance, you can use it just as you would a physical hard drive on your computer. A volume can be attached to a single instance at a time, but you can detach it from one instance and attach to another instance, keeping your data intact.

This task shows you how to create a volume, attach it to an instance, and then connect the volume to the instance.

For complete details on Block Volume, see Overview of Block Volume Service.

Creating a Volume

  1. Open the navigation menu. Under Core Infrastructure, go to Block Storage and click Block Volumes.

  2. Click Create Block Volume.
  3. In the Create Block Volume dialog box, enter the following:

    • Create in Compartment: This field defaults to your current compartment. Select the compartment you want to create the volume in, if not already selected.
    • Name: Enter a user-friendly name.
    • availability domain: Select the same One or more isolated, fault-tolerant Oracle data centers that host cloud resources such as instances, volumes, and subnets. A region contains one or more availability domains. that you selected for your instance. If you followed the tutorial instructions when launching your instance, this will be the first availability domain in the list. The volume and the instance must be in the same availability domain.
    • Size: Enter 256 to create a 256 GB block volume.
  4. Click Create Block Volume.

A 256 GB block volume is displayed in the list in the provisioning state. When the volume is no longer in the provisioning state, you can attach it to your instance.

Attaching the Volume to an Instance

Next you attach the volume via an A TCP/IP based standard used for communication between a volume and attached instance. network connection to your instance:

  1. Find your instance: Open the navigation menu. Under Core Infrastructure, go to Compute and click Instances.

  2. Click your instance name to view its details.

  3. Click Attach Block Volume.
  4. In the dialog box, enter the following:

    1. Block Volume Compartment: Select the compartment where you created the block volume.
    2. Block Volume: Select the block volume from the list.
    3. Require CHAP Credentials: Leave unselected.

      Tip

      Stands for Challenge-Handshake-Authentication-Protocol. It is a security protocol used by iSCSI for authentication between a volume and an instance. is a security protocol. You can leave this box unchecked for the purposes of the tutorial. When you set up your production environment, Oracle recommends requiring CHAP credentials.

  5. Click Attach.

The attachment process takes about a minute. You'll know the volume is ready when the Attachment State for the volume is ATTACHED.

Connecting to the Volume

After your volume is attached, you can configure the iSCSI connection. After the connection is configured, you can mount the volume on your instance and use it just as you would a physical hard drive.

To connect to your volume:

  1. Log on to your instance as described in Connecting to Your Windows Instance.

  2. Open the navigation menu. Under Core Infrastructure, go to Compute and click Instances.

  3. Click your instance name to view the attached storage volume.

  4. Click the Actions icon (three dots) next to the volume you just attached and then click iSCSI Commands and Information.

    The iSCSI Commands and Information dialog box opens. Notice that the dialog box displays specific identifying information about your volume (such as IP address and port) as well as the iSCSI commands that you can use.

  5. On your Windows instance, open the iSCSI Initiator.

    For example: Open Server Manager, click Tools, and select iSCSI Initiator.

  6. In the iSCSI Initiator Properties dialog box, click the Discovery tab.
  7. Click Discover Portal.
  8. Enter the block volume IP address and port. Click OK.
  9. Click the Targets tab.
  10. In the Discovered Targets region, select the volume IQN.
  11. Click Connect and then click OK to close the dialog.
  12. You are now ready to format (if needed) and mount the volume. To get a list of mountable iSCSI devices on the instance, in Server Manager, click File and Storage Services and then click Disks.

    The 256 GB disk is displayed in the list.

What's Next

Now that you've got an instance running and attached some storage, consider the following next steps:

  • Install your own software on the instance.
  • Add more users to work with Oracle Cloud Infrastructure. See Adding Users.
  • Or, if you are finished with your instance, delete the resources that you created in the tutorial. See Cleaning Up Resources from the Tutorial.