Configuring Online Targets With Ietadm - Novell LINUX ENTERPRISE SERVER 11 - STORAGE ADMINISTRATION GUIDE 2-23-2010 Administration Manual

Table of Contents

Advertisement

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. For more information,
see the man page of
ietd.conf
Active sessions are also displayed in the
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

13.2.4 Configuring Online Targets with ietadm

When changes to the iSCSI target configuration are necessary, you must always 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
the administration utility ietadm.
To create a new iSCSI target with a LUN, first update your configuration file. The additional entry
could be:
Target iqn.2006-02.com.example.iserv:system2
Lun 0 Path=/dev/mapper/system-swap2
IncomingUser joe secret
To set up this configuration manually, proceed as follows:
1 Create a new target with the command
Name=iqn.2006-02.com.example.iserv:system2
2 Add a logical unit with
mapper/system-swap2
3 Set the username and password combination on this target with
-user --params=IncomingUser=joe,Password=secret
4 Check the configuration with
It is also possible to delete active connections. First, check all active connections with the command
cat /proc/net/iet/session
cat /proc/net/iet/session
tid:1 name:iqn.2006-03.com.example.iserv:system
sid:281474980708864 initiator:iqn.1996-04.com.example:01.82725735af5
cid:0 ip:192.168.178.72 state:active hd:none dd:none
To delete the session with the session ID 281474980708864, use the command
delete --tid=1 --sid=281474980708864 --cid=0
inaccessible on the client system and processes accessing this device are likely to hang.
.
file system. For each connected initiator, an extra
/proc
:
, but also made manually to the current configuration with
ietadm --op new --tid=2 --params
ietadm --op new --tid=2 --lun=0 --params Path=/dev/
.
cat /proc/net/iet/volume
. This might look like:
.
ietadm --op new --tid=2 -
.
.
ietadm --op
. Be aware that this makes the device
Mass Storage over IP Networks: iSCSI 123

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11 storage

Table of Contents