SHARE
Facebook X Pinterest WhatsApp

Configuring iSCSI and adding iSNS Servers

Written By
thumbnail
Web Webster
Web Webster
Jul 29, 2011

[ Thanks to Andrew
Weber
for this link. ]

“On SUSE we can use control services with the rc symlinks,
however this example we keep to the more traditional service
command to start the target server. The server will start but does
not have any targets or LUNs defined so we will add them while the
server is running. These commands can be easily added to the
/etc/init.d/iscsitarget script so they are created as the iscsi
server starts. The command as you can see is ietadm but let’s break
the options down to manageable elements :

“1. –op new : We are defining a new element

“2. –tid 1 : We are defining a target with the ID of 1.
The target ID must be unique on the system and numbering starts at
1. We could use 0 (zero) as the ID and that would use the next
available ID but we would not know what it was.

“3. –params
Name=iqn.2011-07.com.beginlinux.iTarget:datastore : This is where
we create the name of the target and how it will show to clients.
The Target name must be unique so there is a process used in the
naming. All names start with iqn (ISCSI Qualified Name), then the
reverse date that the target was created (always keep the date the
same as when it was first created, do not change it as the year or
month changes), followed by the reverse dns name of the target
system. Finally we add a colon to separate the name of the target
on this system; I call it here “datastore”. Remember we are really
naming the HBA, (host bus adaptor) here not the actual disk storage
itself.”


Complete Story

thumbnail
Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Recommended for you...

How to Install Immich on openSUSE
r00t
Sep 6, 2024
Beginners Guide for ID Command in Linux
Benny Lanco
Sep 5, 2024
[Fixed] An Unexpected Error Occurred on Gnome Extensions
Patrick
Sep 3, 2024
Run a Google Search From the Linux Command Line With Googler
TechRepublic
Aug 27, 2024
Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.