命令行配置6140光纤阵列.doc_第1页
命令行配置6140光纤阵列.doc_第2页
命令行配置6140光纤阵列.doc_第3页
命令行配置6140光纤阵列.doc_第4页
命令行配置6140光纤阵列.doc_第5页
已阅读5页,还剩9页未读 继续免费阅读

下载本文档

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

文档简介

1 命令行配置6140光纤阵列1.1 安装CAM软件6140光纤阵列需要使用Sun StorageTek Common Array Manager (CAM)来进行管理,下面是在sun小型机机上安装此管理软件包(如果是双机主备机都可以安装或者只在其中一台主机上安装)。1.1.1 将CAM安装光盘插入到DVD-ROM1.1.2 启动安装脚本# cd /cdrom/cdrom0#./RunMe.bin c1.1.3 当系统出现以下提示时,按”Enter”继续Press 1 for Next, 3 to Cancel or 5 to Redisplay 1系统显示CAM的license信息。1.1.4 当系统出现以下提示时,输入”q”,按”Enter”继续Press ENTER to read the text Type q to quit1.1.5 当系统出现以下提示时,输入”1”接受license,按”Enter”继续Please choose from the following options: 1 - I accept the terms of the license agreement.X 2 - I do not accept the terms of the license agreement.To select an item enter its number, or 0 when you are finished: 0 11.1.6 当系统出现以下提示时,输入”0”,按”Enter”继续 1 - I accept the terms of the license agreement.X 2 - I do not accept the terms of the license agreement.To select an item enter its number, or 0 when you are finished: 0 01.1.7 当系统出现以下提示时,按”Enter”继续。Press 1 for Next,2 for Previous, 3 to Cancel or 5 to Redisplay 11.1.8 当系统出现以下提示时,按”Enter”选择默认的安装类型继续安装。Select the number corresponding to the type of install you would like or 0 to continue: 01.1.9 当系统再次出现以下提示时,按”Enter”开始安装。Press 1 for Next,2 for Previous, 3 to Cancel or 5 to Redisplay 1安装过程需要一定时间,请等待。1.1.10 当系统再次出现以下提示时,输入3,按”Enter”完成安装。Press 3 to finish or press 5 to Redisplay 31.1.11 安装完毕后,请取出安装光盘。# cd /# eject 说明:如果操作系统是solaris 10(06/11)以上的版本,请使用CAM5.1以上版本现面是具体CAM安装过程 Initializing InstallShield Wizard. Extracting Bundled JRE. Installing Bundled JRE. Verifying JVM. Extracting Installation Archive. Launching InstallShield Wizard.-Sun StorageTek(TM) Common Array ManagerHost Software InstallationUse the host software installer to install the Sun StorageTekTMCommon Array Manager on your computer.To continue, choose Next Sun StorageTekTM Common Array Manager Sun Microsystems, Inc. Press 1 for Next, 3 to Cancel or 5 to Redisplay 1 -Please read the following license agreement carefully.Sun StorageTek(TM) Common Array ManagerCopyright ? 2006 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in this product or document. In particular, and without limitation, these intellectual property rights may include one or more of the U.S. patents listed at /patents and one or more additional patents or pending patent applications in the U.S. and other countries.This product or document is distributed under licenses restricting its use, copying distribution, and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any.Third-party software, including font technology, is copyrighted and licensed from Sun suppliers.Parts of the product may be derived from Berkeley BSD systems, licensed from Press ENTER to read the text Type q to quit qPlease choose from the following options: 1 - I accept the terms of the license agreement.X 2 - I do not accept the terms of the license agreement.To select an item enter its number, or 0 when you are finished: 0 1X 1 - I accept the terms of the license agreement. 2 - I do not accept the terms of the license agreement.To select an item enter its number, or 0 when you are finished: 0 Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay 1 1-Sun StorageTek(TM) Common Array ManagerChoose the installation type that best suits your needs.X 1 - Typical The program will be installed with the suggested configuration. Recommended for most users. 2 - Custom The program will be installed with the features you choose. Recommended for advanced users.Select the number corresponding to the type of install you would like or 0 tocontinue: 0Press 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay 1 -Checking current system .|-|-|-|-|0% 25% 50% 75% 100%|-Sun StorageTek(TM) Common Array ManagerSoftware To Be Installed:Sun StorageTek(TM) Management Host SoftwarePress 1 for Next, 2 for Previous, 3 to Cancel or 5 to Redisplay 1 Mar 27 11:26:50 hwhlr-ph1 last message repeated 19 timesMar 27 11:27:09 hwhlr-ph1 picld74: Device PS1 AC UNAVAILABLE-Preparing for installation - Java 2 Standard Edition|-|-|-|-|0% 25% 50% 75% 100%|-Preparing for installation - Sun Java Web Console|-|-|-|-|0% 25% 50% 75% 100%|-Preparing for installation - Sun StorageTek(TM) Software Manager|-|-|-|-|0% 25% 50% 75% 100%|-Preparing for installation - Sun StorageTek(TM) Fault Management Services|-|-|-|-|0% 25% 50% 75% 100%|-Preparing for installation - Sun StorageTek(TM) Configuration Service-CLI|-|-|-|-|0% 25% 50% 75% 100%|-Preparing for installation - Sun StorageTek(TM) Configuration Service-BUI|-|-|-|-|0% 25% 50% 75% 100%|-Preparing for installation - Sun StorageTek(TM) Online Help|-|-|-|-|0% 25% 50% 75% 100%|-Preparing for installation - Sun StorageTek(TM) Array Firmware|-|-|-|-|0% 25% 50% 75% 100%|-Sun StorageTek(TM) Common Array ManagerInstalling Java 2 Standard Edition. Please wait.|-|-|-|-|0% 25% 50% 75% 100%|Installing Java 2 Standard EditionMar 27 11:33:40 hwhlr-ph1 last message repeated 20 timesMar 27 11:33:59 hwhlr-ph1 picld74: Device PS1 AC UNAVAILABLEInstalling Sun StorageTek(TM) Array FirmwareInstalling Sun StorageTek(TM) Common Array Manager. Please wait.Creating uninstaller.Finalizing the Vital Product Data Registry. Please wait.-Sun StorageTek(TM) Common Array Manager|-|-|-|-|0% 25% 50% 75% 100%|-Sun StorageTek(TM) Host Software Installation SummaryInfo :Do not remove installer files located in/var/opt/CommonArrayManager/Host_Software_.Installation Success.Press 3 to Finish or 5 to Redisplay 31.2 注册6140光纤阵列 1.2.1 修改一号机备网卡IP先用查看网卡名。hwhlr_ph1# ifconfig -a 修改备网卡IP。hwhlr_ph1# ifconfig ce1 00 netmask up1.2.2 登陆6140光纤阵列hwhlr-ph1 /opt/SUNWsesscs/cli/bin/sscs login -h hwhlr-ph1 -u rootType your password: 输入操作系统root用户密码1.2.3 注册光纤阵列IPhwhlr-ph1 /opt/SUNWsesscs/cli/bin/sscs add -i 01 registeredarray如果需要用两个controller来管理,就需要注册两个controller的IP1.2.4 修改光纤阵列名称1、查看已注册光纤阵列的默认名称。hwhlr-ph1 /opt/SUNWsesscs/cli/bin/sscs list storage-systemName: 6140光纤阵列的名称(新机器应显示为uname)命令将返回光纤阵列的名称。2、执行以下命令,修改系统配置。hwhlr-ph1 /opt/SUNWsesscs/cli/bin/sscs modify N ST6140 array 原名称将6140光纤阵列的名称修改成ST6140。新机器的原名使用uname(这里有些不记得了,大家可以根据世纪情况来写名字)3、确认修改。hwhlr-ph1 /opt/SUNWsesscs/cli/bin/sscs list storage-systemName: ST61401.2.5 同步主机与6140光纤阵列的系统时间hwhlr-ph1 /opt/SUNWsesscs/cli/bin/sscs modify a ST6140 s date1.2.6 配置6140光纤阵列的host配置6140光纤阵列的host,使得主机可以访问光纤阵列。hwhlr-ph1 /opt/SUNWsesscs/cli/bin/sscs modify a ST6140 host hwhlr-ph1hwhlr-ph1 /opt/SUNWsesscs/cli/bin/sscs modify a ST6140 host hwhlr-ph2查询hosthwhlr-ph1 /opt/SUNWsesscs/cli/bin/sscs list -a ST6140 hostHost: hwhlr-ph1Host: hwhlr-ph21.3 配置6140光纤阵列的IP注:如果需要更改6140的默认IP,可以用下面的方法去修改IP。最好建议用户不要修改,如果用户有人事变动或者其他原因,对以后维护会比较麻烦,如果工程师有6140的串口线或者用户的串口线能够保存好就另当别论了。1.3.1 修改一号机备网卡IP先用查看网卡名。hwhlr_ph1# ifconfig -a 修改备网卡IP。hwhlr_ph1# ifconfig ce1 00 netmask up可能机型不一样,备网卡名不一定是ce1,请根据实际修改。1.3.2 通过一号机修改阵列地址连接阵列以root用户登陆登陆一号机,并以root用户登陆CAM。hwhlr-ph1# /opt/SUNWsesscs/cli/bin/sscs login h 00 u rootType your password: 输入root密码修改阵列IP执行以下命令,修改6140光纤阵列的IP地址。hwhlr-ph1# /opt/SUNWsesscs/cli/bin/sscs modify a ST6140 -g (6140的网关IP)-i 98 m controller Ahwhlr-ph1# /opt/SUNWsesscs/cli/bin/sscs modify a ST6140 -g (6140的网关IP)-i 99 m controller B1.4 配置6140光纤阵列的hotspare磁盘1.4.1 执行以下命令,得到磁盘号。# /opt/SUNWsesscs/cli/bin/sscs list a ST6140 trayTray: 851.4.2 选择第8块和第16块作为hotspare盘。# /opt/SUNWsesscs/cli/bin/sscs modify -a ST6140 -h true disk t85d08# /opt/SUNWsesscs/cli/bin/sscs modify -a ST6140 -h true disk t85d161.4.3 查看磁盘状态# /opt/SUNWsesscs/cli/bin/sscs list -a ST6140 disk在返回信息中,如果有磁盘的Role值为Array spare,则说明该磁盘被分配为hotspare盘,如果为Data,说明为该盘被使用,如果为Unassigned,说明磁盘没有被使用,具体如下所示:Tray: 85 Disk: t85d01 Capacity: 136.727 GB Type: Fibre Channel Speed (RPM): 10033 Status: Optimal State: Enabled Role: Data Virtual Disk: 1 Firmware: 055A Serial number: 3445AWDY 3KS5AWDY WWN: 20:00:00:18:62:20:6D:CBTray: 85 Disk: t85d08 Capacity: 136.727 GB Type: Fibre Channel Speed (RPM): 10033 Status: Optimal State: Enabled Role: Array spare Virtual Disk: - Firmware: 055A Serial number: 3545CM7A 3KS5CM7A WWN: 20:00:00:18:62:23:60:02Tray: 85 Disk: t85d16 Capacity: 136.727 GB Type: Fibre Channel Speed (RPM): 10033 Status: Optimal State: Enabled Role: Unassigned Virtual Disk: - Firmware: 055A Serial number: 3545CM7A 3KS5CM7A WWN: 20:00:00:18:62:23:60:02取消hotspare,使用下面命令取消。# /opt/SUNWsesscs/cli/bin/sscs modify a ST6140 h false disk 磁盘名称(如:t85d07)。1.5 创建6140光纤阵列的LUN1.5.1 为了在主机对6140光纤阵列进行访问时,6140上的磁盘能显示为磁盘分区,需要在6140阵列上建立两个LUN(逻辑磁盘)。建立LUN hlr_v0。# /opt/SUNWsesscs/cli/bin/sscs create -a ST6140 -p Default -s 330GB -d t85d01,t85d02,t85d03,t85d04,t85d05,t85d06,t85d07 volume hlr_v0建立LUN hlr_v1。# /opt/SUNWsesscs/cli/bin/sscs create -a ST6140 -p Default -s 330GB -d t85d09,t85d10,t85d11,t85d12,t85d13,t85d14,t85d15 volume hlr_v1说明:Default 为raid5,下面是6140里面的预定的存储配置文件,可根据需要来选择:Default RAID-5 512 KB 已启用 FC 变量High_Capacity_Computing RAID-5 512 KB 已启用 SATA 变量High_Performance_Computing RAID-5 512 KB 已启用 FC 变量Mail_Spooling RAID-1 512 KB 已启用 FC 变量NFS_Mirroring RAID-1 512 KB 已启用 FC 变量NFS_Striping RAID-5 512 KB 已启用 FC 变量Oracle_DSS RAID-5 512 KB 已启用 FC 变量Oracle_OLTP RAID-5 512 KB 已启用 FC 变量Oracle_OLTP_HA RAID-1 512 KB 已启用 FC 变量Random_1 RAID-1 512 KB 已启用 FC 变量Sequentia1 RAID-5 512 KB 已启用 FC 变量Sybase_DSS RAID-5 512 KB 已启用 FC 变量Sybase_OLTP RAID-5 512 KB 已启用 FC 变量Sybase_OLTP HA RAID-1 512 KB 已启用 FC 变量删除LUN# /opt/SUNWsesscs/cli/bin/sscs delete a ST6140 volume hlr_v0# /opt/SUNWsesscs/cli/bin/sscs delete a ST6140 volume hlr_v1建LUN在后台执行且耗时较长,请等待。执行以下命令可以查看建LUN百分比进度jobs的ID号,通过ID号来查看建LUN的进度。# /opt/SUNWsesscs/cli/bin/sscs list a ST6140 jobs1.5.2 执行以下步骤,查看建LUN进度。1、 执行以下命令,可以查看每个LUN的建卷进度。列出jobs的ID,如果没有输出,说明所有的job已经完成。# /opt/SUNWsesscs/cli/bin/sscs list a ST6140 jobs State: Ready根据jobs的ID查看每个job进度百分比,也就是建LUN的百分比进度。# /opt/SUNWsesscs/cli/bin/sscs list a ST6140 jobs job的ID2、 执行以下命令,查看LUN信息。# /opt/SUNWsesscs/cli/bin/sscs list a ST6140 volumeVolume: hlr_v1 Type: Standard Pool: Default Profile: DefaultVolume: hlr_v0 Type: Standard Pool: Default Profile: Default1.5.3 执行以下命令映射LUN 建LUN之后,执行下面命令map。# /opt/SUNWsesscs/cli/bin/sscs map -a ST6140 volume hlr_v0# /opt/SUNWsesscs/cli/bin/sscs map -a ST6140 volume hlr_v1取消映射:# /opt/SUNWsesscs/cli/bin/sscs unmap a ST6140 volume hlr_v0# /opt/SUNWsesscs/cli/bin/sscs unmap a ST6140 volume hlr_v11.5.4 激活MPXIO1) solaris 10上# stmsboot e当系统提示以下信息时,按Enter。WARNING: This operation will require a reboot.Do you want to continue ? y/n (default: y)当系统提示以下信息时,按Enter。The change will come into effect after rebooting the system.Do you want to continue ? y/n (default: y)2) solaris 8上修改/kernel/drv/scsi_vhci.confMpxio-disable=no重启系统。1.6 标记6140光纤阵列的LUN为了保证在设置6140光纤阵列磁盘时,操作系统能搜索到阵列的磁盘的LUN,所以必须标记LUN。该操作只需在节点1上执行。1.6.1 检查阵列的LUN是否都能被操作系统搜索到。# format查看系统返回的信息,并保证包含阵列的两个LUN信息,如下所示:AVAILABLE DISK SELECTIONS

温馨提示

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

评论

0/150

提交评论