Configuring iSCSI virtual disks
Configuring iSCSI virtual disks is required for the Windows clustering setup that this guide later describes. The iSCSI initiator is where all database read/write activity will be initiated. The iSCSI target is the actual disk that the initiator writes to.
The virtual disk is critical, as database servers will write into this disk. If the disk is offline, database services are disrupted, affecting EMS operations. You should engage with relevant Microsoft parties to plan a highly scalable database infrastructure. This is a Microsoft SQL requirement and is unrelated to EMS requirements.
To configure iSCSI virtual disks:
- Create a new volume in the iSCSI target server. In this example, the iSCSI target server is an EMS server. This is not best practice and does not provide a proper availability design from a database clustering point of view.
- Install the iSCSI target server role:
- In Server Manager, on the Manage menu, click add Roles and Features.
- Proceed to the Server Roles page. Under File and Storage Services > File and iSCSI Services, select iSCSI Target Server. Click Install.
- Create the virtual disk:
- After the server installs the role, in Server Manager, go to File and Storage Services > iSCSI.
- From the TASKS dropdown list, select New iSCSI Virtual Disk.
- The wizard prompts for access server details. The access server is the same as the iSCSI initiator. You can obtain the iSCSI initiator details by doing the following:
- In Server Manager on the iSCSI initiator server, go to Tools > iSCSI Initiator.
- On the Configuration tab, note the Initiator Name value.
- Provide the value that you obtained in step 6 in the wizard.
- Repeat steps 6-7 if you have multiple iSCSI initiator servers.
- On the iSCSI initiator server, on the Targets tab, enter the target server name or IP address in the Target field.
- Click Quick Connect. The discovered targets should autopopulate. Click Connect.
- The Targets tab should show the status as connected. If not, click Connect.
- After the target connects, on the Volumes and Devices tab, click Auto Configure. The volume list autopopulates with some configuration. Click OK. Repeat this step on other iSCSI initiator servers as needed.
- Refresh the File and Storage Services > File and iSCSI Services page on the iSCSI target server. The virtual disk status displays as connected.
- Initialize the virtual disk on the iSCSI initiator server:
- In Server Manager, go to Tools > Computer Management > Storage > Disk Management.
- The new volume displays as offline. Right-click on it, then select Online.
- Right-click the volume again, then select Initialize Disk.
- Select the necessary partition style. In this example, MBR is selected.
- At this point, the disk displays as online, but the disk space is unallocated. Right-click the disk, select New Simple Volume, and complete the process in the wizard.
- Confirm that you can see the new volume on the iSCSI initiator server. The volume should not contain any files, as the database is not installed. After installing the database, you can see Microsoft SQL files written to the virtual disk.
- Repeat the process on other iSCSI initiator servers as needed.