Linux Today: Linux News On Internet Time.

More on LinuxToday

Configuring iSCSI and adding iSNS Servers

Jul 29, 2011, 11:01 (0 Talkback[s])


Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame

[ 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

Related Stories: