- 论坛徽章:
- 0
|
别人happy我加班,教训哪,千万不能用512MB内存的机器装SunMC3.5,分享如下:
1.准备机器:
Sun Blade100,400Mhz USIIe,512MB内存,装Solaris 10 3/05,
装内存老虎 - Sun Management Center 3.5U1a,
s6a:/# showrev
Hostname: s6a
Hostid: 80900344
Release: 5.10
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain:
Kernel version: SunOS 5.10 Generic
s6a:/# dmesg |grep mem
Mar 25 09:29:10 s6a unix: [ID 389951 kern.info] mem = 524288K (0x20000000)
Mar 25 09:29:10 s6a unix: [ID 930857 kern.info] avail mem = 513384448
2.添加用户,改环境变量,去处OS中snmp管理:
s6a:/# vi /etc/group
...
esadm::1000:root
esdomadm::1001:root,esuser
esops::1002:
esscrusers::1003:
s6a:/# vi /etc/passwd
...
smcorau :100:101011::/var/opt/SUNWsymon/smcorau:/bin/sh
esuser :1001:1000::/opt/esuser:/bin/sh
s6a:/# more /etc/shadow
...
esuser::12867::::::
s6a:/# passwd esuser
新口令:
请重新输入新口令:
passwd:esuser 的口令已成功更改
s6a:/# mkdir /opt/esuser
s6a:/# chown esuser:esdomadm /opt/esuser
s6a:/# vi /.profile
...
PATH=/usr/jdk/instances/jdk1.5.0/bin:/usr/bin:/usr/ucb:/etc:.
export PATH
JAVA_HOME=/usr/jdk/instances/jdk1.5.0
export JAVA_HOME
s6a:/etc# cd /etc/rc3.d
s6a:/etc/rc3.d# ls
README S50apache S75seaport S77dmi S81volmgt S84appserv
S16boot.server S52imq S76snmpdx S80mipagent S82initsma S90samba
s6a:/etc/rc3.d# mv S76snmpdx ssS76snmpdx
3. 安装SunMC:
将download软件解压到目录里,再运行es-inst:
s6a:/disk13/software/sunmc35u1a/disk1/sbin# ls
INSTALL_README.HWDS es-common.sh es-makeagent windows_install_readme.txt
README.INSTALL es-guiinst es-uninst
bin es-inst lib
s6a:/disk13/software/sunmc35u1a/disk1/sbin# ./es-inst
----------------------------------------------------------------------------
此脚本安装 Sun (TM) Management Center 3.5 Update 1
----------------------------------------------------------------------------
安装程序文件源目录:/disk13/software/sunmc35u1a/disk1/image
输入要安装到的目录:[ /opt ]
安装的目标目录:/opt
Sun Management Center 可提供两种类型的环境:
(1) 产品环境 (PE)
请为可以管理并监视
子系统、组件和外围设备的活动环境选择 PE。 系统将提示您
选择要安装的组件(服务器、代理和/或控制台)。
(2) 开发环境 (DE)
对于开发人员,要创建和测试自己
的自定义模块,请选择 DE。 选择 DE 将安装所有组件(服务器、
代理和控制台)
请选择 1 或 2: [ 1 ]
选择要安装的 Sun Management Center 组件:
可供选择 3 组件:
是否要安装 Server 组件 (y|n|q) y
注意:代理组件将自动安装。
是否要安装 Console 组件 (y|n|q) y
Sun Microsystems, Inc.
Binary Code License Agreement
READ THE TERMS OF THIS AGREEMENT AND ANY PROVIDED SUPPLEMENTAL
LICENSE TERMS (COLLECTIVELY "AGREEMENT" CAREFULLY BEFORE OPENING
...
必须同意上述许可证协议才能继续安装。
是否同意 (y|n|q) y
可以使用以下语言安装 Sun Management Center:
繁体中文
简体中文
法文
日文
韩文
缺省情况下将安装 简体中文 和英文。
是否需要其它语言 (y|n|q) n
您可以安装产品文档资料。
产品文档资料将按以前选择的语言进行安装。
安装产品文档资料。 (y|n|q) y
选择要安装的产品文档资料
从映像中读取附加产品。 请稍候...
完成此过程大约需要 3 分钟。
已找到:Advanced System Monitoring
已找到:ELP Config-Reader Monitoring
已找到:Desktop
已找到:Service Availability Manager
已找到:Netra
已找到:Performance Reporting Manager
已找到:N1 Grid Console - Container Manager
已找到:Sun Fire Midrange Systems Domain Administration
已找到:Dynamic Reconfiguration for Sun Fire High-End and Midrange Systems
已找到:Sun Fire Midrange Systems Platform Administration
已找到:Starfire Monitoring
已找到:Monitoring and Management of A5x00 and T3 devices
已找到:Sun Fire 15K/12K Monitoring
已找到:Sun Fire Link
已找到:Sun Enterprise 6500-3500 Servers/sun4d DR
已找到:Sun Enterprise 6500-3500 Servers/sun4d Config Reader
已找到:System Reliability Manager
已找到:Sun Management Center Integration for Unicenter TNG
已找到:Sun Management Center-Tivoli integration Pack
已找到:Workgroup Server
检查适用的产品。 请稍候...
完成此过程大约需要 2 分钟。
将安装 Sun Management Center 基本产品。
以下附加产品可用于安装。
Advanced System Monitoring
此产品需要以下增补程序的部分或全部:
118933-01
如果选择安装它,则将安装所需的增补程序。
ELP Config-Reader Monitoring
Desktop
Service Availability Manager
Netra
Performance Reporting Manager
此产品需要以下增补程序的部分或全部:
117439-02,117439-02
如果选择安装它,则将安装所需的增补程序。
N1 Grid Console - Container Manager
此产品需要以下增补程序的部分或全部:
118729-01,118729-01
如果选择安装它,则将安装所需的增补程序。
Sun Fire Midrange Systems Domain Administration
Dynamic Reconfiguration for Sun Fire High-End and Midrange Systems
Sun Fire Midrange Systems Platform Administration
Starfire Monitoring
Monitoring and Management of A5x00 and T3 devices
Sun Fire 15K/12K Monitoring
Sun Fire Link
Sun Enterprise 6500-3500 Servers/sun4d DR
Sun Enterprise 6500-3500 Servers/sun4d Config Reader
System Reliability Manager
此产品需要以下增补程序的部分或全部:
118839-01
如果选择安装它,则将安装所需的增补程序。
Sun Management Center Integration for Unicenter TNG
Sun Management Center-Tivoli integration Pack
Workgroup Server
选择要安装的产品:
Advanced System Monitoring (y|n|q)
输入 "y" 或 "n" 或 "q"
Advanced System Monitoring (y|n|q) y
ELP Config-Reader Monitoring (y|n|q) y
Desktop (y|n|q) y
Service Availability Manager (y|n|q) y
Netra (y|n|q) n
Performance Reporting Manager (y|n|q) y
N1 Grid Console - Container Manager (y|n|q) y
Sun Fire Midrange Systems Domain Administration (y|n|q) y
Dynamic Reconfiguration for Sun Fire High-End and Midrange Systems (y|n|q) y
Sun Fire Midrange Systems Platform Administration (y|n|q) y
Starfire Monitoring (y|n|q) n
Monitoring and Management of A5x00 and T3 devices (y|n|q) n
Sun Fire 15K/12K Monitoring (y|n|q) n
Sun Fire Link (y|n|q) n
Sun Enterprise 6500-3500 Servers/sun4d DR (y|n|q) n
Sun Enterprise 6500-3500 Servers/sun4d Config Reader (y|n|q) n
System Reliability Manager (y|n|q) y
Sun Management Center Integration for Unicenter TNG (y|n|q) n
Sun Management Center-Tivoli integration Pack (y|n|q) n
Workgroup Server (y|n|q) y
将安装以下附加产品:
Advanced System Monitoring
ELP Config-Reader Monitoring
Desktop
Service Availability Manager
Performance Reporting Manager
N1 Grid Console - Container Manager
Sun Fire Midrange Systems Domain Administration
Dynamic Reconfiguration for Sun Fire High-End and Midrange Systems
Sun Fire Midrange Systems Platform Administration
System Reliability Manager
Workgroup Server
是否要继续 (y|n|q) y
Sun Microsystems Inc. Binary Code License Agreement
For the
SUN MANAGEMENT CENTER 3.5 UPDATE 1 ADD-ON PACKAGES
SUN IS WILLING TO LICENSE THE ACCOMPANYING BINARY SOFTWARE IN
MACHINE- READABLE FORM, TOGETHER WITH ACCOMPANYING DOCUMENTATION
(COLLECTIVELY "SOFTWARE" TO YOU ONLY UPON THE CONDITION THAT YOU
ACCEPT ALL OF THE TERMS AND CONDITION CONTAINED IN THESE LICENSE
AGREEMENTS. READ THE TERMS AND CONDITIONS OF THESE AGREEMENTS
...
许可证协议涵盖以下附加产品:
Advanced System Monitoring
Service Availability Manager
Performance Reporting Manager
N1 Grid Console - Container Manager
System Reliability Manager
必须同意上述许可证协议才能继续安装。
是否同意 (y|n|q) y
正在检查磁盘空间....
Processing package instance <SUNWesora>; from </disk13/software/sunmc35u1a/disk1/image/db>;
Sun Management Center Database Management System(sparc) 3.5,REV=2004.03.16
Using </opt>; as the package base directory.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
Installing Sun Management Center Database Management System as <SUNWesora>;
## Executing preinstall script.
Copyright 2003 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Group smcorag exists
User smcorau created
## Installing part 1 of 1.
375268 块
[ verifying class <dbeditfiles>; ]
Installation of <SUNWesora>; was successful.
Processing package instance <SUNWestbl>; from </disk13/software/sunmc35u1a/disk1/image/db>;
Sun Management Center Database(sparc) 3.5,REV=2004.03.29
Using </var/opt/SUNWsymon>; as the package base directory.
## Processing package information.
## Processing system information.
Installing Sun Management Center Database as <SUNWestbl>;
## Installing part 1 of 1.
/var/opt/SUNWsymon/db/oradata/SunMC/control01.ctl
/var/opt/SUNWsymon/db/oradata/SunMC/control02.ctl
/var/opt/SUNWsymon/db/oradata/SunMC/control03.ctl
/var/opt/SUNWsymon/db/oradata/SunMC/rbs01.dbf
/var/opt/SUNWsymon/db/oradata/SunMC/redo01.log
/var/opt/SUNWsymon/db/oradata/SunMC/redo02.log
/var/opt/SUNWsymon/db/oradata/SunMC/redo03.log
/var/opt/SUNWsymon/db/oradata/SunMC/system01.dbf
/var/opt/SUNWsymon/db/oradata/SunMC/temp01.dbf
[ verifying class <none>; ]
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Installation of <SUNWestbl>; was successful.
已成功安装 Sun Management Center 数据库软件包
es-setup 将执行剩余配置
...
Checking patches that you specified for installation.
Done!
Approved patches will be installed in this order:
118389-03
使用 Sun Management Center 3.5 Update 1 之前必须进行设置。
是否要现在运行设置 (y|n|q) y
----------------------------------------------------------------------------
此脚本将帮助您设置 Sun (TM) Management Center 3.5 Update 1。
----------------------------------------------------------------------------
需更改 /etc/system 文件以符合 Sun Management Center 数据库需求。
是否要更新 /etc/system 文件 (y|n|q) y
为了使内核变量的更改生效,此
计算机必须重新引导。 必须现在就重新引导此计算机,
然后再次运行 /opt/SUNWsymon/sbin/es-setup。
按 [RETURN] 键退出...
安装日志文件为:/var/opt/SUNWsymon/install/install_s6a.050325194158.1751
安装结束
正在退出 Sun Management Center 安装程序。
(时间长达3小时呀!)
4. 检查安装对系统的改变,重启动后,运行es-guisetup:
s6a:/disk13/software/sunmc35u1a/disk1/sbin# more /etc/system
************************************************************************
* This file has been modified by Sun (TM) Management Center 3.5 Update 1 setup. *
* DO NOT REMOVE THESE TWO COMMENTS LINES. *
************************************************************************
set shmsys:shminfo_shmmax=268435456
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
set semsys:seminfo_semmni=100
set semsys:seminfo_semmsl=115
set semsys:seminfo_semmns=200
set semsys:seminfo_semopm=100
s6a:/opt/SUNWsymon/sbin# ./es-guisetup
...
SNMPv1:缺省
SNMP端口:1161
查阅服务端口:5600
数据库端口:2521
Web服务器端口:8080
Web服务器组织:test
Web服务器位置:test
...
(时间长达2小时,且其中居然要4个目录,书上没看见要:
3个用于存储性能报告管理数据库文件,因为性能原因最好在不同文件系统上,
装后查看,居然是Oracle的.dat 文件:
1个放N1 Grid Container的管理数据库文件)
5. 配置完成后,将用户添加如SunMC的安全用户文件中:
s6a:/var/opt/SUNWsymon/cfg# cd /var/opt/SUNWsymon/cfg
s6a:/var/opt/SUNWsymon/cfg# vi esusers
...
esuser
6. 启动Sun MC的服务后可见界面:
s6a:/opt/SUNWsymon/sbin# cd /opt/SUNWsymon/sbin
s6a:/opt/SUNWsymon/sbin# ./es-start -c
感觉与SunMC其他版本比多了不少东西,成了内存老虎:
s6a:/# vmstat 3
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr dd f0 s1 -- in sy cs us sy id
0 0 0 919936 117720 170 994 425 378 487 0 869 54 0 0 0 518 2129 467 21 21 58
0 0 0 635408 18136 152 518 1162 8 8 7112 0 121 0 0 0 641 454 534 4 9 86
0 0 0 634192 12224 61 240 885 0 0 5192 0 101 0 0 0 604 227 520 2 7 91 |
|