Cloud Lab-8 : How to Configure ISCSI Volume in Virtual SAN (Openfiler Part 2)

LAB-8 TASKS (Part 2)

If you remember my last post about Virtual SAN (Part 1)  then i hope your knew, how to install the Virtual SAN (open filer) for your cloud environment. In this post i  am moving forward to configure the open filer (Virtual SAN) and show you the steps to configure an ISCSI Volume in openfiler (Virtual SAN).

In this Lab we will perform following tasks.

  1. Configure Virtual SAN  (for ISCSI Volume)
    • Create Physical Volume
    • Create a Volume Group
    • Create Volume
    • Enable the iSCSI Target Service
    • Map the LUN
    • Allow access to the iSCSI Target

Configure Virtual SAN (for ISCSI Volume)

Log in to WebUI (Openfiler IP/Name), use default credentials

username – openfiler
password – password

In my lab you may access from vsan FQDN https://cloud-vsan.vmlab.com

Enter default credentials, Click Login

cloudlab7-virtualsan-20

Click Volumes-> Block Devices and review your Disks

cloudlab7-virtualsan-21

Create Physical Volume

We need to create a physical volume which we will then present through to a Volume Group.  To do this select ‘Block Devices’ from the ‘Volumes section’ menu. First we use disk /dev/sdb

cloudlab7-virtualsan-22

Select ‘Edit Disk’ on the hard disk you want to create this new physical volume.

Scroll to the bottom of the screen and you will see the available spare space on this disk along with some other parameters. If you are not intending to create a RAID set for your physical volume then select ‘Physical volume’ as your partition type and select the ‘Mode’ as ‘Primary’.

Adjust the start and end cylinders to determine the size of physical volume and when satisfied press the ‘Create’ button.

cloudlab7-virtualsan-23

You will then be shown a summary of the partitions on this disk.  Notice that the ‘Physical Volume’ I just created appears on the list.

cloudlab7-virtualsan-24

Create a Volume Group

Next we want to create a new ‘Volume Group’ for the ‘Physical Volume’ we created to reside in.  Click on the ‘Volumes’ tab and then select ‘Volume Groups’ from the ‘Volume section’ menu on the right hand side menu.

cloudlab7-virtualsan-25

Enter in a ‘Volume group name’ and select (check box) the physical volume to which you wish to associate the Volume Group.  Then press ‘Add Volume group’

cloudlab7-virtualsan-26

You should now be presented with a new Volume Group that looks like this

cloudlab7-virtualsan-27

Create Volume

We now want to create a ‘Volume’.  Click on ‘Add volume’ from the right hand ‘Volumes section’ menu

cloudlab7-virtualsan-28

Now select the ‘Volume Group’ you just created and press the ‘Change’ button.  You will now be presented with the following screen where you determine the size of the ‘Volume’ you’re going to create within your ‘Volume Group’.

cloudlab7-virtualsan-29

For this example I’m going to create a ‘Volume’ that occupies the entire space of the ‘Volume Group(iscsi_gold)’.  Enter in the ‘Volume Name’ and determine the size by either keying in the required space or using the slider bar.  Then for the ‘Filesystem/Volume type’ select ‘iSCSI’.  This lasts part is important to all of this working so make sure it is set correctly (ie: iSCSI)!

cloudlab7-virtualsan-30

When your happy with your settings press the ‘Create’ button.

Once the ‘Volume’ is created. It will look like as shown below.

cloudlab7-virtualsan-31

This is now everything to do with creating a volume completed.  We now want to enable the connectivity side of things (ie: allowing ESXI Hosts to connect to the OpenFiler SAN).

Enable the iSCSI Target Service

Next click on the ‘Services’ tab and enable the ‘iSCSI target server’ (see below).By default it is set to ‘Disabled’.

cloudlab7-virtualsan-32

For connecting the OpenFiler SAN through to an VMware ESXi host we don’t need any of the other services enabling, so “enable and start the service”.

cloudlab7-virtualsan-33

Returning to the ‘Volumes’ section of the OpenFiler web interface select ‘iSCSI Targets’ from the ‘Volumes section’ menu on the right hand side of the screen

cloudlab7-virtualsan-34

We first want to create a new iSCSI target and do by select the first sub-tab called ‘Target Configuration’ in the ‘iSCSI Targets’ section. I personally keep the default ‘Target IQN’ generated by OpenFiler though you can alter it at this stage if you want.  Now press the ‘Add’ button.

cloudlab7-virtualsan-35

You will now be given a screen with a summary of the settings for the new iSCSI Target

cloudlab7-virtualsan-36

cloudlab7-virtualsan-37

Map the LUN

Now select the ‘LUN Mapping’ tab and click on the ‘Map’ button.

cloudlab7-virtualsan-38

There are no other settings that need changing. Click ‘Map’.

cloudlab7-virtualsan-39

Allow access to the iSCSI Target

Select the ‘Network ACL’ tab, if you got this mgs then define the network. Click on ‘Local Network’ Hyperlink

cloudlab7-virtualsan-40

Now Scroll to the bottom ‘Network Access Configuration’ and define your network

cloudlab7-virtualsan-41

Following is our defined Network. 

cloudlab7-virtualsan-42

Now go back to ‘volume’ and then ‘ISCSI Target’ from right side of menu, Click ‘Network ACL Tab’.

cloudlab7-virtualsan-43

From the ‘Access’ drop down list box select ‘Allow’.

 *Note: it is set to ‘Deny’ by default*

Now press the ‘Update’ button.  This allows the IP range we defined above to access the iSCSI Target we have just created.

Similarly create other ISCSI volumes for Management , Silver and Bronze Resource Group.for more information about how many Volumes, i have used in the cloud lab. please see my Cloud LAB Setup Post.

Now go to ESXi Server and configure your ISCSI Storage which we have just created above. if you dont know how to configure ISCSI Storage in ESXi Server then you may wait a while. i will discuss this in my later post.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s