
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
Mass Storage over IP Networks—iSCSI
261
Содержание 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: ......