首页 > 代码库 > AIX 第4章 指令记录
AIX 第4章 指令记录
root@db:/#lsdev -Cc disk
--查看磁盘设备信息 -C customized -c class
hdisk0 Available 00-08-00 SAS Disk Drive
hdisk1 Available 00-08-00 SAS Disk Drive
hdisk2 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk3 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk4 Available 05-00-01 Other FC SCSI Disk Drive
hdisk5 Available 05-00-01 Other FC SCSI Disk Drive
hdisk6 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk7 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk8 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk9 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk10 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk11 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk12 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk13 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk14 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk15 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk16 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk17 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk18 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk19 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk20 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk21 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk22 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk23 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk24 Available 05-00-01 EMC
hdisk0 Available 00-08-00 SAS Disk Drive
hdisk1 Available 00-08-00 SAS Disk Drive
hdisk2 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk3 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk4 Available 05-00-01 Other FC SCSI Disk Drive
hdisk5 Available 05-00-01 Other FC SCSI Disk Drive
hdisk6 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk7 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk8 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk9 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk10 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk11 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk12 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk13 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk14 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk15 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk16 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk17 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk18 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk19 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk20 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk21 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk22 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk23 Available 05-00-01 EMC CLARiiON FCP RAID 5 Disk
hdisk24 Available 05-00-01 EMC
B6267342 is a SC_DISK_ERR2 which means it is a disk error at the scsi transport layer.
root@db:/#cfgmgr
--扫描新添加的设备
ssdb04.shz.hn:/#lspv -p hdisk0
--查看磁盘的分区和分配状态和特性,region列表示分布在磁盘的哪个位置
hdisk0:
PP RANGE STATE REGION LV NAME TYPE MOUNT POINT
1-1 used outer edge hd5 boot N/A
2-110 free outer edge
111-111 used outer middle hd6 paging N/A
112-115 used outer middle lg_dumplv sysdump N/A
116-116 used outer middle hd6 paging N/A
117-117 used outer middle loglv00 jfslog N/A
118-118 used outer middle lv00 jfs /var/adm/csd
119-136 used outer middle hd6 paging N/A
137-176 used outer middle instlv jfs2 /install
177-188 used outer middle hd6 paging N/A
189-192 used outer middle lg_dumplv sysdump N/A
193-219 used outer middle hd6 paging N/A
220-220 used center hd8 jfs2log N/A
221-221 used center hd4 jfs2 /
222-222 used center hd2 jfs2 /usr
223-223 used center hd9var jfs2 /var
224-224 used center hd3 jfs2 /tmp
225-225 used center hd1 jfs2 /home
226-226 used center hd10opt jfs2 /opt
227-237 used center hd2 jfs2 /usr
238-244 used center hd3 jfs2 /tmp
245-245 used center hd9var jfs2 /var
246-246 used center hd4 jfs2 /
247-247 used center hd10opt jfs2 /opt
hdisk0:
PP RANGE STATE REGION LV NAME TYPE MOUNT POINT
1-1 used outer edge hd5 boot N/A
2-110 free outer edge
111-111 used outer middle hd6 paging N/A
112-115 used outer middle lg_dumplv sysdump N/A
116-116 used outer middle hd6 paging N/A
117-117 used outer middle loglv00 jfslog N/A
118-118 used outer middle lv00 jfs /var/adm/csd
119-136 used outer middle hd6 paging N/A
137-176 used outer middle instlv jfs2 /install
177-188 used outer middle hd6 paging N/A
189-192 used outer middle lg_dumplv sysdump N/A
193-219 used outer middle hd6 paging N/A
220-220 used center hd8 jfs2log N/A
221-221 used center hd4 jfs2 /
222-222 used center hd2 jfs2 /usr
223-223 used center hd9var jfs2 /var
224-224 used center hd3 jfs2 /tmp
225-225 used center hd1 jfs2 /home
226-226 used center hd10opt jfs2 /opt
227-237 used center hd2 jfs2 /usr
238-244 used center hd3 jfs2 /tmp
245-245 used center hd9var jfs2 /var
246-246 used center hd4 jfs2 /
247-247 used center hd10opt jfs2 /opt
ssdb04.shz.hn:/#lsdev -Cc tape
--查看磁带设备
ssdb04.shz.hn:/#lsattr -El rmt0
--查看磁带设备属性
block_size 0 BLOCK size (0=variable length) True
delay 45 Set delay after a FAILED command True
density_set_1 0 DENSITY setting #1 True
density_set_2 0 DENSITY setting #2 True
extfm yes Use EXTENDED file marks True
location Location Label True
lun_id 0x0 Logical Unit Number ID False
mode yes Use DEVICE BUFFERS during writes True
node_name 0x5001438012589bd9 FC Node Name False
res_support no RESERVE/RELEASE support True
ret_error no RETURN error on tape change or reset True
rwtimeout 144 Set timeout for the READ or WRITE command True
scsi_id 0xc1000 SCSI ID False
var_block_size 0 BLOCK SIZE for variable length support True
ww_name 0x5001438012589bda FC World Wide Name False
block_size 0 BLOCK size (0=variable length) True
delay 45 Set delay after a FAILED command True
density_set_1 0 DENSITY setting #1 True
density_set_2 0 DENSITY setting #2 True
extfm yes Use EXTENDED file marks True
location Location Label True
lun_id 0x0 Logical Unit Number ID False
mode yes Use DEVICE BUFFERS during writes True
node_name 0x5001438012589bd9 FC Node Name False
res_support no RESERVE/RELEASE support True
ret_error no RETURN error on tape change or reset True
rwtimeout 144 Set timeout for the READ or WRITE command True
scsi_id 0xc1000 SCSI ID False
var_block_size 0 BLOCK SIZE for variable length support True
ww_name 0x5001438012589bda FC World Wide Name False
odm数据库操作指令:
odmadd
odmchange
odmcreate
odmdelete --从一个对象类中删除对象
odmdrop --删除整个对象类
odmget
odmshow
ssdb04.shz.hn:/#odmshow CuDv
--查看指定类定义
class CuDv {
char name[16]; /* offset: 0xc ( 12) */
short status; /* offset: 0x1c ( 28) */
short chgstatus; /* offset: 0x1e ( 30) */
char ddins[16]; /* offset: 0x20 ( 32) */
char location[16]; /* offset: 0x30 ( 48) */
char parent[16]; /* offset: 0x40 ( 64) */
char connwhere[16]; /* offset: 0x50 ( 80) */
link PdDv PdDv uniquetype PdDvLn[48]; /* offset: 0x60 ( 96) */
};
/*
descriptors: 8
structure size: 0x98 (152) bytes
data offset: 0x20003218
population: 288 objects (274 active, 14 deleted)
*/
class CuDv {
char name[16]; /* offset: 0xc ( 12) */
short status; /* offset: 0x1c ( 28) */
short chgstatus; /* offset: 0x1e ( 30) */
char ddins[16]; /* offset: 0x20 ( 32) */
char location[16]; /* offset: 0x30 ( 48) */
char parent[16]; /* offset: 0x40 ( 64) */
char connwhere[16]; /* offset: 0x50 ( 80) */
link PdDv PdDv uniquetype PdDvLn[48]; /* offset: 0x60 ( 96) */
};
/*
descriptors: 8
structure size: 0x98 (152) bytes
data offset: 0x20003218
population: 288 objects (274 active, 14 deleted)
*/
ssdb04.shz.hn:/#odmget CuDv |more
--查看指定类中相应的值
CuDv:
name = "sys0"
status = 1
chgstatus = 1
ddins = "planar_pal_chrp"
location = ""
parent = ""
connwhere = ""
PdDvLn = "sys/node/chrp"
CuDv:
name = "sysplanar0"
status = 1
chgstatus = 2
ddins = ""
location = ""
parent = "sys0"
connwhere = "0"
PdDvLn = "planar/sys/sysplanar_rspc"
CuDv:
name = "sys0"
status = 1
chgstatus = 1
ddins = "planar_pal_chrp"
location = ""
parent = ""
connwhere = ""
PdDvLn = "sys/node/chrp"
CuDv:
name = "sysplanar0"
status = 1
chgstatus = 2
ddins = ""
location = ""
parent = "sys0"
connwhere = "0"
PdDvLn = "planar/sys/sysplanar_rspc"
ssdb04.shz.hn:/var/adm/ras#/usr/lib/errdemon -l
--查看系统日志生成路径,大小属性等
Error Log Attributes
--------------------------------------------
Log File /var/adm/ras/errlog
Log Size 1048576 bytes
Memory Buffer Size 32768 bytes
Duplicate Removal true
Duplicate Interval 10000 milliseconds
Duplicate Error Maximum 1000
Error Log Attributes
--------------------------------------------
Log File /var/adm/ras/errlog
Log Size 1048576 bytes
Memory Buffer Size 32768 bytes
Duplicate Removal true
Duplicate Interval 10000 milliseconds
Duplicate Error Maximum 1000
ssdb04.shz.hn:/var/adm/ras#errpt
--查看系统错误信息
C字段表示错误类型,参数O表示操作程序方面的错误,H表示硬件故障类型错误,S表示如啊你按故障,U表示不能确定的类型
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
9DBCFDEE 0818103214 T O errdemon ERROR LOGGING TURNED ON
192AC071 0818103214 T O errdemon ERROR LOGGING TURNED OFF
9DBCFDEE 0818103214 T O errdemon ERROR LOGGING TURNED ON
192AC071 0818103214 T O errdemon ERROR LOGGING TURNED OFF
B6267342 0809180114 P H hdisk95 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk97 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk111 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk111 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk113 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk113 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk111 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk50 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk49 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk47 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk103 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk105 DISK OPERATION ERROR
9DBCFDEE 0818103214 T O errdemon ERROR LOGGING TURNED ON
192AC071 0818103214 T O errdemon ERROR LOGGING TURNED OFF
9DBCFDEE 0818103214 T O errdemon ERROR LOGGING TURNED ON
192AC071 0818103214 T O errdemon ERROR LOGGING TURNED OFF
B6267342 0809180114 P H hdisk95 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk97 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk111 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk111 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk113 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk113 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk111 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk50 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk49 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk47 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk103 DISK OPERATION ERROR
B6267342 0809180114 P H hdisk105 DISK OPERATION ERROR
ssdb04.shz.hn:/var/adm/ras#errpt -a
--列出详细信息
---------------------------------------------------------------------------
LABEL: ERRLOG_ON
IDENTIFIER: 9DBCFDEE
Date/Time: Mon Aug 18 10:32:56 BEIST 2014
Sequence Number: 45171
Machine Id: 00CF5DF34C00
Node Id: ssdb04
Class: O
Type: TEMP
Resource Name: errdemon
Description
ERROR LOGGING TURNED ON
Probable Causes
ERRDEMON STARTED AUTOMATICALLY
User Causes
/USR/LIB/ERRDEMON COMMAND
Recommended Actions
NONE
---------------------------------------------------------------------------
LABEL: ERRLOG_OFF
IDENTIFIER: 192AC071
Date/Time: Mon Aug 18 10:32:53 BEIST 2014
Sequence Number: 45170
Machine Id: 00CF5DF34C00
Node Id: ssdb04
Class: O
Type: TEMP
Resource Name: errdemon
Description
ERROR LOGGING TURNED OFF
Probable Causes
ERRSTOP COMMAND
User Causes
ERRSTOP COMMAND
Recommended Actions
RUN ERRDEAD COMMAND
TURN ERROR LOGGING ON
---------------------------------------------------------------------------
LABEL: ERRLOG_ON
IDENTIFIER: 9DBCFDEE
Date/Time: Mon Aug 18 10:32:35 BEIST 2014
Sequence Number: 45168
Machine Id: 00CF5DF34C00
Node Id: ssdb04
Class: O
Type: TEMP
Resource Name: errdemon
Description
ERROR LOGGING TURNED ON
Probable Causes
ERRDEMON STARTED AUTOMATICALLY
User Causes
/USR/LIB/ERRDEMON COMMAND
Recommended Actions
NONE
---------------------------------------------------------------------------
---------------------------------------------------------------------------
LABEL: ERRLOG_ON
IDENTIFIER: 9DBCFDEE
Date/Time: Mon Aug 18 10:32:56 BEIST 2014
Sequence Number: 45171
Machine Id: 00CF5DF34C00
Node Id: ssdb04
Class: O
Type: TEMP
Resource Name: errdemon
Description
ERROR LOGGING TURNED ON
Probable Causes
ERRDEMON STARTED AUTOMATICALLY
User Causes
/USR/LIB/ERRDEMON COMMAND
Recommended Actions
NONE
---------------------------------------------------------------------------
LABEL: ERRLOG_OFF
IDENTIFIER: 192AC071
Date/Time: Mon Aug 18 10:32:53 BEIST 2014
Sequence Number: 45170
Machine Id: 00CF5DF34C00
Node Id: ssdb04
Class: O
Type: TEMP
Resource Name: errdemon
Description
ERROR LOGGING TURNED OFF
Probable Causes
ERRSTOP COMMAND
User Causes
ERRSTOP COMMAND
Recommended Actions
RUN ERRDEAD COMMAND
TURN ERROR LOGGING ON
---------------------------------------------------------------------------
LABEL: ERRLOG_ON
IDENTIFIER: 9DBCFDEE
Date/Time: Mon Aug 18 10:32:35 BEIST 2014
Sequence Number: 45168
Machine Id: 00CF5DF34C00
Node Id: ssdb04
Class: O
Type: TEMP
Resource Name: errdemon
Description
ERROR LOGGING TURNED ON
Probable Causes
ERRDEMON STARTED AUTOMATICALLY
User Causes
/USR/LIB/ERRDEMON COMMAND
Recommended Actions
NONE
---------------------------------------------------------------------------
ssdb04.shz.hn:/#errpt -aj B6267342 | more
--查看指定错误编号的详细信息 -a all 查看详细I信息 -j 指定错误编号
---------------------------------------------------------------------------
LABEL: SC_DISK_ERR2
IDENTIFIER: B6267342
Date/Time: Sat Aug 9 18:01:20 BEIST 2014
Sequence Number: 45166
Machine Id: 00CF5DF34C00
Node Id: ssdb04
Class: H
Type: PERM
Resource Name: hdisk95
Resource Class: disk
Resource Type: CLAR_FC_raid5
Location: U789D.001.DQD47GW-P1-C5-T1-W5006016B3B2018D6-L14000000000000
VPD:
Manufacturer................DGC
Machine Type and Model......RAID 5
ROS Level and ID............0430
Serial Number...............CKM00091100476
Subsystem Vendor/Device ID..CX4-960
Device Specific.(PQ)........00
Device Specific.(VS)........3E0000F2E8CL
Device Specific.(UI)........60060160CB8525002CA726B94FB5E111
FRU Label...................013E
Device Specific.(Z0)........10
Device Specific.(Z1)........10
LABEL: SC_DISK_ERR2
IDENTIFIER: B6267342
Date/Time: Sat Aug 9 18:01:20 BEIST 2014
Sequence Number: 45166
Machine Id: 00CF5DF34C00
Node Id: ssdb04
Class: H
Type: PERM
Resource Name: hdisk95
Resource Class: disk
Resource Type: CLAR_FC_raid5
Location: U789D.001.DQD47GW-P1-C5-T1-W5006016B3B2018D6-L14000000000000
VPD:
Manufacturer................DGC
Machine Type and Model......RAID 5
ROS Level and ID............0430
Serial Number...............CKM00091100476
Subsystem Vendor/Device ID..CX4-960
Device Specific.(PQ)........00
Device Specific.(VS)........3E0000F2E8CL
Device Specific.(UI)........60060160CB8525002CA726B94FB5E111
FRU Label...................013E
Device Specific.(Z0)........10
Device Specific.(Z1)........10
errstop停止错误日志系统功能
errdemon开启日志系统功能
/usr/lib/errdemon -l查看日志配置信息
sdb04.shz.hn:/#alog -L
--查看所有日志文件
boot ---启动日志
bosinst ---基本操作系统安装日志
nim --网络安装管理日志
console --控制台相关日志
cfg --系统启动设备配置日志
lvmcfg
lvmt
dumpsymp --系统dump日志
lvmgs
boot ---启动日志
bosinst ---基本操作系统安装日志
nim --网络安装管理日志
console --控制台相关日志
cfg --系统启动设备配置日志
lvmcfg
lvmt
dumpsymp --系统dump日志
lvmgs
ssdb04.shz.hn:/#alog -o -t boot |more
---查看系统启动过程日志信息
5 for hdisk60
Number of running methods: 15
----------------
attempting to configure device ‘hdisk61‘
Time: 1 LEDS: 0xff5
invoking /usr/lib/methods/cfgscsidisk -2 -l hdisk61
Number of running methods: 16
----------------
Completed method for: hdisk6, Elapsed time = 0
return code = 0
****************** no stdout ***********
****************** no stderr ***********
----------------
Time: 1 LEDS: 0xff5 for hdisk61
Number of running methods: 15
----------------
attempting to configure device ‘hdisk62‘
Time: 1 LEDS: 0xff5
invoking /usr/lib/methods/cfgscsidisk -2 -l hdisk62
Number of running methods: 16
----------------
Completed method for: hdisk7, Elapsed time = 0
return code = 0
****************** no stdout ***********
****************** no stderr ***********
----------------
Standard input
---查看系统启动过程日志信息
5 for hdisk60
Number of running methods: 15
----------------
attempting to configure device ‘hdisk61‘
Time: 1 LEDS: 0xff5
invoking /usr/lib/methods/cfgscsidisk -2 -l hdisk61
Number of running methods: 16
----------------
Completed method for: hdisk6, Elapsed time = 0
return code = 0
****************** no stdout ***********
****************** no stderr ***********
----------------
Time: 1 LEDS: 0xff5 for hdisk61
Number of running methods: 15
----------------
attempting to configure device ‘hdisk62‘
Time: 1 LEDS: 0xff5
invoking /usr/lib/methods/cfgscsidisk -2 -l hdisk62
Number of running methods: 16
----------------
Completed method for: hdisk7, Elapsed time = 0
return code = 0
****************** no stdout ***********
****************** no stderr ***********
----------------
Standard input
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。