iSCSI技术是一种由IBM公司研究开发的,是一个供硬件设备使用的可以在IP协议的上层运行的SCSI指令集,这种指令集合可以实现在IP网络上运行SCSI协议,使其能够在诸如高速千兆以太网上进行路由选择。iSCSI技术是一种新储存技术,该技术是将现有SCSI接口与以太网络(Ethernet)技术结合,使服务器可与使用IP网络的储存装置互相交换资料。
下面简单介绍一下FreeNAS怎么设置iscsi
1、授权存取
点击 Services -> ISCSI -> Authorized Accesses -> Add Authorized Access
输入后,我们点击view all authorized accesses
2、Initiators设置
点击Services -> ISCSI -> Initiators -> Add Initiator
输入后点view all initiators
3、Portals设置
点击Services -> ISCSI -> Portals -> Add Portal
直接点OK即可,点view all portals查看配置
4、Target Global Configuration
不用修改,直接OK
5、Targets设置
点击 Services -> ISCSI -> Targets -> Add Target,根据实际情况输入
6、Device and File Extents设置
这步是设置共享,iscsi中共享的不是卷,而是device extent或者file extent
Device extent: allows a raw partition or ZFS volume (zvol) to be exported via iSCSI. The advantage of device extent is that they are faster than file extents. The disadvantage is that the entire volume is exported. If you only want to share a portion of a volume using iSCSI, you will need to create a file extent instead.
File extent: allows you to export a portion of a volume. When creating a file extent, you can specify either a non-existing file name or an existing ZFS dataset. that iSCSI clients will have access to (similar in concept to a mount point) and the maximum size of that file (storage area). The advantage of file extents is that you can create multiple exports per volume. The disadvantage is that they are slower than device extents.
这里我们只演示device extent
Services -> ISCSI -> Device Extents -> Add Device Extent
7、Associated Targets设置
最后一步是将Target和Extent关联起来,Services -> iSCSI -> Associated Targets -> Add Target/Extent
8、windows xp 连接iscsi
点击Targets选项卡
点击logon
点击OK,在磁盘管理里,你就能看到新的磁盘,分区格式化就可以使用了,不再多说