HCNA-Storage BSSN 第六章 存储主机连接和多路径配置_第1页
HCNA-Storage BSSN 第六章 存储主机连接和多路径配置_第2页
HCNA-Storage BSSN 第六章 存储主机连接和多路径配置_第3页
HCNA-Storage BSSN 第六章 存储主机连接和多路径配置_第4页
HCNA-Storage BSSN 第六章 存储主机连接和多路径配置_第5页
已阅读5页,还剩38页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. 第六章 存储主机连接和多路径配置Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 1l学习完本章节后,您将能够:p 熟悉存储与应用服务器连接和应用服务器侧设备管理基础知识p熟悉应用服务器侧软件及其配置p 掌握windows平台和Linux平台多路径软件及其配置p最终具备涉及存储与应用服务器侧基本操作时的技术决策能力和部署能力目标Copyright 2012 Huawei T

2、echnologies Co., Ltd. All rights reserved. Page 2 存储与应用服务器连接存储与应用服务器连接 应用服务器侧软件 windows服务器和存储的连接 Linux服务器和存储的连接目录Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 3存储与应用服务器连接概念磁盘:磁盘:LUN 0磁盘:磁盘:LUN 1应用服务器存储设备Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 4

3、存储与应用服务器连接-基于FC应用服务器FC-SAN 交换机存储设备FC-SAN连接模式WWNWWNWWNWWN磁盘:磁盘:LUN LUN 0 0磁盘:磁盘:LUN LUN 1 1HBA驱动多路径软件Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 5存储与应用服务器连接-基于iSCSI应用服务器存储设备Network-SWiSCSIiSCSI连接模式连接模式( (网卡)网卡)应用服务器Network-SW存储设备iSCSIiSCSI连接模式连接模式(iSCSI-HBA)(iSCSI-HBA)HBA驱动

4、多路径软件启动器软件多路径软件磁盘:磁盘:LUN LUN 0 0磁盘:磁盘:LUN LUN 1 1启动器启动器启动器启动器启动器启动器启动器启动器Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 6 存储与应用服务器连接 应用服务器侧软件应用服务器侧软件 windows服务器和存储的连接 Linux服务器和存储的连接目录Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 7应用服务器侧软件操作系统lHBA驱动程序p

5、QlogicpEmulexl多路径软件pUltraPathpMicrosoft Multipathing l启动器软件pMicrosoft iSCSI InitiatorpOpen-iSCSIl集群软件pMSCSpRHCSpVCSpHeartbeatCopyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 8应用服务器侧软件-OSl操作系统的类型pWindowspLinuxpUnixl主流操作系统版本pWindows Server NT/2000/2003/2008pSuse Linux 9/10/11pRHE

6、L AS 4/5/6pAIX 4/5/6pSolaris 8/9/10pHP UX 11il操作系统支持的CPUpX86pX86_64pIA64pSPARCCopyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 9应用服务器侧软件启动器:启动器:Microsoft iSCSI InitiatorMicrosoft iSCSI Initiator多路径软件:多路径软件:UltraPath for WindowsUltraPath for WindowsCopyright 2012 Huawei Technolo

7、gies Co., Ltd. All rights reserved. Page 10兼容性举例-UltraPath多路径软件Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 11 存储与应用服务器连接 应用服务器侧软件 windows服务器和存储的连接服务器和存储的连接3.1 Initiator软件获取与安装软件获取与安装3.2 Windows 平台下iSCSI服务操作3.3 多路径安装 for windows3.4 Windows 设备管理3.5 Windows文件系统 Linux服务器和存储的连接

8、目录Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 12Initiator软件获取与安装不要勾选“Microsoft MPIO Multipathing Support for iSCSI”Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 13 存储与应用服务器连接 应用服务器侧软件 windows服务器和存储的连接服务器和存储的连接3.1 Initiator软件获取与安装3.2 Windows 平台下平台下i

9、SCSI服务操作服务操作3.3 多路径安装 for windows3.4 Windows 设备管理3.5 Windows文件系统 Linux服务器和存储的连接目录Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 14Windows 平台下iSCSI服务操作Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 15 存储与应用服务器连接 应用服务器侧软件 windows服务器和存储的连接服务器和存储的连接3.1 Ini

10、tiator软件获取与安装3.2 Windows 平台下iSCSI服务操作3.3 多路径安装多路径安装 for windows3.4 Windows 设备管理3.5 Windows文件系统 Linux服务器和存储的连接目录Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 16UltraPath for Windows安装前准备qUltraPath版本q 安装老版本的处理q Microsoft iSCSI Initiatorq HBA卡q操作系统补丁qIE浏览器UltraPath存储转换协议存储转换协议

11、Windows存储协议存储协议系统环境系统环境UltraPath检查应用服务器是否已安装Microsoft iSCSI Initiator安装Microsoft iSCSI Initiator 时,不能安装iSCSI 自带的多路径驱动程序。安装多路径前,请先确保iSCSI 启动器中没有连接,如有请先删除确保关闭HBA 卡自带的Failover 和Failback 功能同一应用服务器上必须安装同一厂家生产的同一型号HBA 卡若主机已经安装了旧版本的多路径软件,需卸载旧版本再重新安装存储系统控制框上已经正确配置端口模块Copyright 2012 Huawei Technologies Co.,

12、Ltd. All rights reserved. Page 17多路径安装 for windows开始安装验证安装完成安装Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 18多路径安装 for windows未安装多路径未安装多路径UltraPathUltraPath已安装多路径已安装多路径UltraPathUltraPathCopyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 19 存储与应用服务器连接 应用服

13、务器侧软件 windows服务器和存储的连接服务器和存储的连接3.1 Initiator软件获取与安装3.2 Windows 平台下iSCSI服务操作3.3 多路径安装 for windows3.4 Windows 设备管理设备管理3.5 Windows文件系统 Linux服务器和存储的连接目录Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 20Windows 设备管理1在BIOS中查看HBA卡WWN Copyright 2012 Huawei Technologies Co., Ltd. All r

14、ights reserved. Page 21Windows 设备管理2通过软件查看 HBA卡WWN(Qlogic) Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 22 存储与应用服务器连接 应用服务器侧软件 windows服务器和存储的连接服务器和存储的连接3.1 Initiator软件获取与安装3.2 Windows 平台下iSCSI服务操作3.3 多路径安装 for windows3.4 Windows 设备管理3.5 Windows文件系统文件系统 Linux服务器和存储的连接目录Copyr

15、ight 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 23了解Windows 平台文件系统Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 24Windows 平台文件系统1要让应用服务器正确地使用存储映射的LUN,你还需要了解这些概念Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 25Windows 平台文件系统2NTFSFAT32

16、运行 Windows2000、WindowsXP 或 Windows Server2003 家族产品的计算机可以访问本地 NTFS 分区上的文件。运行带有 Service Pack5 或更高版本的 WindowsNT4.0 的计算机或许可以访问某些文件。其他操作系统则不允许本地访问。只能用 Windows95 OSR2、Windows98、Windows Millennium Edition、Windows2000、WindowsXP 和 Windows Server2003 家族产品访问本地分区上的文件。lWindows平台文件系统与操作系统各版本的兼容性lWindows平台文件系统支持的磁

17、盘和文件大小NTFSFAT32建议卷的最小大小约为 10 MB。最大的卷和分区大小起始为 2 千吉字节 (TB),并可以达更大范围。例如,通过标准分配单元大小 (4 KB) 格式化的动态磁盘可有 16 TB 减去 4 KB 的分区。无法在软盘上使用。使用 Windows Server 2003 家族产品,可对容量为 33 MB 到 2 TB 的卷进行读或写。使用 Windows Server 2003 家族产品可以将 32 GB 的卷格式化为 FAT32。不支持域。尽管文件大小不能超过它们所在的卷或分区的大小,但潜在的最大文件大小可为 16 TB 减去 64 KB。最大文件大小为 4 GB。C

18、opyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 26Windows 平台文件系统2NTFSFAT32运行 Windows2000、WindowsXP 或 Windows Server2003 家族产品的计算机可以访问本地 NTFS 分区上的文件。运行带有 Service Pack5 或更高版本的 WindowsNT4.0 的计算机或许可以访问某些文件。其他操作系统则不允许本地访问。只能用 Windows95 OSR2、Windows98、Windows Millennium Edition、Window

19、s2000、WindowsXP 和 Windows Server2003 家族产品访问本地分区上的文件。lWindows平台文件系统与操作系统各版本的兼容性lWindows平台文件系统支持的磁盘和文件大小NTFSFAT32建议卷的最小大小约为 10 MB。最大的卷和分区大小起始为 2 千吉字节 (TB),并可以达更大范围。例如,通过标准分配单元大小 (4 KB) 格式化的动态磁盘可有 16 TB 减去 4 KB 的分区。无法在软盘上使用。使用 Windows Server 2003 家族产品,可对容量为 33 MB 到 2 TB 的卷进行读或写。使用 Windows Server 2003 家

20、族产品可以将 32 GB 的卷格式化为 FAT32。不支持域。尽管文件大小不能超过它们所在的卷或分区的大小,但潜在的最大文件大小可为 16 TB 减去 64 KB。最大文件大小为 4 GB。Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 27 存储与应用服务器连接 应用服务器侧软件 windows服务器和存储的连接 Linux服务器和存储的连接服务器和存储的连接4.1 Initiator软件获取与安装软件获取与安装4.2 Linux平台常用服务操作4.3 多路径安装 for Linux4.4 Linu

21、x设备管理4.5 Linux文件系统目录Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 28Initiator软件获取与安装l对于iSCSI连接 ,安装多路径软件前需要先安装Initiator软件lOpen-iSCSI是用于RedHat Linux 5和SuSE Linux 10及更高版本的Linux系统与IP SAN设备对接的Initiator软件。Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 29 存储

22、与应用服务器连接 应用服务器侧软件 windows服务器和存储的连接 Linux服务器和存储的连接服务器和存储的连接4.1 Initiator软件获取与安装4.2 Linux平台常用服务操作平台常用服务操作4.3 多路径安装 for Linux4.4 Linux设备管理4.5 Linux文件系统目录Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 30Linux平台常用服务操作# /etc/init.d/open-iscsi top# /etc/init.d/open-iscsi topClosing

23、all iSCSI connections: Logging out of session sid: 1, target: iqn.2006-.huawei:oceanstor:2100001882f31574:192.168.10.34, portal: 192.168.10.34,3260Logout of sid: 1, target: iqn.2006-.huawei:oceanstor:2100001882f31574:192.168.10.34, portal: 192.168.10.34,3260: successful doneStopping iSCSI initiator

24、service: FATAL: Module iscsi_tcp is in use done# /etc/init.d/open-iscsi start# /etc/init.d/open-iscsi startStarting iSCSI initiator service: doneSetting up iSCSI targets: Logging in to iface: default, target: iqn.2006-.huawei:oceanstor:2100001882f31574:192.168.10.34, portal: 192.168.10.34,3260 Login

25、 to iface: default, target: iqn.2006-.huawei:oceanstor:2100001882f31574:192.168.10.34, portal: 192.168.10.34,3260: successful done# /etc/init.d/open-iscsi status# /etc/init.d/open-iscsi statusChecking for iSCSI initiator service: running停止open-iscsi服务启动open-iscsi服务查看open-iscsi状态Copyright 2012 Huawei

26、 Technologies Co., Ltd. All rights reserved. Page 31 存储与应用服务器连接 应用服务器侧软件 windows服务器和存储的连接 Linux服务器和存储的连接服务器和存储的连接4.1 Initiator软件获取与安装4.2 Linux平台常用服务操作4.3 多路径安装多路径安装 for Linux4.4 Linux设备管理4.5 Linux文件系统目录Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 32UltraPath版本 安装老版本的处理 Linu

27、x iSCSI Initiator HBA卡操作系统补丁UltraPath存储转换协议存储转换协议 Linux存储协议存储协议系统环境系统环境UltraPathl检查Linux操作系统及Service Pack版本与UltraPath的兼容性l确保关闭HBA 卡自带的Failover 和Failback 功能l同一应用服务器上必须安装同一厂家生产的同一型号HBA 卡l存储系统控制框上已经正确配置端口模块l准备好安装所需的软件包UltraPath for Linux安装前准备Copyright 2012 Huawei Technologies Co., Ltd. All rights reser

28、ved. Page 33安装UltraPath for Linux lUltraPath for Linux 软件安装完成后,UltraPath for Linux 软件将存储系统上的资源映射到该应用服务器上。此时在应用服务器端可以像使用本地磁盘一样,对从存储系统得到的资源进行分区、建立文件系统和数据存取等操作。# ./install.sh# ./install.shPreparing. # 100%1:UltraPath # 100%No UltraPath driver installed on your systemChecking Host Adapter Configuration.

29、Detected 2 QLogic Host Adapter Port(s) on the systemPlease wait while we modify the system configuration files.Your kernel version is 2.6.16.21-0.8-smpPreparing to install UltraPath driver against this kernel version.Generating module dependencies.Creating new UltraPath initrd image.20746 blocksUltr

30、aPath driver package has been successfully installed, please reboot your system to enable the driver.A User Guide docs has been installed in /opt/UltraPath!Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 34 存储与应用服务器连接 应用服务器侧软件 windows服务器和存储的连接 Linux服务器和存储的连接服务器和存储的连接4.1 Initia

31、tor软件获取与安装4.2 Linux平台常用服务操作4.3 多路径安装 for Linux4.4 Linux设备管理设备管理4.5 Linux文件系统目录Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 35Linux 设备管理l查看SCSI控制器信息lspci | grep SCSIcat /proc/scsi/scsicat /proc/scsi/qla2300/1|grep portl磁盘df h fdisk l lsscsi partprobel查看网卡等硬件的信息lspci | grep E

32、thernetl查看CPU信息 cat /proc/cpuinfol内存cat /proc/meminfo free -mCopyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 36Linux平台常用命令Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 37 存储与应用服务器连接 应用服务器侧软件 windows服务器和存储的连接 Linux服务器和存储的连接服务器和存储的连接4.1 Initiator软件获取与安装4

33、.2 Linux平台常用服务操作4.3 多路径安装 for Linux4.4 Linux设备管理4.5 Linux文件系统文件系统目录Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 38Linux平台文件系统1Filesystem File Size Limit Filesystem Size Limit ext2/ext3 with 1 KB blocksize16448 MB ( 16 GB)2048 GB (= 2 TB)ext2/3 with 2 KB blocksize256 GB8192

34、GB (= 8 TB)ext2/3 with 4 KB blocksizeext2/3 with 4 KB blocksize2048 GB (= 2 TB)2048 GB (= 2 TB)8192 GB (= 8 TB)8192 GB (= 8 TB)ext2/3 with 8 KB blocksize65568 GB ( 64 TB)32768 GB (= 32 TB)ReiserFS 3.52 GB16384 GB (= 16 TB)ReiserFS 3.6 (as in Linux 2.4)1 EB16384 GB (= 16 TB)XFS8 EB8 EBJFS with 512 By

35、tes blocksize8 EB512 TBJFS with 4KB blocksize8 EB4 PBLinuxLinux文件系统对大文件支持的对比文件系统对大文件支持的对比Copyright 2012 Huawei Technologies Co., Ltd. All rights reserved. Page 39Linux平台文件系统2# fdisk /dev/sdbfdisk /dev/sdb Command (m for help): n Command action e extended p primary partition (1-4) p Partition number

36、(1-4): 1 First cylinder (1-1011, default 1): 1 Last cylinder (1-1011, default 1): 1011 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. # # mkfs.ext3 /dev/sdb1 mkfs.ext3 /dev/sdb1mke2fs 1.38 (30-Jun-2005) /dev/sdb is entire devi

37、ce, not just one partition! Proceed anyway? (y,n) y Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 131072 inodes, 262144 blocks 13107 blocks (5.00%) reserved for the super user First data block=0 8 block groups 32768 blocks per group, 32768 fragments per group 16384 inodes per group

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论