- 论坛徽章:
- 0
|
现在有两组服务器,其中一台服务器做iscsi-target ,做存储的服务端,配置文件如下:
- Target iqn.2009-03.test.iscsi:storage.diske2.sys1.xyz
- # Users, who can access this target. The same rules as for discovery
- # users apply here.
- # Leave them alone if you don't want to use authentication.
- #IncomingUser joe secret
- #OutgoingUser jim 12charpasswd
- # Logical Unit definition
- # You must define one logical unit at least.
- # Block devices, regular files, LVM, and RAID can be offered
- # to the initiators as a block device.
- Lun 0 Path=/iso/iscsi.iso,Type=fileio
- # Alias name for this target
- Alias iSCSI
- # various iSCSI parameters
- # (not all are used right now, see also iSCSI spec for details)
- #MaxConnections 1
- #InitialR2T Yes
- #ImmediateData No
- #MaxRecvDataSegmentLength 8192
- #MaxXmitDataSegmentLength 8192
- #MaxBurstLength 262144
- #FirstBurstLength 65536
- #DefaultTime2Wait 2
- #DefaultTime2Retain 20
- #MaxOutstandingR2T 8
- #DataPDUInOrder Yes
- #DataSequenceInOrder Yes
- #ErrorRecoveryLevel 0
- #HeaderDigest CRC32C,None
- #DataDigest CRC32C,None
- # various target parameters
- #Wthreads 8
复制代码
基本上没做什么策略,最简单的开启了iscsi-target的进程
客户端上也没有任何的策略,在/etc/iscsi.conf的末尾加了如下两行:
- DiscoveryAddress=10.0.0.152:3260
- TargetName=iqn.2009-03.test.iscsi:storage.diske2.sys1.xyz
复制代码
起来服务之后,通过netstat 可以看到有连接成功的,也可以进行分区,也可以挂载磁盘,进行读写。
但是有个问题,只要一起客户端的iscsi服务(进程名为iscsid),cpu的iowait一直居高不下,想问问大大,这个是不是因为iscsi的服务引起的,那改怎么做呢? |
|