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.
- 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
Click Volumes-> Block Devices and review your Disks
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
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.
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.
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.
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’
You should now be presented with a new Volume Group that looks like this
We now want to create a ‘Volume’. Click on ‘Add volume’ from the right hand ‘Volumes section’ menu
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’.
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)!
When your happy with your settings press the ‘Create’ button.
Once the ‘Volume’ is created. It will look like as shown below.
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’.
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”.
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
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.
You will now be given a screen with a summary of the settings for the new iSCSI Target
Map the LUN
Now select the ‘LUN Mapping’ tab and click on the ‘Map’ button.
There are no other settings that need changing. Click ‘Map’.
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
Now Scroll to the bottom ‘Network Access Configuration’ and define your network
Following is our defined Network.
Now go back to ‘volume’ and then ‘ISCSI Target’ from right side of menu, Click ‘Network ACL Tab’.
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.