系统统计
1.prtconf 系统信息
prtconf –V 显示OBP版本
2./usr/platform/sun4u/sbin/prtdiag -v
显示系统信息(包括内存,CPU,OBP版本等)
3.sysdef 系统信息
sysdef –i 显示可调内核参数的设置
4.eeprom 显示机器IDPROM变量
5.vmstat 监视CPU和内存
# vmstat
procs memory page disk
faults cpu
r b w swap free re mf pi po fr de sr f0 s0 s1 s6
in sy cs us sy id
0 1 0 557136 11544 2 77 278 166 235 0 9 0 32 0 13
301 472 142 2 5 94
5. mpstat 监视多个CPU状态
6. # mpstat
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr
sys wt idl
15 0 400 199 142 6 0 0 0 470 2 4 64
29
变量 说明 变量 说明
CPU CPU ID migr
Minf 轻微故障(minor faults) smtx
Mjf 重要故障(major faults) srw
Xcal 处理机间的调用 syscl 系统调用次数
Intr 中断数 usr 用户时间所占百分比
Ithr 线程中断数(不包括时钟中断) sys 系统时间所占百分比
csw 上下文切换次数 wt 等待时间所占百分比
icsw 强制的上下文切换次数 idle 空闲时间所占百分比
7.iostat 监视磁盘状态
# iostat
tty fd0 sd0 sd1
sd6 cpu
tin tout kps tps serv kps tps serv kps tps serv
kps tps serv us sy wt id
0 69 0 0 0 326 32 76 0 0 4
193 13 70 2 5 65 29
tin us
tont sy
bps wt
tps id
serv
8.uptime 显示系统运行时间以及在过去的15分钟内系统的负载情况
# uptime
4:23pm up 1:15, 1 user, load average: 0.10, 0.13,
0.12
/etc/system
set rstchown = 0 ;users can chown files
set ngroups_max = 32 ;设置每个用户最大组数为32,但可能引起NFS兼容问题
;因为典型NFS Servers
set pt_cnt =
set hires_tick = 1 ;设置频率为1000
set rlim_fd_max = 4096 ;设置文件描述符硬限制
set rlim_fd_cur = 1024 ;设置文件描述符软限制
set maxuprc =
set maxnprocs=
2.Making boot device alias In case system can not boot fromprimary disk and it is needed to make another boot disk to access thedata , nvalias command is used . nvalias command makes the devicealias and assigns an alternate name to a physical disk. Physicaladdress of target disk is required which can be had by show-disk command on ok>.
ok>nvaliasdisk7 /iommu@f,e0000000/sbus@f,e0001000/dma@3,81000/esp@3,80000/sd2,0 The new aliased disk can be named as boot disk or can be used for booting by refering its name . ok> setenv boot-device disk7 ok>reset or ok> boot disk7
3."Timeout waiting for ARP/RARP packet"? At ok> type printenv and look for these parameters .
boot-device disk
mfg-switch? false
diag-switch? false if you see "boot-device net " or true value for the other two parameter change it to the values above. In case you wants to boot fromnetwork make sure your client is properly configured in boot server andnetwork connections & configuration are proper.
4."The file just loaded does not appear to be executable." Boot block on the hard disk is corrupted .Boot the system in single user mode with cdrom and reinstall boot block . #installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t3d0s0 5."bootblk: can't find the boot program" boot block can not find the bootprograme - ufsboot in Solaris .Either ufsboot is missing or corrupted .In such cases it can be restored from the cdrom after booting fromcdrom & mounting the hard disk # cp /platform/`uname -i`/ufsboot /mnt/platform/`uname -i`
6."boot: cannot open kernel/unix" Kernel directory or unix kernelfile in this directory is not found .Probably deleted during fsck ordeleted by mistake .Copy it from the cdrom or restore from the backuptape. # cp /platform/`uname -i`/kernel/unix /mnt/platform/`uname -i`/kernel
7."Error reading ELF header."? Kernel directory or unix kernel file in this directory is corrupted.Copy it from the cdrom or restore from the backup tape. # cp /platform/`uname -i`/kernel/unix /mnt/platform/`uname -i`/kernel
8."Cannot open '/etc/path_to_inst'" System can not find the /etc/path_to_install file .It might be missing or corrupted and needs to be rebuild. To rebuild this file boot the system with -ar option : ok>boot -ar Press enter to select default values for the questions asked during booting and select yes to rebuild /etc/path_to_install The /etc/path_to_inst on your system does not exist or is empty. Do you want to rebuild this file [n]? y system will continue booting after rebuilding the file.
9."Can't stat /dev/rdsk/c0t3d0s0" When booted from cdrom and donefsck the root partition comes out to be fine but on booting from rootdisk this error occurs. The device name for / is missing from /dev/dskdirectory and to resolve the issue /dev & /devices directories hasto be restored from root backup tapes .
全国职称计算机考试速成过关系列套装:W .. 定价:¥133 优惠价:¥133.0 更多书籍 | |
全国职称计算机考试速成过关系列套装:W .. 定价:¥124 优惠价:¥124.0 更多书籍 |