Hope you all learning and sharing!
In our daily responsibilities, we get at the point where we need to configure and add datastores before we can put the VMs. This blog is beneficial for those who want to know the configuration and addition of datastores(storage) to ESXi hosts.
In our LAB, we have storage over iSCSI so before the presented storage can be seen we must configure the iSCSI initiator(Target) for one of the HBAs. We need to provide the IP address of the ISCSI initiator.
Points to Cover: –
- Configuring the iSCSI initiator(Target) for HBA.
- Adding the IP address of the iSCSI initiator(Target).
- Choosing and adding he correct volume in wizard.
- “Create new datastore” wizard.
- Verifying the Datastore properties
- Login with admin or root access. We are using root since we have direct webclient session. In the webclient, scroll to “Storage” on the left pane.
- In the right pane, You can see the tab called “Adapters”.
We need configure the iSCSI HBA adapter so for same we would click “Configure ISCSI”.
Select the HBA which we would use to map with iSCSI initiator(Target). We need to specify the IP of iSCSI initiator(from the storage end). If you see the screenshot below we have given the IP 172.16.0.11 along with default port 3260.
Once the iSCSI initiator(Target) has been added. We need click “Refresh” as show in the image below. This would refresh and pull mapped volumes over iSCSI target.
Now, that we have successfully configured the iSCSI initiator. We have task to create new datastore.
- Click the “New datastore” and it would bring a new dialogue box as shown below.
- Select “Create new VMFS datastore” and hit “Next”.
Please specify the “Name” of the datastore in the next “Create new Dastore” wizard.
- Select the visible volume from the list below. Please be careful while choosing the volume. We must select the correct one based on LUN ID & size if you have multiple volume mappings. All mapped volumes would be shown in the list.
On the next screen, we need to specify the size of the partition.
- In our LAB, we are entire size of 30 GB but you can always choose “Custom” to specify your own size of the datastore.
Next screen details the summary of selected options.
- If any changes are required, then please click “Back” and make the required changes.
- Click “Finish” once done.
Please be watchful that you have selected correct volume in previous options. Changes can’t be undone at this point. Click next so that VMFS signature and partition table can be written.
- Click “Yes” to warning to commit the changes.
Now, we can see that datastore has been created successfully and ready for use. Familiarize yourself with dastore properties including free and used space.