|« PreviousNext »|
|Did this page help you? Yes | No | Tell us about it...|
In this Getting Started exercise, you use Windows iSCSI initiator to connect to your gateway's volumes. At the end of this procedure, the volumes become available as local devices on your Windows client. For instructions on accessing the iSCSI storage volume from Linux, see Connecting from a Red Hat Client to Your Storage Volume.
To connect your Windows client to the storage volume
In the Start menu of your Windows client computer, enter iscsicpl.exe and run the program.
You must have administrator rights to run the iSCSI Initiator.
If prompted, click Yes to start the Microsoft iSCSI initiator service.
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.
Discover the gateway:
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 pre-populated 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 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.