
In the
Target
line, yyyy-mm is the date when this target is activated, and identifier
is freely selectable. Find more about naming conventions in RFC 3722 (see
http://
www.ietf.org/rfc/rfc3722.txt
). Three different block devices are exported
in this example. The first one is a logical volume (see also
Section 7.1, “LVM Configu-
ration”
(page 111)), the second is an IDE partition, and the third is an image available
in the local file system. All these look like block devices to an iSCSI initiator.
Before activating the iSCSI target, add at least one
IncomingUser
after the
Lun
definitions. It does the authentication for the use of this target.
To activate all your changes, restart the iscsitarget daemon with
rciscsi restart
.
Check your configuration in the
/proc
file system:
cat /proc/net/iet/volume
tid:1 name:iqn.2006-02.com.example.iserv:systems
lun:0 state:0 iotype:fileio path:/dev/mapper/system-v3
lun:1 state:0 iotype:fileio path:/dev/hda4
lun:2 state:0 iotype:fileio path:/var/lib/xen/images/xen-1
There are many more options that control the behavior of the iSCSI target. Find them
in the manual page of
ietd.conf
.
Active sessions are also displayed in the
/proc
file system. For each connected initiator,
an extra entry is added to
/proc/net/iet/session
:
cat /proc/net/iet/session
tid:1 name:iqn.2006-02.com.example.iserv:system-v3
sid:562949957419520
initiator:iqn.2005-11.de.suse:cn=rome.example.com,01.9ff842f5645
cid:0 ip:192.168.178.42 state:active hd:none dd:none
sid:281474980708864 initiator:iqn.2006-02.de.suse:01.6f7259c88b70
cid:0 ip:192.168.178.72 state:active hd:none dd:none
12.1.3 Configuring Online Targets with
ietadm
When changes to the iSCSI target configuration are necessary, you always must restart
the target to activate changes that are done in the configuration file. Unfortunately, all
active sessions are interrupted in this process. To maintain an undisturbed operation,
the changes should be done in the main configuration file
/etc/ietd.conf
, but
also made manually to the current configuration with the administration utility
ietadm
.
260
Installation and Administration
Содержание LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007
Страница 1: ...SUSE Linux Enterprise Server www novell com 10 May 11 2007 Installation and Administration...
Страница 14: ......
Страница 19: ...Part I Deployment...
Страница 20: ......
Страница 60: ......
Страница 128: ......
Страница 243: ...Part II Administration...
Страница 244: ......
Страница 274: ......
Страница 312: ......
Страница 348: ......
Страница 380: ......
Страница 381: ...Part III System...
Страница 382: ......
Страница 438: ......
Страница 452: ......
Страница 478: ......
Страница 486: ......
Страница 498: ......
Страница 512: ......
Страница 558: ......
Страница 559: ...Part IV Services...
Страница 560: ......
Страница 652: ......
Страница 670: ......
Страница 742: ......
Страница 754: ......
Страница 796: ......
Страница 817: ...Part V Security...
Страница 818: ......
Страница 858: ......
Страница 886: ......
Страница 910: ......
Страница 911: ...Part VI Troubleshooting...
Страница 912: ......
Страница 924: ......