yinxin
作者yinxin·2010-10-15 11:48
系统管理员·银信长远

AIX5.3下安装配置IP-SAN阵列

字数 15550阅读 3303评论 0赞 0
一、 概述
试验环境:
1. IBM的44p-170小型机一台,装的是AIX5.1操作系统
2. Wintarget 软件 模拟IP-SAN磁盘阵列
   试验目的:
   学习用AIX系统连接IP-SAN磁盘阵列
 
二、 主机硬件微码升级
   资料中说AIX5.1没有iSCSI software Initiator 软件所以要从新安装AIX5.3的系统。
要安装AIX5.3 需要升级主机的微码。(如下图所示主机的微码版本比较低)
 
安装微码的步骤:
1.确定当前微码
#lsmcode -c
System Firmware Level is SPH01316
Service Prrocessor Level is sh010928
2.http://www14.software.ibm.com/webapp/set2/firmware/gjsn
选择要升级的机器型号. 7044-170 单击向右小箭头图标
3.选择AIX复选框
4.选择Check box to create an ISO file containing the files listed above.复选框
5.选择I agree to abide by its terms.单选框
6.File Name: 7044x70F.BIN文件,通过HTTP或FTP下载到本地.
7.把7044x70F.BIN通过ftp或其它方式,传到AIX系统中.
#mkdir /tmp/fwupdate
 
#ftp 192.168.1.200
>lcd /tmp/fwupdate
>bin
>get 7044x70F.BIN
>bye
 
#cd /tmp/fwupdate
#chmod +x 7044x70F.BIN
#./7044x70F.BIN
执行完后,会生成一个sx05195.img文件
检测checksum
#sum sx05195.img
61902  1564     sx05195.img
The checksum is -----> 61902
 
升级firmware
#cd  /usr/lpp/diagnostics/bin
#./update_flash  -f  /tmp/fwupdate/sx05195.img
***** WARNING: Continuing will reboot the system! *****
Do you wish to continue?
Enter 1=Yes or 2=No
1 Enter
之后机器液晶屏交替显示99FF,99FD,大约20分钟后系统启动,启动之后登录系统:
 
# lsmcode -c
我们看到系统微码已经升级成功,很顺利.shutdown -r
重起一遍再看看. 微码已经升级到最新版本
 
三、 安装AIX 5.3 系统
 
步骤1: 由光盘进行引导
外部设备加电,待机器面板上的绿灯变成闪烁状态后按下Power键,将操作系统的第一张光盘插入DVD-ROM驱动器,待keyboard字样或图标出现在控制台上后,按F1/1键进入SMS中,选择Multiboot修改bootlist,选择从光盘引导,或直接在SMS选择 Multiboot选择Install from中的cd0来进行安装,或者直接通过按5/F5键(新的机器只支持5)直接从光盘进行引导。
步骤2:选择主控台
   从光盘引导以后出现的第一个界面如下:
         ****** Please define the System Console. ******
Type The F1 key and press <Enter> to use this displays
the System Console.
  按F1选择当前设备为主控台(console)

步骤3:选择安装系统时所用的语言
  1 Type 1 and press Enter to have English during install
  …………
  …………
  …………
  
按1选择英语

步骤4:进入BOS安装设置菜单
Welcome to Base Operating System
Installation and Maintenance
  
Type the number of your choice and press Enter. Choice indicated by >>>
>>>1 Start Install now with Default Settings
    2 Change/Show Installation Settings and Install
    3 Start Maintenance Mode for System Recovery
  
    88 Help ?
    99 Previous Menu
>>> Choice [1]:
按2选择修改安装设置

步骤5:更改安装设置
Installation Settings
Either type 0 or press Enter to install with current settings, or type the
number of the setting you want to change and press Enter
1 System Settings
Method of installation ……………… New and Complete Overwrite
Disk where you want to Install ……… hdisk0
2 Primary Language Environment Settings (AFTER install)
Cultural Convention …………………… English (United States)
Language  ………………………………… English (United States)
Keyboard  ………………………………… English (United States)
Keyboard Type………………………………Default
3 More Options (Desktop,Security,Kernel,Software,…)
>>>0 Install with the settings listed above
                         +----------------------------------------------------
88 Help ?                |WARNING:Base Operating System Installation will
99 Previous Menu         |destroy or impair recovery of ALL data on the
>>> Choice [1]:_         |  destination disk hdisk0
  按1修改安装方式以及安装rootvg的硬盘介质

步骤6:选择安装模式
Change Method of Installation
Type the number of your choice and press Enter.
1 New and Complete Overwrite
Overwrites EVERYTHING on the disk selected for installation.
Warning: Only use this method if the disk is totally empty or there is nothing on the disk you want to preserve.
2 Preservation Install
Preserves SOME of the existing data on the disk selected for Installation.
Warning: This method overwrites the user (/usr), variable (/var), temporary (/tmp), and root (/) file systems. Other product (application) files and configuration data will be destroyed.
3 Migration Install
Upgrades the Base Operating System to current release. Other product (application) files and configuration data will be spared.
88 Help ?
99 Previous Menu
>>> Choice [3]:
按1选择新装系统.注:如果是安装新机器,则没有这个界面,直接进入步骤7.
步骤7:选择目的硬盘
Change Disk(s) Where You Want to Install
Type one or more numbers for the disk(s) to be used for installation and press Enter.To cancel a choice,type the corresponding unmber and Press Enter.At least one bootable disk must be selected.The current choice is indicated by>>>.
      Name        Location Code     Size(MB)   VG Status  Bootable
>>>   1 hdisk0      10-6—00-8,0      8678       none       Yes
2 hdisk1      10-60-00-11,0     8678       none       Yes
3 MORE CHOICES …
 
>>>   0 Continue with choices indicated above
66 Devices not known to Base Operating System Installation
77 Display More Disk Information
88 Help ?
99 Previous Menu
>>>Choice [0]:
按数字键选择或取消所要安装的硬盘介质,现在选中的是hdisk0。回到
步骤5更改安装设置界面. 选择2修改语言环境.

步骤8:设置主语言环境
   
Type the number for the Cultural Convention (such as data, time, and money),
language and keyboared for this system and press Enter, or type 4 and press
Enter to create your own combination.
   Cultural Convention         Language                Keyboard
1. C(POSIX)                 C(POSIX)                C(POSIX)
>>>2. English(United States)  English(United States)  English(United States)
   …………
   …………
88 Help ?
99 Previous Menu
Choice [1]:
  
一般缺省为English(United States).如果需要更改,选择需要的语言,然后回到步骤5更改安装设置界面. 选择3,设置其他选项.

步骤9: 设置其他选项
Install Options
1. Desktop……………………………………………………………………….CDE
2. Enable Trusted Computing Base………………………………………….No
3. Enable CAPP and EAL4+ Technology……………………………………….No
   (English only,64-bit kernel enablement,JFS2 file systems)
4. Enable 64-bit Kernel………………………………………………………No
5. Create JFS2 File Systems……………………………………………….No
6. Graphics Software…………………………………………………………Yes
7. Documentation Services software………………………………………Yes
8. Enable System Backups to install any system………………………Yes
(Installs all devices and kernels)
>>>9.Install More Software
 0 Install with the current settings listed above.
88 Help ?
99 Previous Menu
>>> Choice [9]:
缺省情况下安装是32位基本内核,32位基本内核可以仿真64位应用。如果需要64位基本内核,将Enable 64-bit Kernel的设置改为yes,建议同时启用JFS2,否则保留原来设置。其他选项一般按默认设置。各选项含义如下:
Desktop
选择操作系统安装好后的图形界面,默认是CDE.
如果选择GNOME或KDE,在安装过程中系统会提示插入 AIX Toolbox for Linux Applications CD.
Enable Trusted Computing Base
Trusted Computing Base (TCB) 是AIX中的一个安全选项.只能在操作系统安装时激活。操作系统安装好后,该选项不能被更改。
Enable CAPP and EAL4+ Technology
只在new and complete overwrite installation有效. 如果Controlled Access Protection Profile (CAPP) 和Evaluation Assurance Level 4+ (EAL4+)被激活,其它相关选项必须如下设置:
Desktop = CDE or NONE
TCB = yes
64-bit kernel = yes
JFS2 = yes
Enable System Backups to install any system (Installs all devices and kernels) = no
Install more software ptions = no
Import User Volume Groups
在 migration installation and preservation installation有效. 将该选项设为yes,系统在安装过程中会import所有用户volume group.
 
Enable 64-bit Kernel
在64-bit Common Hardware Reference Platform. (CHRP)系统中有效. 设置系统安装好后运行在64位内核上,否则系统使用32位内核。
 
Create JFS2 File Systems
在 64-bit kernel选项被激活时有效(JFS2必须运行在64位内核上). 设置系统是否支持JFS2文件系统。
 
Graphics Software
是否安装图形软件。
Documentation Services Software
安装documentation services软件。
Remove Java 1.1.8 Software
在migration installation and preservation installation有效. 是否删除原有的Java version 1.1.8 
Enable System Backups to install any system (Installs all devices and kernels)                                    
是否安装所有的驱动程序和内核,这样就可以用本系统的备份在任何其他系统上恢复。

选择9可以查看更多软件安装选项
                     Install More Software
1. Netscape(Expansion Pack) ………………………………………………………..…....No
2. HTTP_Server(Expansion Pack) …………………………………………………………..No
3. Kerberos_5(Expansion Pack) ………………………………………………………...…..No
4. Server(Volume2) ……………………………………………………………………………...No
5. Alternate Disk Install(Volume 2) ……………………………………………………..No
>>>0 Install with the current settings listed above.
88 Help ?
99 Previous Menu
>>> Choice [0]:
在 Install More Software 可以选择在BOS安装过程中可以同时被安装的software bundle,这些software bundle也可以在系统安装好后使用smitty easy_install另外选择安装.
选择0查看前面几步所作的设置总结。

Overwrite Installation Summary
Disks: hdisk0
Cultural Convention: en_US
Language: en_US
Keyboard: en_US
64 Bit Kernel Enabled: No
JFS2 File Systems Created: No
Graphics Software: Yes
Documentation Services Software: Yes
Desktop: CDE
Enable System Backups to install any system: Yes
Optional Software being installed:

>>> 1 Continue with Install
+-----------------------------------------------------
88 Help ?          | WARNING: Base Operating System Installation will
99 Previous Menu   | destroy or impair recovery of ALL data on the
| destination disk hdisk0.
>>> Choice [1]:
 

步骤10:开始安装
进行完上述的设置以后选择1或者按下回车键即可开始安装,安装时间视机型而定。安装过程界面如下:
Installing Base Operating System
Turn the system key to the NORMAL position any time before the installation ends.
         Please wait.
 Approximate                      Elapsed time
%task completed                   (in minutes)
16 1
BOS安装完毕,系统将自动重启并进入安装辅助菜单,退出安装辅助菜单,用root登录进入系统,系统刚安装完,root的口令为空。
 
四、 AIX 连接IP-SAN

4.1 WinTarget 软件的配置
由于没有磁盘阵列设备,所以在网上找了一款软件模拟IP-SAN
Wintarget本身的安装非常简单,一直next即可。在Wintarget中主要需要做以下两个配置:
1、创建并配置主机(即Initiator);
2、配置Wintarget Disk,然后分配给相应的主机使用,此时当对应的Initiator连接上Wintarget后,即可使用Wintarget分配给它的Disk。你也可以通过R2中的San存储管理器来创建Wintarget Disk,只是只能创建基于文件的Disk,后面再详细介绍。
1、创建并配置主机
在Wintarget MMC中右击Host,选择New host,在欢迎页点击下一步;
在指定主机名页,输入主机名和描述,
 
在识别方式页,你可以直接输入Initiator的IQN来作为发起方的识别方式,不过在此我选择更方便的方式,因此点击高级,
 
然后点击添加,选择IP地址,
 
然后输入发起方的IP地址;然后点击确定;
 
然后点击下一步;再点击确定。此时,主机创建完成。
在Host的属性中,你还可以设置是否对此host启用chap身份验证以及配置它的传输性能等;你也可以同时为一个主机配置多个发起方连接程序,这样便于群集的使用。但是,不要在多个发起方上同时读写此目标。
2、创建并配置Wintarget Disk
Wintarget Disk即分配给发起方使用的存储空间。在Wintarget MMC中右击Device,选择创建Wintarget disk,然后点击下一步;
在选择类型页,你可以选择从卷或文件创建disk,如果从卷,则可以利用本地硬盘上的未划分分区的磁盘空间来创建Wintarget Disk;如果从文件,则将Wintarget Disk保存为本地已划分分区上根目录下的文件。你可以根据自己的需要来创建,通常情况下最好使用从卷划分。如果是在R2中的SAN存储管理器中通过 Wintarget来创建LUN,将从文件来创建Wintarget Disk。
 
在此我选择为从卷划分,然后在选择卷页,选择一个未划分分区的磁盘空间,点击下一步;
 
然后输入磁盘尺寸,next,
 
输入磁盘名称,next;
 
在分配到页,点击添加按钮来将此磁盘分配给刚才创建的主机,然后next,
 
确定。
此时,Wintarget上的配置已经完成,现在进入Initiator(发起方)的配置。
首先下载Initiator应用程序并安装,完成后在桌面和控制面板中都有一个iSCSI Initiator程序,双击它进行配置,首先设置Wintarget的入口,在Discover标签点击添加按钮,
 
然后输入Wintarget的IP地址,端口为默认的3260,
 
如果此发起方和Wintarget上所设置的Host一致,则会在Target标签显示现有的目标,如图所示,
 
点击Log On登录
 
成功登录后如下图所示:
 
此时发起方程序会将Wintarget中为Host所分配的Wintarget Disk作为本地磁盘一样进行连接,你现在需要在计算机管理中为此磁盘进行初始化和创建分区,完成后即可像本地磁盘一样进行读写。
 
   安装完软件后,先成功给windows xp 分配空间,说明软件配置正确,接下来做的就是给AIX5.3 分配空间
 
4.2 AIX5.3的配置
通过串口的控制终端登陆AIX
 在命令行下进入 smit  
# smit
选择 Devices->ISCSI->ISCSI Protocol Device->Change/Show Characteristics of an Iscsi Protocol Device  出现配置窗口,如下图所示:
一般情况按照默认配置
 
 用 VI 编辑targets   如下图所示:
    vi /etc/iscsi/targets 在最后一行输入192.168.1.142(服务器 IP 地址)3260 (服务端口) iscsi (服务器 target 的 iqn 地址,iscsi 代表任意地址)
 
 设置hdisk2 为物理卷
#cfgmgr –l iscsi0                          #刷新设备列表
#lsdev –Cc disk                           #列出磁盘状态
hdisk2  Available   Other iScsi Disk Drive   #hdisk2 为iscsi 磁盘设备
# lspv                                   #列出系统的物理卷
hdisk2     none      none                #没有被设置成物理卷
#chdev –l hdisk2 –a pv=yes                  #设置hdisk2为物理卷,smit-devices-fixed disk-configure a defined disk
 
 设置hdisk2 为卷组
  在#smit 下
   System Storage Management ( Physical & Logical Storage ) -> Logical Volume Manager -> Volume Groups -> Add a Volume Group -> Add an Original Volume Group  
如下图所示 :
VOLUME GROUP name  :  ipsan          #输入卷组的名称 ipsan
PHYSICAL VOLUME names   : hdisk2      #选择物理卷 hdisk2
Create VG Concurrent Capable?  Yse         #保存配置
#lsvg 
ipsan                                     #新生成了ipsan 卷组  
 
 
 

 挂载文件系统
#mkdir iscsi                 #在根目录下建立iscsi 文件夹
System Storage Management ( Physical & Logical Storage ) -> File Systems -> Add / change /show /Delete File System -> Journaled File Systems -> Add a Journaled File System -> Add a Standard Journaled File System -> 选择ipsan
如下列图片所示:
 
SIZE of file system
        Number of units        40      # 选择需要多少个存储单元
MOUNT POINT          /iscsi          # 挂载点地址
Mount Automatically at system restart ? yes   # 开机自动挂载
 
# lsfs                       #显示系统的文件系统
 其中  /dev/lv00       是自动生成的逻辑卷
 
# mount                           #显示系统中挂载的文件系统

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

0

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

X社区推广