accepting the license.
To view the license, run the license command with the -view option.
If the -lang flag is not specified the license will be displayed in
the current locale (set by the chlang command). If the license is not
available in the language selected, English will be the default.
To accept the license, run the license command with the -accept option.
Locale currently set to: \
Usage: license {[-view] [-accept]} [-lang Name]
license [-ls] $ license -accept
5.2 配置磁盘
在 oem_setup_env 的 AIX 环境下 登录VIOSERVER:
Open in progress Open Completed.
IBM Virtual I/O Server login: padmin
padmin's Password:jyadmin Last login: Tue Jan 18 21:38:46 CST 2011 on /dev/vty0 $
$ oem_setup_env
16 / 26
查看一下系统中的硬盘:
# lspv hdisk0 00c4c5865c5f7a51 rootvg active hdisk1 00c4c586d755d665 rootvg active hdisk2 none None
hdisk3 none None hdisk4 none None
hdisk5 none None hdisk6 none None
查看一下现有的卷组:
# lsvg rootvg
扫描硬盘: # lsdev -Cc disk hdisk0 Available 00-08-00 SAS Disk Drive hdisk1 Available 00-08-00 SAS Disk Drive hdisk2 Available 07-00-02 MPIO Other DS5K Array Disk hdisk3 Available 07-00-02 MPIO Other DS5K Array Disk hdisk4 Available 07-00-02 MPIO Other DS5K Array Disk hdisk5 Available 07-00-02 MPIO Other DS5K Array Disk hdisk6 Available 07-00-02 MPIO Other DS5K Array Disk
查看一下磁盘通道: $ lsmap -all |grep vhost vhost0 U8204.E8A.064C586-V1-C51 vhost1 U8204.E8A.064C586-V1-C54 vhost2 U8204.E8A.064C586-V1-C57 vhost3 U8204.E8A.064C586-V1-C60 vhost4 U8204.E8A.064C586-V1-C63 vhost5 U8204.E8A.064C586-V1-C52 vhost6 U8204.E8A.064C586-V1-C53 vhost7 U8204.E8A.064C586-V1-C55 vhost8 U8204.E8A.064C586-V1-C56 vhost9 U8204.E8A.064C586-V1-C58 vhost10 U8204.E8A.064C586-V1-C59 vhost11 U8204.E8A.064C586-V1-C61 vhost12 U8204.E8A.064C586-V1-C62 vhost13 U8204.E8A.064C586-V1-C64 17 / 26
0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000
vhost14 U8204.E8A.064C586-V1-C65 0x00000000 建立各个虚拟磁盘,映射到各个预先建立的 lv 上,并分配到各自通道:
$ mkvdev -vdev vm1rootvg -vadapter vhost0 -dev hdisk2 $ mkvdev -vdev vm2rootvg -vadapter vhost1 -dev hdisk3 $ mkvdev -vdev vm3rootvg -vadapter vhost2 -dev hdisk4 $ mkvdev -vdev vm4rootvg -vadapter vhost3 -dev hdisk5 $ mkvdev -vdev vm5rootvg -vadapter vhost4 -dev hdisk6
5.3 网卡设置
查看一下IO通道:
$ oem_setup_env # lsdev -Cc adapter cor0 Available 08-00 GXT145 Graphics Adapter ent0 Available 02-08 4-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) ent1 Available 02-09 4-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) ent2 Available 02-08 4-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) ent3 Available 02-09 4-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) ent4 Available 02-08 2-Port 10/100/1000 PCI-X Adapter ent5 Available 02-09 2-Port 10/100/1000 PCI-X Adapter ent6 Available 02-08 2-Port 10/100/1000 PCI-X Adapter ent7 Available 02-09 2-Port 10/100/1000 PCI-X Adapter
ent8 Available Virtual I/O Ethernet Adapter (l-lan) ent9 Available Virtual I/O Ethernet Adapter (l-lan)
fcs0 Available 05-00 4Gb PCI Express Dual Port FC Adapter (df1000f114108a03) fcs1 Available 05-01 4Gb PCI Express Dual Port FC Adapter (df1000f114108a03) fcs2 Available 07-00 4Gb PCI Express Dual Port FC Adapter (df1000f114108a03) fcs3 Available 07-01 4Gb PCI Express Dual Port FC Adapter (df1000f114108a03) pager0 Available Pager Kernel Extension sissas0 Available 00-08 PCI-X266 Planar 3Gb SAS Adapter usbhc0 Available 01-08 USB Host Controller (33103500) usbhc1 Available 01-09 USB Host Controller (33103500) usbhc2 Available 01-0a USB Enhanced Host Controller (3310e000) vasi0 Available Virtual Asynchronous Services Interface (VASI) vbsd0 Available Virtual Block Storage Device (VBSD) vhost0 Available Virtual SCSI Server Adapter vhost1 Available Virtual SCSI Server Adapter vhost2 Available Virtual SCSI Server Adapter …….
18 / 26
将物理网卡ent4和ent6聚合,做成 enternet chanel 网卡 $ mkvdev -lnagg ent0,ent1 ent10 Available en10 et10
将聚合的 enternet chanel 网卡和虚拟网卡映射起来,建立虚拟共享网卡: $ mkvdev -sea ent10 -vadapter ent8 -default ent8 -defaultid 1
ent11 Available en11 et11
最后再查看一下IO通道:
# lsdev -Cc adapter ……
ent3 Available 02-09 4-Port 10/100/1000 Base-TX PCI-X Adapter (14108902) ent4 Available 02-08 2-Port 10/100/1000 PCI-X Adapter ent5 Available 02-09 2-Port 10/100/1000 PCI-X Adapter ent6 Available 02-08 2-Port 10/100/1000 PCI-X Adapter ent7 Available 02-09 2-Port 10/100/1000 PCI-X Adapter
ent8 Available Virtual I/O Ethernet Adapter (l-lan) ent9 Available Virtual I/O Ethernet Adapter (l-lan) ent10 Available EtherChannel
ent11 Available Shared Ethernet Adapter fcs0 Available 05-00 4Gb PCI Express Dual Port FC Adapter (df1000f114108a03) fcs1 Available 05-01 4Gb PCI Express Dual Port FC Adapter (df1000f114108a03) fcs2 Available 07-00 4Gb PCI Express Dual Port FC Adapter (df1000f114108a03) fcs3 Available 07-01 4Gb PCI Express Dual Port FC Adapter (df1000f114108a03) …….
5.4光纤卡设置
执行lsnports命令查看所有可以适用于NPIV的端口: $ lsnports
虚拟卡映射到物理卡:
$ vfcmap –vadapter vfchost0 –fcp fcs0 $ vfcmap –vadapter vfchost1 –fcp fcs2 $ vfcmap –vadapter vfchost2 –fcp fcs0 $ vfcmap –vadapter vfchost3 –fcp fcs2 $ vfcmap –vadapter vfchost4 –fcp fcs0
19 / 26
$ vfcmap –vadapter vfchost5 –fcp fcs2 $ vfcmap –vadapter vfchost6 –fcp fcs0 $ vfcmap –vadapter vfchost7 –fcp fcs2 $ vfcmap –vadapter vfchost8 –fcp fcs0 $ vfcmap –vadapter vfchost9 –fcp fcs2
光驱的切换:
$ rmdev -dev vcd vcd deleted $ mkvdev -vdev cd0 -vadapter vhost1 -dev vcd vcd Available
至此,VIO server 的配置完成。
5.5微分区的准备- profile 的配置
20 / 26