Monday, November 25, 2013

Configuring FreeNAS 8 for iSCSI on VMware vSphere 5 part 3

iSCSI stands for Internet SCSI and allows client machines to send SCSI commands to remote storage servers such as FreeNAS. This allows you to consolidate your storage drives into a single machine for lower cost per GB and easier maintenance, with the illusion of local disk drives on your client machines. The functionality to use iSCSI drives is built into both Windows Vista and Server 2008 natively. At the higher end you can also use iSCSI for low cost clustering solutions and disaster recovery.

In Part 1 of the tutorial we Installed and Configured FreeNAS Server on a VM.. in Part 2, We configured FreeNAS as a iSCSI..

In this Part, we are going to add the newly created iSCSI to an ESXi Server.

Once you have your ESXi ready, first thing to do is log on to it using VMware vSphere Client 

 Go to Configuration Tab -> "Storage adapters" and click "Add" to add a software iSCSI adapter if it does not exist already.

Click OK when prompted as shown below 

You now will have to configure the iSCSI properties. to continue, click OK 

You should see the newly added iSCSI Software Adapter as shown below. Click on Properties 

You will first need to enable your iSCSI initiator. To do this, click “Configure” in the properties dialog. 

In my case, it was already enabled.

On the next Tab (Dynamic Discovery), click on “Add” and enter the IP address of one of your iSCSI ports of your SAN.. in our case, the FreeNAS server IP was 

the Static Discovery Tab should auto-populate if your FreeNAS Server (iSCSI) was configured properly. Click “Close” to quite the properties window.

Once this is done, vSphere will prompt you to rescan the iSCSI host for any new LUNS available, click “Yes” 

Once the adapter is rescanned (Takes a couple of seconds), your LUN will be shown in the list view below. 

Now, your SAN LUN is Added to ESXi. Only config left is to tell ESXi what to use the new storage for.
Click on “Storage” on the left menu in the “Hardware” section, where you will see it displays my current local datastore (datastore1) which is only the local hard drives. Click on “Add Storage

In the Add Storage wizard first page, select “Disk/LUN” and click Next 

Your Added LUN will be in the list, select it, and click “Next” 

Select the File System Version..
NOTE: VMFS-5 does not support older ESXi versions i.e. any version older than 5 will not be supported. 

Next will be a summary of your disk layout, click Next
(NOTE: If you get an error when this page loads, it will probably be because there is a SAN operation running on the LUN like Initialization, Syncing, capacity expansion, etc – all in all, if you get an error here, your LUN isn’t ready on the SAN)

Next enter a Name for the LUN (Just so you can identify it). I have named it as SHARED_DATASTORE 

On the next page you will see the file formatting config, I left the defaults, and clicked Next

You will get a final summary page to confirm everything, click “Finish” 

Once you have successfully finished the wizard, you will see your LUN storage ready in the storage list. 

That's it from me for now..
More such posts coming your way !!

No comments: