Windows 上启动器的安装及使用iSCSI 客户端.docx

上传人:b****5 文档编号:12087201 上传时间:2023-04-17 格式:DOCX 页数:14 大小:174.44KB
下载 相关 举报
Windows 上启动器的安装及使用iSCSI 客户端.docx_第1页
第1页 / 共14页
Windows 上启动器的安装及使用iSCSI 客户端.docx_第2页
第2页 / 共14页
Windows 上启动器的安装及使用iSCSI 客户端.docx_第3页
第3页 / 共14页
Windows 上启动器的安装及使用iSCSI 客户端.docx_第4页
第4页 / 共14页
Windows 上启动器的安装及使用iSCSI 客户端.docx_第5页
第5页 / 共14页
点击查看更多>>
下载资源
资源描述

Windows 上启动器的安装及使用iSCSI 客户端.docx

《Windows 上启动器的安装及使用iSCSI 客户端.docx》由会员分享,可在线阅读,更多相关《Windows 上启动器的安装及使用iSCSI 客户端.docx(14页珍藏版)》请在冰豆网上搜索。

Windows 上启动器的安装及使用iSCSI 客户端.docx

Windows上启动器的安装及使用iSCSI客户端

附录Ⅰ:

Windows上启动器的安装及使用

微软为了支持iSCSI应用,提供了标准的iSCSI客户端,也叫iSCSI启动器,软件

的最新版本可以从网址下载;在本机的随机光

盘中,包含了本软件的Initiator-2.04-build3273-x86fre版本,可以直接安装使用。

下面以2.04版本为例来说明。

直接点击软件的安装文件,运行后出现安装界面。

直接点击【下一步】把install

ationoptions的复选框都选中,然后再点【下一步】,【IAgree】就开始安装了。

装完成后点【完成】即可。

安装成功后在桌面生成一个图标,如下:

图Ⅰ-1MicrosoftiSCSIInitiator

双击图标运行客户端,出现客户端界面,选中General选项卡,这里可以设置win

-initiator的节点名,如果您想在登录目标器时使用双向CHAP认证方式,您需要在这

里设置initiator验证目标器的密码,点击【Secret】按钮会弹出一个设置对话框,

填入一个长度为12-16字节的密码,点击【ok】即可。

43

图Ⅰ-2win-initiator设置

选中Discovery选项卡,如图Ⅰ-3所示。

图Ⅰ-3win-initiator设置

TargetPortals用来显示目标器信息,和target端建立联系。

iSNSSevers是名

字服务器的相关设置。

首先点击TargetPortals中的【Add】按钮,在弹出的对话框中

填入目标器IP地址,如图Ⅰ-4,端口使用默认值3260,点击【ok】按钮即可,这时如

44

果弹出ConnectionFailed警告信息,就说明连接不成功,请检查您的网络连接是否

畅通,您的目标器端设置的限制Initiator连接的IP是否正确。

如果没有弹出此对话

框说明操作成功,可以进入下一步登录了。

图Ⅰ-4win-initiator发现目标器

选中Targets复选框,就会看到如图Ⅰ-5所示,您所连接目标端的所有可用的目

标器,但状态(status)是inactive,单击下面的【LogOn】按钮。

图Ⅰ-5targets

这时会跳出一个如图Ⅰ-6的对话框,点击【advanced】按钮会弹出设置登录目标

器的详细信息,如图Ⅰ-6所示

45

图Ⅰ-6登录目标器

图Ⅰ-7登录targetCHAP认证

CRC/Checksum是循环冗余校验设置,需要和目标器端选择相同的设置。

如果您的

目标器端设置了initiator登录目标器的目标器口令,那么您需要在输入此密码,Use

rname为目标器段所设置的启动器名。

如果您需要使用双向的chap认证,那么您需要

46

勾选Performmutualauthentication选框。

这样只有您在图Ⅰ-2设置的sercret和

目标器端设置的启动器密码一致才能够登录成功。

如果都设置好了点击【确定】按钮回

到图Ⅰ-5所示的对话框。

如果选择了Automaticallyrestore...,客户机以后重启的时候会自动连接该目

标器。

如果想取消自动连接,在PersistentTargets里面把目标器删除。

如果登录成功服务器的状态(Status)将由Inactive变为Connected。

如果登录不

成功会弹出提示对话框,您需要检查刚刚设置的CHAP认证密码是否和目标器端一致,C

RC校验信息是否正确,目标端是否启动,网络是否畅通等。

建立连接后可以在磁盘管

理里面看到新添加的磁盘,如图Ⅰ-8所示

图Ⅰ-8查看虚拟磁盘

这里所看到的磁盘1就是由initiator映射过来的磁盘。

现在就可以像操作本地磁

盘一样对它进行操作了。

47

附录II:

Linux上启动器的安装和使用

在所使用的Linux发行版光盘上找到iscsiinitiator软件包,并安装到发行版中,

或者从官方网站(http:

//www.open-iscsi.org/)上下载源码包编译安装。

以RHEL5.2

为例:

1.安装RPM包

首先放入redhat安装盘,光盘会被自动挂载到/media/RHEL_5.2\i386\DVD/Ser

ver/目录下,如果没有挂载请手动载。

然后执行下列操作:

[root@localhost~]#cd/media/RHEL_5.2\i386\DVD/Server/

[root@localhostServer]#ls|grepiscsi

iscsi-initiator-utils-6.2.0.868-0.7.el5.i386.rpm

[root@localhostServer]#rpm-ivhiscsi-initiator-utils-6.2.0.868-0.7.el5.i

386.rpm

2.启动ISCSI服务

安装完iscsi服务默认是关闭的,需要手工启动运行

[root@localhostServer]#/etc/init.d/iscsistart

或者

[root@localhostServer]#serviceiscsistart

3.将target端磁盘映射给本主机

从配置文件/etc/iscsi/initiatorname中查找发起端名称,将其名称增加到主机

管理中。

增加方式可参考3.2主机组管理。

[root@wuqingminlihua]#cat/etc/iscsi/initiatorname.iscsi

InitiatorName=iqn.1994-.fedora:

wuqingmin

表明本机的发起端名称为:

iqn.1994-.fedora:

wuqingmin。

48

4.搜寻并显示磁盘阵列

[root@localhostiscsi]#iscsiadm-mdiscovery-tsendtargets-p192.168.0.

239

192.168.0.239:

3260,1iqn.2001-.example:

storage.disk2.sys1.xyz

[root@localhostiscsi]#iscsiadm-mnode

192.168.0.239:

3260,1iqn.2001-.example:

storage.disk2.sys1.xyz

5.登录/登出磁盘阵列

[root@localhostiscsi]#iscsiadm-mnode-p192.168.0.239:

3260-l

Logginginto[iface:

default,target:

iqn.2001-.example:

storage.dis

k2.sys1.xyz,portal:

192.168.0.239,3260]

Loginto[iface:

default,target:

iqn.2001-.example:

storage.disk2.sy

s1.xyz,portal:

192.168.0.239,3260]:

successful

其中,3260是iscsitarget的服务端口号。

用户可以将以上命令添加到/etc/iscsi/iscsid.conf文件中,重启系统后将自动

登录到磁盘阵列。

[root@localhostiscsi]#iscsiadm-mnode-p192.168.0.239:

3260-u

Loggingoutofsession[sid:

9,target:

iqn.2001-.example:

storage.di

sk2.sys1.xyz,portal:

192.168.0.239,3260]

Logoutof[sid:

9,target:

iqn.2001-.example:

storage.disk2.sys1.xyz,

portal:

192.168.0.239,3260]:

successful

登录到磁盘阵列之前,需要通过Web页面添加主机组、添加主机、并为该主机映射

磁盘,这样,登录到磁盘阵列后,就可以使用为该主机分配的卷了。

在以上管理过程中,我们都使用了iscsiadm这个命令,这个命令openiscsi的管

理命令。

可以通过maniscsiadm可以查看它全部参数和使用方式。

6.查看磁盘阵列中为当前机器分配的卷、创建分区、制作文件系统并挂载

49

查看当前机器的存储设备:

[root@localhostiscsi]#fdisk-l

Disk/dev/hda:

8589MB,8589934592bytes

255heads,63sectors/track,1044cylinders

Units=cylindersof16065*512=8225280bytes

DeviceBootStartEndBlocksIdSystem

/dev/hda1*11310439183Linux

/dev/hda21410448281507+8eLinuxLVM

Disk/dev/hdb:

2147MB,2147483648bytes

16heads,63sectors/track,4161cylinders

Units=cylindersof1008*512=516096bytes

Disk/dev/hdbdoesn'tcontainavalidpartitiontable

Disk/dev/sda:

107.3GB,107374182400bytes

255heads,63sectors/track,13054cylinders

Units=cylindersof16065*512=8225280bytes

Disk/dev/sdadoesn'tcontainavalidpartitiontable

以上输出中,/dev/sda是磁盘阵列中为当前机器添加的卷,用户可以在该卷上创

建分区:

[root@localhostiscsi]#fdisk/dev/sda

DevicecontainsneitheravalidDOSpartitiontable,norSun,SGIorOSFd

isklabel

50

BuildinganewDOSdisklabel.Changeswillremaininmemoryonly,

untilyoudecidetowritethem.Afterthat,ofcourse,theprevious

contentwon'tberecoverable.

Thenumberofcylindersforthisdiskissetto13054.

Thereisnothingwrongwiththat,butthisislargerthan1024,

andcouldincertainsetupscauseproblemswith:

1)softwarethatrunsatboottime(e.g.,oldversionsofLILO)

2)bootingandpartitioningsoftwarefromotherOSs

(e.g.,DOSFDISK,OS/2FDISK)

Warning:

invalidflag0x0000ofpartitiontable4willbecorrectedbyw(r

ite)

Command(mforhelp):

p

Disk/dev/sda:

107.3GB,107374182400bytes

255heads,63sectors/track,13054cylinders

Units=cylindersof16065*512=8225280bytes

DeviceBootStartEndBlocksIdSystem

Command(mforhelp):

s

Buildinganewsundisklabel.Changeswillremaininmemoryonly,

untilyoudecidetowritethem.Afterthat,ofcourse,theprevious

contentwon'tberecoverable.

Drivetype

?

autoconfigure

51

0custom(withhardwaredetecteddefaults)

aQuantumProDrive80S

bQuantumProDrive105S

cCDCWrenIV94171-344

dIBMDPES-31080

eIBMDORS-32160

fIBMDNES-318350

gSEAGATEST34371

hSUN0104

iSUN0207

jSUN0327

kSUN0340

lSUN0424

mSUN0535

nSUN0669

oSUN1.0G

pSUN1.05

qSUN1.3G

rSUN2.1G

sIOMEGAJaz

Selecttype(?

forauto,0forcustom):

h

Youmaychangeallthediskparamsfromthexmenu

Command(mforhelp):

p

Disk/dev/sda(Sundisklabel):

6heads,35sectors,974cylinders

Units=cylindersof210*512bytes

DeviceFlagStartEndBlocksIdSystem

52

/dev/sda106496814583Linuxnative

/dev/sda2u6499743412582Linuxswap

/dev/sda309741022705Wholedisk

Command(mforhelp):

w

Thepartitiontablehasbeenaltered!

Callingioctl()tore-readpartitiontable.

Syncingdisks.

创建文件系统并挂载使用:

[root@localhostiscsi]#mkfs/dev/sda3

mke2fs1.39(29-May-2006)

Filesystemlabel=

OStype:

Linux

Blocksize=1024(log=0)

Fragmentsize=1024(log=0)

25584inodes,102268blocks

5113blocks(5.00%)reservedforthesuperuser

Firstdatablock=1

Maximumfilesystemblocks=67371008

13blockgroups

8192blockspergroup,8192fragmentspergroup

1968inodespergroup

Superblockbackupsstoredonblocks:

8193,24577,40961,57345,73729

Writinginodetables:

done

Writingsuperblocksandfilesystemaccountinginformation:

done

53

Thisfilesystemwillbeautomaticallycheckedevery23mountsor

180days,whichevercomesfirst.Usetune2fs-cor-itooverride.

[root@localhostiscsi]#mkdir/mnt/lv/

[root@localhostiscsi]#mount/dev/sda3/mnt/lv/

[root@localhostiscsi]#cd/mnt/lv

[root@localhostlv]#pwd

/mnt/lv

[root@localhostlv]#ls

lost+found

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 小学教育 > 小学作文

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1