iSCSI网络存储服务解读课件.ppt
《iSCSI网络存储服务解读课件.ppt》由会员分享,可在线阅读,更多相关《iSCSI网络存储服务解读课件.ppt(22页珍藏版)》请在三一办公上搜索。
1、第五章 iSCSI网络存储服务, 理论部分,iSCSI网络存储服务,如何启用Nginx的访问统计模块Nginx对虚拟主机的配置如何实现?要使Nginx支持PHP解析,主要有哪两种方式?,课程回顾,了解常见的网络存储技术学会构建iSCSI服务器学会使用iSCSI存储设备,技能展示,本章结构,iSCSI网络存储服务,连接iSCSI存储设备,使用iSCSI存储设备,网络存储概述,构建iSCSI服务器,构建iSCSI服务器,使用iSCSI存储设备,Storage Area Network,存储区域网络多采用高速光纤通道,对速率、冗余性要求高使用iSCSI存储协议,块级传输,网络存储概述2-1,Netw
2、ork Attachment Storage,网络附加存储采用普通以太网,对速率、冗余无特别要求使用NFS、CIFS共享协议,文件级传输,网络存储概述2-2,iSCSI的工作方式服务(设备)端 target客户(应用)端 initiator,构建iSCSI服务器5-1,iSCSI服务器,逻辑单元,逻辑磁盘空间,准备作为LUN发布的存储设备可以是硬盘、分区、逻辑卷、RAID阵列使用mdadm工具可创建软RAID阵列设备-C,-create创建新的RAID设备-n,-raid-devices=阵列所使用的磁盘数量-l,-level=RAID级别-Q,-query查询设备的RAID信息-D,-det
3、ail查询RAID设备的详细信息-S,-stop解散、停止/删除RAID阵列,构建iSCSI服务器5-2,rootlocalhost # mdadm -Cv /dev/md0 -a yes -n3 -l5 /dev/sdbcdmdadm: size set to 20969984Kmdadm: Defaulting to version 1.2 metadatamdadm: array /dev/md0 started.rootlocalhost # mdadm -Q /dev/md0/dev/md0: 39.100GiB RAID 5 3 devices, 0 spares. Use mda
4、dm -detail for more detail,3块盘组建RAID 5阵列,rootlocalhost # mdadm -D /dev/md0 UUID : 05f79ac3:7e2288b9:fbb75d2a:258cea1arootlocalhost # vi /etc/mdadm.confDEVICE /dev/sdb /dev/sdc /dev/sddARRAY /dev/md0 UUID=05f79ac3:7e2288b9:fbb75d2a:258cea1a,RAID阵列配置文件,RAID阵列的UUID号,创建iSCSI对象(target)软件包:scsi-target-uti
5、ls使用tgtdm工具创建target-L、-lld指定驱动类型,如“-L iscsi”-o、-op指定操作类型,如“-o new”-m、-mode指定管理目标,如“-m target”-t、-tid指定对象ID号,如“-t 1”-T、-targetname指定iSCSI对象的名称,构建iSCSI服务器5-3,rootlocalhost # service tgtd startrootlocalhost # netstat -anpt | grep tgtdtcp 0 0 0.0.0.0:3260 0.0.0.0:* LISTEN 20353/tgtdrootlocalhost # tgtad
6、m -L iscsi -o new -m target -t 1 -T iqn.2011-.benet.store:lvmrootlocalhost # tgtadm -L iscsi -o new -m target -t 2 -T iqn.2011-.benet.store:raid,先启动tgtd服务,名称规范:iqn.YYYY-mm.反向域名:识别标记,rootlocalhost # tgtadm -L iscsi -o show -m targetTarget 1: iqn.2011-.benet.store:lvm Target 2: iqn.2011-.benet.store:r
7、aid System information: Driver: iscsi State: ready I_T nexus information: LUN information: LUN: 0 Type: controller SCSI ID: IET 00020000 ,默认的控制LUN,ID为0,为客户机分配LUN仍然使用tgtdam管理工具-l、-lun指定LUN的ID号,如“-l 1”-b、-backing-store指定块设备位置,如“-b /dev/md0”-I、-initiator-address 指定客户机地址,如“-I 192.168.4.22”,构建iSCSI服务器5-4
8、,rootlocalhost # tgtadm -lld iscsi -o new -m logicalunit -t 1 -l 1 -b /dev/vol0/lv-host21rootlocalhost # tgtadm -lld iscsi -o new -m logicalunit -t 2 -l 1 -b /dev/md0rootlocalhost # tgtadm -lld iscsi -o bind -m target -t 1 -I 192.168.4.21rootlocalhost # tgtadm -lld iscsi -o bind -m target -t 2 -I 19
9、2.168.4.22,为target添加LUN设备,为target设置ACL访问控制,rootlocalhost # tgtadm -L iscsi -o show -m targetTarget 2: iqn.2011-.benet.store:raid LUN: 1 Type: disk SCSI ID: IET 00020001 SCSI SN: beaf21 Size: 42947 MB, Block size: 512 Online: Yes Removable media: No Readonly: No Backing store type: rdwr Backing store
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- iSCSI 网络 存储 服务 解读 课件

链接地址:https://www.31ppt.com/p-1480998.html