|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
You are now ready to connect your Windows client to your iSCSI storage volume. In this Getting Started exercise, you make this connection using the Microsoft iSCSI Initiator on your client. For instructions on accessing the iSCSI storage volume from Linux, see Connecting from a Red Hat Client to Your Storage Volume.
You must have administrator rights to run the iSCSI Initiator.
To connect your Windows client to the storage volume
You need the host IP and the target name information for the storage volume you are connecting to. You can find this information in the AWS Storage Gateway console.
In the Navigation pane of the console, select your gateway.
In the Volumes tab, click the volume to connect to.
The iSCSI Target Info tab shows the information you need to connect your client to this volume.
You will use the Target Name and Host IP, as highlighted in the preceding image. The Host IP is required for the following steps and the Target Name is used to verify that you are selecting the correct iSCSI target.
Start the iSCSI Initiator.
In the Start menu of your Windows client computer, type
iscsicpl.exe and run the
The iSCSI Initiator Properties dialog box appears if the iSCSI Initiator Service is running.
If the Microsoft iSCSI Initiator Service is not running, you are prompted to start the service and have the service start automatically each time the computer restarts. Click Yes in the Microsoft iSCSI dialog box to start the service.
Discover the gateway:
In the iSCSI Initiator Properties dialog box, click the Discovery tab, and click the Discovery Portal button.
In the Discover Target Portal dialog box, in the IP address or DNS name field, enter the IP address of your iSCSI target, and click OK.
The IP address is now displayed in the list of Target portals in the Discovery tab.
Connect to the storage volume target on the gateway:
Click the Targets tab.
The target you just discovered is shown with an inactive status. Note that the target name shown should be the same as what you noted for your storage volume in step 1.
Select the target and click Connect.
In the Connect to Target dialog box, if the target name is not prepopulated already, enter the name of the target name as shown in step 1, select the check box next to Add this connection to the list of Favorite Targets, and click OK.
In the Targets tab, ensure that the target Status has the value Connected indicating the target is connected. Click OK.
You can now initialize and format this storage volume for Windows so you can begin saving data on it. You do this through the Windows Disk Management tool.
While it is not required for this Getting Started exercise, we highly recommend that you customize your iSCSI settings for a real application as discussed in the topic Customizing Your Windows iSCSI Settings.
To initialize and format the storage volume you just mapped
In the Start menu, type
diskmgmt.msc to open the
Disk Management console.
In the Initialize Disk dialog box, select MBR (Master Boot Record) as the partition style and click OK. When selecting the partition style, you should take into account the type of volume you are connecting to—cached or stored—as shown in the following table.
|Partition style||Use in the following conditions|
|MBR (Master Boot Record)||
For all stored-volumes (which are limited to 1 TiB in size), or cached-volumes less than 2 TiB.
|GPT (GUID Partition Table)||
All stored-volume and cached-volumes. You must use GPT for cached-volumes greater than 2 TiB.
Create a simple volume:
If the disk is offline, you must bring it online before you can initialize it. After the disk is initialized, it is ready to be formatted as a simple volume. All the available volumes are displayed in the disk management console. In the following example, Disk 1 is the storage volume. Notice that when you select the new volume, it displays hatch lines indicating that it is selected.
Right-click the disk and select New Simple Volume.
Be careful not to format the wrong disk. Check to make sure that the disk you are formatting matches the size of the local disk you allocated to the gateway VM and that it has a status of Unallocated.
In the New Simple Volume Wizard, click Next.
In the Specify Volume Size dialog box, leave the default values, and click Next.
In the Assign Drive Letter or Path dialog box, leave the default values, and click Next.
In the Format Partition dialog box, specify a Volume label field, and ensure that Perform a quick format is selected. Click Next.
Selecting Perform a quick format is highly recommended for cached-volumes as it results in less initialization I/O, smaller initial snapshot size, fastest time to a usable volume, and avoids cached-volume usage that is due only to the full format process and not any application-data related activity.
Click Finish to close the wizard.
The time it takes to format the volume depends on the size of the volume and may take several minutes to complete.