iSCSI is another way to share storage across a network. Well, the term iSCSI itself has more to do with the actual protocol level and the way that the data is transported across the LAN or WAN, but what it looks like as a consumer of iSCSI is that a machine has a drive letter for a disk, but that disk is not physically connected to the server. For example, you might log in to a server and see an M
drive. This drive looks just like a local volume, but it is actually a network connection to storage that might be sitting on the other side of the datacenter. Sounds like a mapped network drive, right? Yes, but it works on a lower level. iSCSI virtual disks, as they are called, work with the server as if they are local disks. This gives servers the ability to interface with this data at a system level, and does not require a user context in order to work, like mapped network drives do. This is commonly referred to as block storage.
One good example that I worked with was a database application that a customer was installing onto a new server. The requirements for installing this software were that a drive was to be dedicated for storage, it had to be a full drive letter on the system, and it could not be a mapped drive or a UNC mapping. We were not able to add another hard drive to the physical server, and that wasn't really desirable anyway. We utilized iSCSI to create an iSCSI target on their main storage server, and then connected to that block of storage with an iSCSI initiator on the application server where we were installing the software.
I haven't seen a lot of places utilize iSCSI, which is exactly why I thought we should test the waters with it here. We now have the option in Server 2016 to create our own iSCSI targets right on the server, so let's work on creating one of these targets together.
We have a Windows Server 2016 running, which we are going to prep to be our iSCSI target server.
To create an iSCSI target on your server, go through the following steps:
D
volume for this storage:
VHDX
file for this storage. Nice!10
GB:
Database1
.
In this recipe, we are starting to figure out how iSCSI might benefit our environment. In addition to the scenario I discussed, where our database server requires a constant drive letter connection to remote storage, there are some other common utilizations for iSCSI connections. You could use iSCSI connections in order to consolidate storage. For example, take multiple servers that have locally attached storage and map them to iSCSI storage blocks. You could then move the physical storage to your iSCSI target for all application servers involved. They would still access the same data, and the applications running on those servers wouldn't know any different, but the physical storage would now be consolidated into a centralized area for safekeeping and better data management.
iSCSI is also an interesting use case for diskless booting. You could equip diskless computers with NICs that are iSCSI-ready, and those computers could boot over the network, over iSCSI, to virtual disks sitting on the iSCSI target.
Check out the following links for some more great information on iSCSI:
18.117.104.53