# bootinfo -K
返回结果:
64
关于硬件
显示机器硬件是32位还是64位:
bootinfo –y
返回结果
64
# bootinfo -r
返回结果
7897088
查看机器是否支持64位内核(是否64位硬件)
/usr/sbin/bootinfo -p
如果返回32,则表示硬件是32位的;如果返回的是chrp,则表示硬件是64位的机器。
返回结果
chrp
显示当前磁带设备rmt0的属性
# lsattr -l rmt0 –E
返回结果:
block_size 1024 BLOCK size (0=variable length) True
compress yes Use data COMPRESSION True
density_set_1 38 DENSITY setting #1 True
density_set_2 37 DENSITY setting #2 True
extfm yes Use EXTENDED file marks True
mode yes Use DEVICE BUFFERS during writes True
ret no RETENSION on tape change or reset True
ret_error no RETURN error on tape change or reset True
size_in_mb
# lsattr -l tty0 -a login –R
返回结果:
enable
disable
share
delay
hold
查看当前系统有多少CPU:
lscfg | grep proc
返回结果:
+proc0 Processor
+proc2 Processor
+proc4 Processor
+proc6 Processor
查看当前系统有多少硬盘而且是否被使用:
lspv
返回结果:
hdisk0 000ce68e91ed863e rootvg active
hdisk1 000ce68e87f0af33 rootvg active
hdisk2 000ce68eea039b45 datavg
hdisk3 00c5894cac8a933c datavg2
显示某一设备的配置
# lscfg -vl ent0
返回结果:
ent0 U0.1-P2/E1 10/100 Mbps Ethernet PCI Adapter II (1410ff01)
10/100 Mbps Ethernet PCI Adapter II:
Network Address.............0002553A516E
ROM Level.(alterable).......SCU015
Product Specific.(Z0).......A5204205
Device Specific.(YL)........U0.1-P2/E1
显示哪一个文件集包含vmstat
# which_fileset vmstat
返回结果:
The /usr/lpp/bos/AIX_file_list file does not exist.
Please install the "bos.content_list" fileset
and try the "which_fileset" command again.
如何确定某一补丁(fix)是否安装,例如:查看IY24042是否安装
# instfix -ik IY24042
返回结果:
There was no data for IY24042 in the fix database.
查看交换区(paging space)的分配和使用:
# lsps –a
返回结果:
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk0 rootvg 4096MB 1 yes yes lv
显示哪些文件集需要安装或修改:
lppchk –v
显示卷组rootvg的详细信息:
lsvg rootvg
返回结果:
VOLUME GROUP: rootvg VG IDENTIFIER: 000ce68e00004c000000010aac48d70d
VG STATE: active PP SIZE: 128 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 1092 (139776 megabytes)
MAX LVs: 256 FREE PPs: 906 (115968 megabytes)
LVs: 12 USED PPs: 186 (23808 megabytes)
OPEN LVs: 11 QUORUM: 1
TOTAL PVs: 2 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 2 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
显示属于rootvg的所有硬盘:
lsvg -p rootvg
返回结果:
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 546 453 109..33..93..109..109
hdisk1 active 546 453 109..33..93..109..109
如何添加一个硬盘到卷组中:
extendvg Volume_Group_Name hdisk0 hdisk1 ... hdiskn
如何替换一个硬盘:
1. extendvg Volume_Group_Name hdisk_new
2. migratepv hdisk_bad hdisk_new
3. reducevg -d Volume_Group_Name hdisk_bad
如何做一个逻辑卷镜像:
1. mklvcopy Logical_Volume_Name Number_of_copies
2. Syncvg Volume_Group_Name
阅读(924) | 评论(0) | 转发(0) |