iSCSI block storage – overview of what it is and why we need it
There are a number of things you need to know about block storage and, in this case, iSCSI. It is a storage area network (SAN) protocol that allows for devices or parts of devices to be seen as block storage by an end device. SAN is how iSCSI connects to the network and gives the ability to provide network logical unit numbers (LUNs). This allows systems to use these block devices as if they were physical hard drives in the system that they can boot from, save files to, or use like any hard drive that you have in your normal computer. With this in mind, we have to take a few things into account.
First, you have to ensure that your network can handle the connectivity without congestion as this will cause your systems to slow down and possibly lag behind what you are doing, causing users to become frustrated. Knowing this, you have to plan out your SAN extremely well and properly network out your block storage onto a normally non-encrypted network setup that meets the minimum speeds of 10 GB but can go much higher in a lot of cases. This allows smooth usage of your storage without the headaches you will run into as a system administrator. If you were to put this on the same network as your LAN traffic and expect your streaming (don’t do this while at work!) users are watching videos while trying to also do their jobs from a machine that is hosted from a SAN iSCSI block storage device. Other things to keep in mind are you need to ensure proper firewalld
syntax is utilized and SELinux protocols are followed to allow connectivity at startup or you will have a giant paperweight without much happening.
There are some main items you have to take into account when you are looking at iSCSI using targetcli
, and I will get to more details about targetcli
as that is the toolset we will utilize to allow us to use iSCSI in our RHEL 8.1 environment. The main things you need to know are the initiator, target, Portal, LUN, Access Control List (ACL), and Target Portal Group (TPG). These items make up iSCSI storage and lead to a lot of misconceptions. Let’s test your knowledge before we dig deeper into the systems and how they work together to provide block storage over the network to remote servers.
Testing your knowledge
Answer the following questions:
- What is an iSCSI storage source on an iSCSI server?
- Target
- LUN
- iSCSI Qualified Name (IQN)
- ACL
- What is a unique worldwide name used to identify both initiators and targets?
- Target
- LUN
- IQN
- ACL
- An iSCSI client that is typically software-based is known as a:
- TPG
- Portal
- IQN
- Initiator
- Which of the following is an access restriction using the IQN?
- Target
- LUN
- IQN
- ACL
- What is the most commonly used software for setting up RHEL 8.1 iSCSI block storage?
firewalld
- SELinux
targetcli
networkd
- Which service or port do you need to allow for iSCSI to work through your firewall?
iSCSI-target
3260/UDP
iSCSI
targetcli
- What includes the named item
2020-06.com.mcleroy.www
?- Target
- LUN
- IQN
- ACL
- Which system do you need to enable to ensure iSCSI will start at boot?
firewalld
- Target
targetcli
networkd
Answers:
- A. Target
- C. IQN
- D. Initiator
- D. ACL
- C.
targetcli
- A.
iSCSI-target
- C. IQN
- B. Target