Designlet: Create iSCSI VMFS Datastore using Oracle Cloud Block Storage Volume
Oracle Cloud has the support of Oracle Cloud Infrastructure (OCI) Block Storage through iSCSI for Oracle Cloud VMware Solution (OCVS). OCI Block storage provides the capability to provision OCI block storage volumes through the iSCSI protocol. With this, you can attach the block storage volumes to all the ESXi instances that are part of OCVS VMware SDDC and provision a new VMFS datastore.
This capability allows you to scale the VMware SDDC Storage without adding additional ESXi instances, thus significantly bringing down the cost of running VMware SDDC in OCI.
Now, Oracle Cloud VMware Solution officially supports all three storage providers, i.e., vSAN, NFS, and VMFS (iSCSI). The vSAN datastore is the locally attached high-performing storage for OCVS VMware SDDC, whereas NFS and Block Storage (iSCSI) can be an on-demand secondary storage option for OCVS VMware SDDC.
Summary and Considerations
A secondary storage option for Oracle Cloud VMware Solution backed by iSCSI OCI Block Storage Volume.
OCI Block Storage Volume
Software iSCSI Initiator
Dynamic Discovery Path
You can consider configuring the iSCSI VMFS datastore if you need to extend storage resources on OCVS VMware SDDC.
OCVS offers two compute shapes, and both the shapes support Ultra High-Performance Storage Tier for block storage volume. The OCI Block Storage Volume supports a maximum of 300,000 IOPS per volume with Ultra High-Performance Storage Tier.
In a traditional VMware environment, there are certain prerequisites that you need to take care of from a networking and storage perspective. The good news for OCVS customers is that networking requirements between ESXi host instances and iSCSI Target are already taken care of. Hence, it does not require any additional steps on the networking part to get this working. This document does not describe iSCSI implementation in detail, but you can refer to the following documentation to understand more about iSCSI SAN in the VMware environment. .
Create Block Storage Volume
- Go to the hamburger menu from Oracle Cloud Console.
- Go to Storage
- Select Block Storage Volume
- Select the appropriate compartment
- Click on Create Block Volume
- Provide the required Inputs
- Name – Block Volume Name
- Select Compartment
- Select the Availability Domain
- Volume Size and Performance, either you can select the default, or you can customize the values as per the requirement.
- Select the Backup Policy
- Cross-region replication – By default, set to Off. Keep it as is.
- Select the encryption
- Click on Create Block Volume
Attach Block Volume to OCVS ESXi Instances
- Click on the newly created block volume
- Click on Attached Instances
- Click Attach to Instance
- Set the attachment type as iSCSI
- Set the Access Type as Read/Write – Shareable
Note: Read/Write – Shareable enables multiple instances to execute read/write operations simultaneously on the volume. This access type should only be used with the clustered file system to prevent data corruption.
In the VMware environment, ESXi hosts require the access type as read/write – shareable on the block volume to create a VMware File System (VMFS) datastore.
- Select Instance, In the drop-down select the ESXi host instance.
- Enable the CHAP credential if required.
- Leave the device path blank.
- Click on Attach.
- Repeat the same process to attach block volume on all the ESXi instances that are part of VMware SDDC.
iSCSI Command and Mount Details
- Once all the ESXi instances are attached, Click on iSCSI Command & Information.
- Note down the IP address and port details.
- Verify these details for all the ESXi instances. Use the same IP address and port information to configure the dynamic discovery. We will use the same information in VMware SDDC in the next step.
Create VMFS Datastore
- Log in to the vCenter Server.
- Click on one of the ESXi hosts.
- Click on Configure
- Select Storage Adapter and ensure Software iSCSi Initiator is provisioned. Please note that OCVS VMware SDDC instances have the software iSCSI initiator built in.
- Select the vmhba adapter that has the model type iSCSI Software Adapter.
- Under the same adapter, Click on Dynamic Discovery.
- Click Add, Provide the iSCSI IP address and Port details as captured from the Block Volume Attachment.
- Rescan Adapter. You can see a new Storage Device/LUN after the successful configuration of the dynamic discovery.
- Repeat the same process on all the ESXi hosts.
- Right, Click on the Cluster Object. Go to Storage – New Storage.
- Select VMFS
- Provide Datastore Name.
- Select the ESXi host from the drop-down.
- Select the Storage Device
- Select VMFS Version as VMFS 6
- Keep the partition details to their default settings.
- Click Finish.