当前位置: 首页 > 工具软件 > ALog > 使用案例 >

在AIX中有哪些日志可以用alog命令查看

田马鲁
2023-12-01

大家都知道在AIX中alog可以显示并且更改那些在alog数据库中配置的日志文件。但是我们在系统中能够查看到哪些有用的日志呢?

我们可以用alog -L的命令找到答案:

# alog -L
boot
bosinst
nim
console
cfg
mdmplog
lvmcfg
lvmt
dumpsymp

对于每一个日志的更多信息还可以通过-t和-L的配合查看:

# for i in $(alog -L); do echo "\n$i:\n";alog -t $i -L ;done
boot:
#file:size:verbosity
/var/adm/ras/bootlog:131072:1
bosinst:
#file:size:verbosity
/var/adm/ras/bosinstlog:8192:1
nim:
#file:size:verbosity
/var/adm/ras/nimlog:131072:1
console:
#file:size:verbosity
/var/adm/ras/conslog:32768:1
cfg:
#file:size:verbosity
/var/adm/ras/cfglog:1048576:1
mdmplog:
#file:size:verbosity
/var/adm/ras/mdmplog:4096:1
lvmcfg:
#file:size:verbosity
/var/adm/ras/lvmcfg.log:51200:3
lvmt:
#file:size:verbosity
/tmp/lvmt.log:204800:3
dumpsymp:
#file:size:verbosity
/var/adm/ras/dumpsymplog:65536:1

lvmcfg日志就是一个非常有用的东西,它能记录你每一次执行LVM操作的命令,如果碰到LVM的问题怀疑有人动过的话,就可以通过它来查看。

例如,查看LVM命令操作记录:

# alog -o -t lvmcfg | grep -vE "workdir|exited|tellclvmd"
[S 5046514 6684786 08/23/13-14:51:18:910 extendlv.sh 789] extendlv exportlv 1
[S 8519684 9699576 08/24/13-11:39:31:111 lvmo.c 831] /usr/sbin/lvmo -a
[S 8519680 7471300 08/25/13-11:39:31:109 lvmo.c 831] /usr/sbin/lvmo -a
[S 17432798 17498274 08/26/13-11:39:31:109 lvmo.c 831] /usr/sbin/lvmo -a
[S 7864538 10092582 08/27/13-11:39:31:113 lvmo.c 831] /usr/sbin/lvmo -a
[S 7471162 8061034 08/28/13-11:39:31:111 lvmo.c 831] /usr/sbin/lvmo -a
[S 11403430 10092620 08/29/13-11:39:31:111 lvmo.c 831] /usr/sbin/lvmo -a
[S 3145796 4653274 08/30/13-11:39:31:111 lvmo.c 831] /usr/sbin/lvmo -a
[S 12451882 16187632 08/31/13-11:39:31:111 lvmo.c 831] /usr/sbin/lvmo -a
[S 12910710 8650878 09/01/13-11:39:31:111 lvmo.c 831] /usr/sbin/lvmo -a
[S 14680256 8650972 09/02/13-11:39:31:111 lvmo.c 831] /usr/sbin/lvmo -a
[S 11469002 17563670 09/03/13-11:39:31:128 lvmo.c 831] /usr/sbin/lvmo -a
[S 4653098 15597746 09/03/13-11:49:59:681 extendlv.sh 789] extendlv exportlv 80
[S 12582968 12124372 09/03/13-12:22:00:652 extendlv.sh 789] extendlv exportlv 1
[S 17498318 14680180 09/03/13-21:51:23:892 extendlv.sh 789] extendlv exportlv 80
[S 16711926 9568486 09/04/13-11:39:31:113 lvmo.c 831] /usr/sbin/lvmo -a

转载于:https://www.cnblogs.com/jonathanyue/p/9301250.html

 类似资料: