搜索此博客

2012年4月1日星期日

Power P615升级系统微码


Power P615升级系统微码

首先查看现在的版本

# lsmcode -A
sys0!system:3F040127       |System Firmware:RG031218_d73e02_regatta
ent0!1410ff01.SCU015
sisscsia0!44415255.050A008a
ent1!14106902.GOL002
cd0!IBM-DROM00205.NR38
hdisk0!IC35L03.44543031.53323846
hdisk1!ST37330.53313233.4335304A
#
# lscfg -vp |grep -p Platform
      Platform Firmware:
        ROM Level.(alterable).......3F040127      
        Version.....................RS6K
        Hardware Location Code......U0.1-P1-X1/Y1
      Physical Location: U0.1-P1-X1/Y1

#



可以看到是3F040127的,安装AIX7对应7029-6c3要求firmware最低版本是3F040129,下载相应的版本,7029-6C3对应的最新版是3F080425,下载rpm格式。ftp上传到主机上。
链接

# pwd
/
# cd /tmp
#
#
#
# mkdir fwupdate
#
## cd sys
#
#
# ls
3F080425.rpm
#
#
# ls -l
total 8304
-rw-r-----    1 root     system      4250280 Mar 31 15:47 3F080425.rpm
#
# mv * ../fwupdate
# pwd
/tmp/sys
# cd ../fwupdate
# ls -l
total 8304
-rw-r-----    1 root     system      4250280 Mar 31 15:47 3F080425.rpm
#
# rpm -qa
cdrecord-1.9-7
mkisofs-1.13-4
AIX-rpm-6.1.2.0-1
#
# rpm -ivh --ignoreos 3F080425.rpm
3F080425                    ##################################################
Verifying checksums for /tmp/fwupdate/3F080425.img against /tmp/fwupdate/3F080425.chksum
Checksum file /tmp/fwupdate/3F080425.chksum: checksum=11741  blocks=4715
Image file /tmp/fwupdate/3F080425.img: checksum=11741  blocks=4715
The checksums and block sizes match!
#
#
下载回来同时会有个readme文件,好的习惯是先读一遍readme。按要求验证一下文件大小。
# pwd
/tmp/fwupdate
#
# ls -l
total 17752
-rw-r--r--    1 root     system           82 Apr 25 2008  3F080425.chksum
-rw-rw-r--    1 root     system      4828143 Apr 25 2008  3F080425.img
-rw-r-----    1 root     system      4250280 Mar 31 15:47 3F080425.rpm
-rwxr-x---    1 root     system         2432 Feb 19 2003  checksum.pl
#
# sum 3F080425.img
11741  4715 3F080425.img

# pwd
/usr/lpp/diagnostics/bin
#
# ./update_flash -f /tmp/fwupdate/3F080425.img


***** WARNING: Continuing will reboot the system! *****

Do you wish to continue?
Enter 1=Yes or 2=No
1

SHUTDOWN PROGRAM
Sat Mar 31 16:05:35 CDT 2012

Wait for 'Rebooting...' before stopping.
Error reporting has stopped.

系统会重启,前面板液晶屏会显示99FF99FD,一定不要断电,否则。。。。。你懂的

等待大概10几分钟以后,机器会重启。重启以后验证升级以后的系统firmware

可以看到微码已经从3F040127升级到了3F080425.。。。。。。

# lsmcode -A
sys0!system:3F080425       |System Firmware:RG080425_d79e22_regatta
ent0!1410ff01.SCU015
sisscsia0!44415255.050A008a
ent1!14106902.GOL002
cd0!IBM-DROM00205.NR38
hdisk0!IC35L03.44543031.53323846
hdisk1!ST37330.53313233.4335304A
#
#  lscfg -vp |grep -p Platform
      Platform Firmware:
        ROM Level.(alterable).......3F080425      
        Version.....................RS6K
        Hardware Location Code......U0.1-P1-X1/Y1
      Physical Location: U0.1-P1-X1/Y1

#
修改引导顺序,继续测试AIX7.。。。。。。
#
# bootlist -m normal -o
hdisk0 blv=hd5
# bootlist -m normal cd0 hdisk0
# bootlist -m normal -o
cd0
hdisk0 blv=hd5
#

2012年3月31日星期六

Power P615升级光驱微码

项目需要,得在一台P615上安装AIX 7.1,下载ISO文件刻录以后,发现装的时候要么出现各种拷贝错误,要么不能引导。。。。。。(光驱是没有问题的,用aix 6.1母盘安装aix6.1正常,但是记得用刻录的aix6.1光盘安装也是各种错误),怀疑光驱微码偏低。于是升级一下吧。


首先查看现在的版本

# lsdev -Cc cdrom
cd0 Available 1G-19-00 IDE DVD-ROM Drive
#

# lscfg -vl cd0
  cd0              U0.1-P1-X1/Q6-A0  IDE DVD-ROM Drive

        Manufacturer................IBM    
        Machine Type and Model......DROM00205      
        ROS Level and ID............NR36
        Device Specific.(Z0)........058002028F000010

#

可以看到是NR36,去ibm网站下载相应的微码文件。

过程省略,7029-6C3对应的最新版是NR38,下载回来是rpm格式。ftp上传到主机上。下边开始升级微码,

看过程不说话。。。。。。

# pwd
/tmp/microcode/RPM
# ls -l
total 232
-rw-r-----    1 root     system       118035 Mar 30 13:43 dvdrom.slimide.NR38.rpm
# rpm -qa
cdrecord-1.9-7
mkisofs-1.13-4
AIX-rpm-6.1.2.0-1
#
# rpm -ihv --ingoreos  dvdrom.slimide.NR38.rpm
--ingoreos: unknown option
# rpm -ivh --ignoreos dvdrom.slimide.NR38.rpm
dvdrom.slimide.NR38         ##################################################
#
# rpm -qa
cdrecord-1.9-7
mkisofs-1.13-4
AIX-rpm-6.1.2.0-1
dvdrom.slimide.NR38-001-001
#
# rpm -ql dvdrom.slimide.NR38-001-001
/usr/lib/microcode/IBM-DROM00205.NR38
#
#
# ls -l /etc/microcode
lrwxrwxrwx 1 root system 18 Mar 30 09:43 /etc/microcode -> /usr/lib/microcode

#

#
# cd /etc/micro*
# pwd
/etc/microcode
#
#
下载回来同时会有个readme文件,好的习惯是先读一遍readme。按要求验证一下文件大小。
# ls -l
total 13312
-r-xr-xr-x    1 bin      bin          133364 Nov 02 2004  IBM-DROM00205.NR38
-r--r--r--    1 root     system        20176 Jun 30 2007  cx_conc
-r--r--r--    1 root     system        20768 Jun 30 2007  cx_e_conc
-r--r--r--    1 root     system        28672 Oct 03 2007  cxpabios
-r--r--r--    1 root     system        36864 Oct 03 2007  cxpafep
-r-xr-xr-x    1 bin      bin           99995 Jun 30 2007  dgr0871014d.00.00
-r-xr-xr-x    1 bin      bin          197089 Aug 23 2007  dgr0b91014d.00.00
-r-xr-xr-x    1 bin      bin          267973 Aug 23 2007  dgr0c91014d.00.00
-r-xr-xr-x    1 bin      bin          316207 Jun 30 2007  dgr0d31014d.00.00
-r-xr-xr-x    1 bin      bin           99095 Jun 30 2007  dgr0f81014d.00.00
-r--r--r--    1 bin      bin           74920 Aug 23 2007  ec8fd.00.03
-r--r--r--    1 root     system      1296532 Oct 03 2007  ibmsis2780.img
-r--r--r--    1 root     system       894684 Jun 30 2007  ibmsis5702.img
-r--r--r--    1 root     system      1254980 Jun 30 2007  ibmsis5703.img
-r--r--r--    1 root     system      1254980 Jun 30 2007  ibmsis5709.img
-r--r--r--    1 root     system       888368 Jun 30 2007  ibmsis570B.img
-r--r--r--    1 root     system        41472 Jun 30 2007  sxbios
-r--r--r--    1 root     system        31232 Jun 30 2007  sxfep
#
# sum IBM-DROM00205.NR38
40166   131 IBM-DROM00205.NR38
#
没有问题,下边开始升级微码。
# diag
DIAGNOSTIC OPERATING INSTRUCTIONS  VERSION 6.1.2.1                                                   801001


LICENSED MATERIAL and LICENSED INTERNAL CODE - PROPERTY OF IBM
(C) COPYRIGHTS BY IBM AND BY OTHERS 1982, 2008.
ALL RIGHTS RESERVED.

These programs contain diagnostics, service aids, and tasks for
the system.  These procedures should be used whenever problems
with the system occur which have not been corrected by any
software application procedures available.

In general, the procedures will run automatically.  However,
sometimes you will be required to select options, inform the
system when to continue, and do simple tasks.

Several keys are used to control the procedures:
- The Enter key continues the procedure or performs an action.
- The Backspace key allows keying errors to be corrected.
- The cursor keys are used to select an option.
回车进入

Move cursor to selection, then press Enter.

  Diagnostic Routines
    This selection will test the machine hardware. Wrap plugs and
    other advanced functions will not be used.
  Advanced Diagnostics Routines
    This selection will test the machine hardware. Wrap plugs and
    other advanced functions will be used.
  Task Selection (Diagnostics, Advanced Diagnostics, Service Aids, etc.)
    This selection will list the tasks supported by these procedures.
    Once a task is selected, a resource menu may be presented showing
    all resources supported by the task.
  Resource Selection
    This selection will list the resources in the system that are supported
    by these procedures. Once a resource is selected, a task menu will



  

From the list below, select a task by moving the cursor to
the task and pressing 'Enter'.
To list the resources for the task highlighted, press 'List'.

[TOP]
  Run Diagnostics
  Run Error Log Analysis
  Run Exercisers
  Display or Change Diagnostic Run Time Options

  Add Resource to Resource List
  Automatic Error Log Analysis and Notification
  Backup and Restore Media
  Certify Media
  Change Hardware Vital Product Data
  Configure Reboot Policy
  Configure Remote Maintenance Policy
  Configure Ring Indicate Power On Policy
  Configure Scan Dump Policy
  Configure Surveillance Policy
  Create Customized Configuration Diskette
  Delete Resource from Resource List
  Disk Maintenance
  Display Configuration and Resource List
  Display Firmware Device Node Information
  Display Hardware Error Report
  Display Hardware Vital Product Data
  Display Multipath I/O (MPIO) Device Configuration
  Display Previous Diagnostic Results
  Display Resource Attributes
  Display Service Hints
  Display Software Product Data
  Display Test Patterns
  Display or Change Bootlist

  Format Media
  Gather System Information
  Hot Plug Task
  Identify and Attention Indicators
  Local Area Network Analyzer
  Log Repair Action
  Microcode Tasks
  Periodic Diagnostics
  RAID Array Manager
  Save or Restore Hardware Management Policies
  Update Disk Based Diagnostics
  Update System or Service Processor Flash
  Update Disk Based Diagnostics
  Save or Restore Hardware Management Policies
  RAID Array Manager
  Periodic Diagnostics
  Microcode Tasks
[MORE...12]

Move cursor to desired item and press Enter.

  Display Microcode Level
  Download Latest Available Microcode
  Download Microcode
  Download Microcode

From the list below, select any number of resources by moving
the cursor to the resource and pressing 'Enter'.
To cancel the selection, press 'Enter' again.
To list the supported tasks for the resource highlighted, press 'List'.

Once all selections have been made, press 'Commit'.
To avoid selecting a resource, press 'Previous Menu'.

  All Resources
      This selection will select all the resources currently displayed.
                                        (14106902)
  cd0              U0.1-P1-X1/Q6-A0     IDE DVD-ROM Drive
                                        (1410ff01)
  sisscsia0        U0.1-P1              PCI-X Dual Channel Ultra320 SCSI Adapter
  hdisk0           U0.1-P1/Z1-A5        16 Bit LVD SCSI Disk Drive (36400 MB)
F1=Help                   F4=List                    F7=Commit                  Esc+0=Exit


All Resources
      This selection will select all the resources currently displayed.
  ent1             U0.1-P1/E2           10/100/1000 Base-TX PCI-X Adapter
                                        (14106902)

回车选择,esc+7提交。


From the list below, select any number of resources by moving
the cursor to the resource and pressing 'Enter'.
To cancel the selection, press 'Enter' again.
To list the supported tasks for the resource highlighted, press 'List'.

Once all selections have been made, press 'Commit'.
To avoid selecting a resource, press 'Previous Menu'.
回车确认

Select the source of the microcode image.


Make selection, use Enter to continue.

  file system
      /etc/microcode
  optical media    (ISO 9660 file system format)
INSTALL MICROCODE 802116
cd0    IDE DVD-ROM Drive

若干分钟后提示:
Installation of the microcode has completed
successfully.  The current microcode for cd0
is IBM-DROM00205.NR38.
Please run diagnostics on the device to ensure that it is
functioning properly.

至此升级微码成功完成。

F3退出以后验证一下

# lscfg -vl cd0
  cd0              U0.1-P1-X1/Q6-A0  IDE DVD-ROM Drive

        Manufacturer................IBM    
        Machine Type and Model......DROM00205      
        ROS Level and ID............NR38
        Device Specific.(Z0)........058002028F000010


可以看到微码已经从NR36升级到了NR38.。。。。。。重启机器再次验证。。。。。。。












2012年1月4日星期三

Oracle Linux 5.7上部署Oracle Enterprise Management Cloud 12C

1. 安装操作系统

使用kickstart静默安装,配置文件如下



# Kickstart file automatically generated by anaconda.

install
url --url ftp://10.101.5.100/pub/rhel5/iso/
lang en_US.UTF-8
keyboard us

#xconfig --startxonboot
network --device eth0 --bootproto static --ip 10.101.5.69 --netmask 255.255.248.0 --gateway 10.101.0.1 --nameserver 10.101.0.19 --ho
stname gridem
#rootpw --iscrypted $1$nPKdqyiD$KkCUPHAeWXhChoQxmjXiI/
rootpw  --iscrypted $6$1CpNtrhue9gKi6cB$Nb8PKValdv/tE9qmDEgLsW..jBLwHakcjWCbWi5v51yi/3/NeOR7XM2wUSJobmgOqlg9c/sVYvYd1FOiJBAuR1

firewall --disabled
firstboot --disable
authconfig --enableshadow --passalgo=sha512
selinux --disabled
timezone Asia/Shanghai
key --skip

bootloader --location=mbr --driveorder=sda --append="rhgb quiet"

clearpart --all --drives=sda
part swap --fstype swap --size=2048 --grow --maxsize=2048  --asprimary --ondisk=sda
part / --fstype ext3 --size=20480 --grow --maxsize=30960 --asprimary --ondisk=sda

reboot --eject
%packages
@admin-tools
@base
@chinese-support
@core
@dialup
@system-tools
@base-x
@X Window System
sgpio
libstdc++44-devel
python-dmidecode
imake
audit
python-dmidecode
sgpio
tcp_wrappers
ksh
elfutils-libelf
elfutils-libelf-devel
gcc
gcc-c++
glibc
glibc-common
glibc-devel*
glibc-headers
libaio
libaio-devel
libgcc
libgomp
libstdc++
libstdc++-devel
make
numactl-devel
sysstat
rng-utils
compat-libstdc++-296
compat-libstdc++-33.x86_64
libXp
libXp-devel
kernel-devel
glibc-utils
rng-utils
libXp
libXp-devel


%post
chvt 3
cd /tmp
wget ftp://10.101.5.100/pub/rhel5/kik/createuser.sh
bash createuser.sh > /root/createuser.log
wget ftp://10.101.5.100/pub/rhel5/kik/bash_profile
cat /tmp/bash_profile >> /home/oracle/.bash_profile
chvt 1
%end


详情不表,参加另外的博文

过程略。。。。。。

2. 下载并解压缩

11年最后两周光做测试鸟,反复安装,反复各种错。。。。一周的时间在1G内存的虚拟机上测试,实在是痛苦不堪,装一次等出错到90%左右,大半天已经过去鸟。。。。。

后来找了个好点的机器,16G内存,database和em各分配4G内存,才算勉强过去,12c的文档里对硬件的要求写的很清楚,如果有富余的机器还是用配置好点的,省的碰到各种莫名其妙的错误,无从下手。浪费感情又耽误时间。

另外,加压缩前一定要通过cksum验证一下,原来的虚拟机是在32位的xp上装的64位的linux,换机器以后,底层宿主机是windows 64bit 2008,通过windows共享拷贝过去以后刚开始也是碰到各种错误,最终发现竟然是文件有损。通过cksum也验证了文件不对的问题。后来通过在linux上架设ftp往linux虚拟机上上传竟然也不对,包括scp也出问题。最终在最早下载em的32位xp上架了个ftp服务器才顺利解决。不知道神马原因,据说是有bug。先不管啦。


过程略,unzip很简单,解压缩前可以用 -t参数测试一下压缩文件。


3. 开始安装

注意/etc/hosts 文件格式

最终如下


# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
10.101.5.68  grid.mytest grid
10.101.5.69  gridem.mytest gridem   #localhost
10.101.5.70  mydb2.mytest mydb2


安装的时候指定ORACLE_HOME=gridem.mytest.


runInstaller ORACLE_HOSTNAME=gridem.mytest


余下过程看图不说话






































4. 登陆EM