Für Linux werden ebenfalls Software-Initiators für iSCSI angeboten.
Für die 2.4 und 2.6 Kernel werden Treiber und Daemon im Sourcecode unter
GNU General Public License angeboten.
Zur Kompilierung werden die Header-Files des genutzten Kernels, sowie einige
Tools benötigt. Die fertigen Programme sind aber in den gängigen Distributionen
schon enthalten. Damit kann auch für Linux die Welt von iSCSI ohne große
Kosten erschlossen werden. Als Schnittstelle können die vorhandenen Netzwerkkarten
(Ethernet Gigabit oder Ethernet 10 Gigabit) genutzt werden. Treiber und Deamon
übernehmen die Umwandlung der SCSI- in iSCSI-Befehle und die Verpackung
in Ethernet-Pakete.
In der /etc/iscsi.conf lassen sich sämtlich Einstellungen für den
Daemon vornehmen, welches Target soll verwendet werden, spezielle Einstellungen
für TCP und iSCSI, sowie Multipath- und Failover-Konfigurationen.
In den meisten kommerziellen Distributionen ist ein fertiger iSCSI-Initiator
enthalten. Meist mit einer komfortablen Administrationsoberfläche, die
eine manuelle Bearbeitung der Konfiguration überflüssig macht.
Die Produktions-Pakete sind ausgereift und auch für Enterprise-Anwendungen
zu empfehlen. Die kurze Zeit für die eventuelle Erstellung der Programme
lohnt sich sicherlich.
Die Source-Codes lassen sich unter http://open-iscsi.org/
oder http://sourceforge.net/projects/linux-iscsi/
downloaden. Dort finden sich auch Anleitungen und man-pages für Programme
und Konfiguration.
Das Haupttool für die Commandline-Administrations ist iscsiadm. Es folgt eine kurze Aufstellung der möglichen Parameter:
./iscsiadm --help
Usage: iscsiadm [OPTION]
-m, --mode <op> specify operational mode op = <discovery|node> -m
discovery --type=[type] --interface=iscsi_ifacename --portal=[ip:port] --login
--print=[N]
perform [type] discovery for target portal with
ip-address [ip] and port [port].
See below for how to setup iscsi ifaces for
software iscsi or override the system defaults.
Multiple ifaces can be passed in during discovery.
-m discovery --print=[N] display all discovery records from internal persistent
discovery database.
-m discovery --interface --portal=[ip:port] --print=[N] --login
perform discovery based on portal in database. See above for info in the interface
argument.
For the above commands "print" is optional. If used, N can be 0 or
1.
0 = The old flat style of output is used.
1 = The tree style with the inteface info is used.
If print is not used the old flay style is used.
-m discovery --portal=[ip:port] --op=[op] [--name=[name] --value=[value]]
perform specific DB operation [op] for specific discovery portal. It could be
one of:
[new], [delete], [update] or [show]. In case of [update], you have to provide
[name] and [value] you wish to update
-m node display all discovered nodes from internal persistent discovery database
-m node --targetname=[name] --portal=[ip:port] \
--interface=iscsi_ifacename] \
[--login|--logout|--rescan|--stats]
-m node --targetname=[name] --portal=[ip:port]
--interface=[driver,HWaddress] \
--op=[op] [--name=[name] --value=[value]]
-m node --targetname=[name] --portal=[ip:port]
--interface=iscsi_ifacename] \
--print=[level]
perform specific DB operation [op] for specific interface on host that will
connect to portal on target. targetname, portal and interface are optional.
See below for how to setup iscsi ifaces for software iscsi or override the system
defaults.
op could be one of:
[new], [delete], [update] or [show]. In case of [update], you have to provide
[name] and [value] you wish to update
Print level can be 0 to 1.
Rescan will perform a SCSI layer scan of the session to find new LUNs.
Stats prints the iSCSI stats for the session.
-m node --logoutall=[all|manual|automatic]
Logout "all" the running sessions or just the ones with a node or
conn startup value manual or automatic. Nodes marked as ONBOOT are skipped.
-m node --loginall=[all|manual|automatic]
Login "all" the running sessions or just the ones with a node or conn
startup value manual or automatic. Nodes marked as ONBOOT are skipped.
-m session display all active sessions and connections
-m session --sid=[sid] [ --print=level | --rescan | --logout ]
--op=[op] [--name=[name] --value=[value]]
perform operation for specific session with session id sid. If no sid is given
the operation will be performed on all running sessions if possible.
--logout and --op work like they do in node mode,
but in session mode targetname and portal info is is not passed in.
Print level can be 0 to 2.
1 = Print basic session info like node we are connected to and whether we are
connected.
2 = Print iscsi params used.
3 = Print SCSI info like LUNs, device state.
If no sid and no operation is given print out the running sessions.
-m iface --interface=iscsi_ifacename --op=[op] [--name=[name] --value=[value]]
--print=level
perform operation on fiven interface with name iscsi_ifacename.
See below for examples.
-d, --debug debuglevel print debugging information
-V, --version display version and exit
-h, --help display this help and exit
![]() Software-Download |
zurück zu Downloads |
Informationen |
Home |