Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 04-08-2006 Installation Manual page 263

Table of Contents

Advertisement

To create a new iSCSI target with a LUN, first update your configuration file. The ad-
ditional 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 ietadm --op new --tid=2
--params Name=iqn.2006-02.com.example.iserv:system2.
2 Add a logical unit with ietadm --op new --tid=2 --lun=0
--params Path=/dev/mapper/system-swap2.
3 Set the username and password combination on this target with ietadm --op
new --tid=2 --user
--params=IncomingUser=joe,Password=secret.
4 Check the configuration with cat /proc/net/iet/volume.
It is also possible to delete active connections. First, check all active connections with
the command cat /proc/net/iet/session. This may look like:
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 ietadm
--op delete --tid=1 --sid=281474980708864 --cid=0. Be aware
that this makes the device unaccessible on the client system and processes accessing
this device are likely to hang.
ietadm can also be used to change various configuration parameters. Obtain a list of
the global variables with ietadm --op show --tid=1 --sid=0. The output
looks like:
InitialR2T=Yes
ImmediateData=Yes
MaxConnections=1
MaxRecvDataSegmentLength=8192
MaxXmitDataSegmentLength=8192
MaxBurstLength=262144
FirstBurstLength=65536
DefaultTime2Wait=2
Mass Storage over IP Networks—iSCSI
263

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents