AIX 新装系统参数检查与修改
Steps for System Configuration Check
1. 最大用户进程数 16384
smitty system
命令# lsattr -E -l sys0 -a maxuproc用于显示该值
命令# chdev -l sys0 -a maxuproc=16384用于修改该值
2. 系统时间 BEIJING,无夏时制 割接前对表
check current time
date
check time zone
echo $TZ
3. AIO
MINIMUM number of servers 10 数据库主机
MAXIMUM number of servers per cpu 20 数据库主机
smitty aio
用于修改该值的命令
chdev -l aio0 -Pa minservers=10
chdev -l aio0 -Pa maxservers=20
用于显示该值的命令
lsattr -El aio0 -a minserverslsattr -El aio0 -a maxservers4. no
udp_sendspace 1048576 数据库主机
udp_recvspace 1048576 数据库主机
check the network options:
no -a |grep udp_sendspace
no -a |grep udp_recvspace
correct the network options:
no -p -o udp_sendspace=1048576
no -p -o udp_recvspace=1048576
5. vmo
minfree 2048
maxfree 16384
minperm% 5
maxperm% 10
maxclient% 10
strict_maxperm 1
check the virtual machine options:
vmo -a |grep minfree
vmo -a |grep maxfree
vmo -a |grep minperm%
vmo -a |grep maxperm%
vmo -a |grep maxclient%
vmo -a |grep strict_maxperm
correct the network options:
vmo -p -o maxfree=16384
vmo -p -o minfree=2048
vmo -p -o maxperm%=10
vmo -p -o minperm%=5
vmo -p -o maxclient%=10
vmo -p -o strict_maxperm=1
6. limit
default "default:
fsize = -1
core = 2097151
cpu = -1
data = -1
rss = -1
stack = -1
nofiles = 2000"
oracle "oracle:
fsize = -1
cpu = -1
data = -1
stack = -1
core = 2097151
rss = -1
nofiles = -1
fsize_hard = -1
cpu_hard = -1
data_hard = -1
stack_hard = -1
rss_hard = -1
nofiles_hard = -1"
check the limitation settings:
more /etc/security/limits
correct the limitation settings:
vi /etc/security/limits
7. swap 内存小于等于16G的,同内存大小,大于16G的配置16G,不镜像
check the memory size:
lsattr –El mem0check the physical partition size:
lsvg rootvgcheck the current paging space size:
lsps –a
change the existed paging space size
smitty chps
create new paing space
smitty mkps
删除ps:
swapoff /dev/paging00
smitty rmlv
去除镜像:smitty rmlvcopy
8. rootvg镜像
/oracle
/tivoli
/var/cics_servers
/var/cics_regions
/washome
check the mirror setting of logic volume:
lsvg –l rootvgadd mirror to logic volume:
smitty mklvcopy
DONE