配置光纤交换机
1.安装jre_1.6.x版本java,将配置本机IP为10.77.77.0网段,通过浏览器登录交换机图形界面或命令行telnet、ssh登录,
username:admin Password:password
2.登录后到如下图界面,点击switch admin
3.这时显示wwn和license信息
4.点击new alias创建新的别名
5.在Member Selection list中选择要取别名的端口添加到右边alias Member中(这里给端口设置别名的
作用主要是为了方便后期管理,也可以不设置别名)
6.点击new zone创建新的zone,并将前面相应的设置别名的端口添加到zone member中
7.创建new zone config,并将需要启用的zone添加到config member中,然后save config,
最后enable config完成配置
这里新建了4个zone,加入到了一个zone config,save config和enable config后完成配置。
一. VNX5200安装和配置
1. 安装jre_1.6以上版本,本地windows网络连接VNX5200的A控SPA,通过浏览器访问
https://1.1.1.1, username: sysadmin
Password: sysadmin
2.选择要配置的存储systems,导航到Storage –>Storage poolsàRaid Groups
创建新的storge pools或raid groups,建议创建storge pools方便后期扩展
a.第一种方法创建raid groups
点击create创建新的Raid Groups:选择RAID types和manual,select相应的磁盘(注意前面4块盘disk0~disk4为存储系统盘,不要动)
create lun
创建第2个lun和第3个lun
b.第2种方法创建storage pools
b1.这里选择EMC建议的4+1块盘创建storage pools
b2. 接下来创建3个600g的lun
3.创建热备盘hot space,这里不需要单独创建hot space,因为vnx5200的默认热备盘策略是将所有未配置的非系统盘设置成hot space,所以这里只需保留一块未设置的disk即可。
4.连接好光纤交换机,存储和服务器之间的线路,配置好光纤交换机,点击initiators刷新,
并注册initiators,这里hostname和ip address是自定义的。
5.创建storage groups,并连接connects luns和connects hosts
成功完成connects luns和connects hosts后状态如下:
6.登录到linux主机,安装powerpath软件,查看是否映射成功
[root@localhost ~]# /etc/init.d/PowerPath stop
Stopping PowerPath: done
[root@localhost ~]# /etc/init.d/PowerPath start
Starting PowerPath: done
[root@localhost ~]# powermt display dev=all
Pseudo name=emcpowerc
VNX ID=CETV2141700048 [Storage Group 1]
Logical device ID=600601606FC13800119243678B50E511 [LUN 0]
state=alive; policy=REquest; queued-IOs=0
Owner: default=SP A, current=SP A Array failover mode: 4
==============================================================================
--------------- Host --------------- - Stor - -- I/O Path -- -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
1 lpfc sdc SP A1 active alive 0 0
1 lpfc sdb SP B1 active alive 0 0
[root@localhost ~]# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 598.0 GB, 597998698496 bytes
255 heads, 63 sectors/track, 72702 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e6981
Device Boot Start End Blocks Id System
/dev/sda1 1 72703 583983103+ ee GPT
Disk /dev/mapper/VolGroup-lv_root: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/VolGroup-lv_swap: 16.9 GB, 16903045120 bytes
255 heads, 63 sectors/track, 2055 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/VolGroup-lv_home: 526.7 GB, 526670364672 bytes
255 heads, 63 sectors/track, 64030 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdb: 644.2 GB, 644245094400 bytes
255 heads, 63 sectors/track, 78325 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sdc: 644.2 GB, 644245094400 bytes
255 heads, 63 sectors/track, 78325 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/emcpowerc: 644.2 GB, 644245094400 bytes
255 heads, 63 sectors/track, 78325 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000