1. 使用 ps 查看系统中运行的进程
bash-3.00# ps -ef | more
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 9ÔÂ28 - 4:18 /etc/init
root 102554 1 0 9ÔÂ28 - 0:02 /usr/dt/bin/dtlogin -daemon
root 110690 204930 0 9ÔÂ28 - 2:14 /usr/sbin/rsct/bin/vac5/IBM.CSMAgentRMd
root 118862 176224 0 9ÔÂ28 - 213:08 dtgreet
root 139384 1 1 9ÔÂ28 - 643:02 /usr/sbin/syncd 10
root 147532 1 0 9ÔÂ28 - 0:00 /usr/lib/errdemon
root 151560 204930 0 9ÔÂ28 - 0:00 /usr/sbin/snmpd
root 155824 168042 0 9ÔÂ28 - 0:00 rpc.ttdbserver 100083 1
oracle 164024 1 0 10ÔÂ08 - 3:00 ora_lgwr_wind
root 168042 204930 0 9ÔÂ28 - 0:00 /usr/sbin/inetd
系统中每个活动进程的内存使用情况,并以一种恰当的方式进行了排序。
bash-3.00# ps gv | head -n 1; ps gv | egrep -v "RSS" | sort +6b -7 -n -r
PID TTY STAT TIME PGIN SIZE RSS LIM TSIZ TRS %CPU %MEM COMMAND
1036476 pts/4 A 3:33 3123 175272 175360 xx 69 88 0.8 3.0 /usr/ja
516182 - A 10:42 2865 113960 156404 xx 84464 42444 0.0 2.0 ora_mmo
639072 pts/4 A 1:46 342 105560 105648 xx 69 88 0.4 2.0 /usr/ja
528470 pts/4 A 1:07 327 104560 104648 xx 69 88 0.3 2.0 /usr/ja
233618 - A 3:15 0 11748 54192 xx 84464 42444 0.0 1.0 ora_dbw
442550 pts/4 A 0:17 4 54020 54108 xx 69 88 0.1 1.0 /usr/ja
274588 - A 6:26 0 11472 53916 xx 84464 42444 0.0 1.0 ora_pmo
741598 - A 0:19 358 11144 53588 xx 84464 42444 0.1 1.0 oraclew
901236 - A 0:12 89 10956 53400 xx 84464 42444 0.0 1.0 oraclew
548960 - A 0:15 92 10304 52748 xx 84464 42444 0.1 1.0 oraclew
823480 - A 0:00 0 9768 52212 xx 84464 42444 0.0 1.0 oraclew
294924 - A 7:58 16359 9548 51992 xx 84464 42444 0.0 1.0 ora_smo
454704 - A 0:01 5 9152 51596 xx 84464 42444 0.0 1.0 oraclew
1015846 - A 0:02 64 9132 51576 xx 84464 42444 0.0 1.0 oraclew
827586 - A 2:14 2262 9000 51444 xx 84464 42444 0.0 1.0 ora_q00
508148 - A 0:00 20 8896 51340 xx 84464 42444 0.0 1.0 oraclew
630950 - A 11:29 284 8856 51300 xx 84464 42444 0.0 1.0 ora_cjq
2、bash-3.2# chfs -a size=3G / 将跟目录"/ "文件系统大小更改为3G
文件系统大小更改为 6291456
bash-3.2# df -g
文件系统 GB 块 可用 %Used Iused %Iused 安装于
/dev/hd4 3.00 2.79 8% 5227 1% /
/dev/hd2 5.00 3.09 39% 42542 6% /usr
/dev/hd9var 2.00 1.93 4% 4505 1% /var
/dev/hd3 5.00 2.15 58% 952 1% /tmp
/dev/fwdump 1.00 1.00 1% 4 1% /var/adm/ras/platform
/dev/hd1 5.00 3.41 32% 18149 3% /home
/proc - - - - - /proc
/dev/hd10opt 5.00 4.91 2% 1819 1% /opt
/dev/fslv00 70.00 35.40 50% 68732 1% /oracle
/dev/datalv 100.00 69.46 31% 86012 1% /data
bash-3.2#
3、修改系统时间
# smitty date
Change / Show Day and Time
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
YEAR (00-99) [09] #
MONTH (01-12) [12] #
DAY (1-31) [31] #
HOUR (00-23) [19] #
MINUTES (00-59) [02] #
SECONDS (00-59) [42] #
统时间
显示修改后的系统时间
# date
Thu Dec 31 19:02:59 BEIST 2009
4、系统运行的JAVA的版本查看命令
bash-3.2# java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2)
Classic VM (build 1.4.2, J2RE 1.4.2 IBM AIX build ca142-20080122 (SR10) (JIT enabled: jitc))
5.查看空间
lspv :查看系统硬盘
# lspv
hdisk0 00c36cc5d8e60de0 rootvg active
hdisk1 00c36cc5d99e0011 datavg active
hdisk2 00c36cc5d99e0193 datavg active
hdisk3 00c36cc5b1c6264a rootvg active
hdisk4 00c36cc5d99e00d0 datavg active
hdisk5 00c36cc5da872f72 datavg active
lspv hdisk2:查看硬盘hdisk#的空间分配情况
# lspv hdisk2
PHYSICAL VOLUME: hdisk2 VOLUME GROUP: datavg
PV IDENTIFIER: 00c36cc5d99e0193 VG IDENTIFIER 00c36cc500004c0000000125e616f9da
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 512 megabyte(s) LOGICAL VOLUMES: 2
TOTAL PPs: 558 (285696 megabytes) VG DESCRIPTORS: 1
FREE PPs: 0 (0 megabytes) HOT SPARE: no
USED PPs: 558 (285696 megabytes) MAX REQUEST: 1 megabyte
FREE DISTRIBUTION: 00..00..00..00..00
USED DISTRIBUTION: 112..112..111..111..112
#
lsvg :查看系统VG
# lsvg
rootvg
datavg
#
lsvg vg_name : 查看VG的空间分配情况
bash-3.2# lsvg datavg
VOLUME GROUP: datavg VG IDENTIFIER: 00c36cc500004c0000000125e616f9da
VG STATE: active PP SIZE: 512 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 2232 (1142784 megabytes)
MAX LVs: 512 FREE PPs: 130 (66560 megabytes)
LVs: 4 USED PPs: 2102 (1076224 megabytes)
OPEN LVs: 3 QUORUM: 3 (Enabled)
TOTAL PVs: 4 VG DESCRIPTORS: 4
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 4 AUTO ON: yes
MAX PPs per VG: 130048
MAX PPs per PV: 1016 MAX PVs: 128
LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
bash-3.2#
lsvg -l vg_name: 查看VG中LV分配情况以及对应的文件系统
bash-3.2# lsvg -l datavg
datavg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
loglv00 jfslog 1 1 1 closed/syncd N/A
loglv01 jfs2log 1 1 1 open/syncd N/A
fslv00 jfs2 100 100 1 open/syncd /sap
fslv01 jfs2 2000 2000 4 open/syncd /oracle
bash-3.2# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 111 222 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 60 120 2 open/syncd /
hd2 jfs2 6 12 2 open/syncd /usr
hd9var jfs2 10 20 2 open/syncd /var
hd3 jfs2 10 20 2 open/syncd /tmp
hd1 jfs2 10 20 2 open/syncd /home
hd10opt jfs2 10 20 2 open/syncd /opt
lg_dumplv sysdump 4 4 1 open/syncd N/A
bash-3.2#
df -g :查看文件系统使用情况。
bash-3.2# df -g
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/hd4 30.00 29.48 2% 4377 1% /
/dev/hd2 3.00 1.15 62% 38732 13% /usr
/dev/hd9var 5.00 4.98 1% 535 1% /var
/dev/hd3 5.00 4.85 3% 135 1% /tmp
/dev/hd1 5.00 5.00 1% 22 1% /home
/proc - - - - - /proc
/dev/hd10opt 5.00 4.91 2% 1748 1% /opt
/dev/fslv00 50.00 34.68 31% 4999 1% /sap
/dev/fslv01 1000.00 994.51 1% 24189 1% /oracle
bash-3.2#
update CD光盘升级:放入光盘,键入#smitty update_all
查看启动顺序
#bootlist -m normal -o
设置启动顺序
#bootlist -m normal hdisk0 hdisk1
阅读(1638) | 评论(0) | 转发(0) |