HP_UX扩dump空间
有时宕机后发现dump空间不足,不能收集dump给RC分析,用以下方法扩dump空间.
1.先创建个连续的、坏块不转移的lvdump。
# lvcreate -L 4000 -n lvdump -C y -r n /dev/vg00
2.把下面这一行加到/etc/fstab,注意“/”后面是空格然后才是dump。
/dev/vg00/lvdump / dump defaults 0 0
3.激活dump区:
#crashconf -a
4.确认lvdump是否已经激活:
#crashconf 指定2级swap区为crash转储区
#crashconf -s
test_server[/]crashconf
Crash dump configuration has been changed since boot.
CLASS PAGES INCLUDED IN DUMP DESCRIPTION
-------- ---------- ---------------- -------------------------------------
UNUSED 11339 no, by default unused pages
USERPG 15258 no, by default user process pages
BCACHE 5196 no, by default buffer cache pages
KCODE 2671 no, by default kernel code pages
USTACK 602 yes, by default user process stacks
FSDATA 6 yes, by default file system metadata
KDDATA 24595 yes, by default kernel dynamic data
KSDATA 5869 yes, by default kernel static data
Total pages on system: 65536
Total pages included in dump: 31072
DEVICE OFFSET(kB) SIZE (kB) LOGICAL VOL. NAME
------------ ---------- ---------- ------------ -------------------------
31:0x026000 310112 524288 64:0x000002 /dev/vg00/lvol2
31:0x026000 7498592 1048576 64:0x00000a /dev/vg00/lvdump
----------
1572864
1.5线RC给的增加dump空间方法:
Adding more dump space for system
#lvlnboot -v|grep -i dump
#lvlnboot -d lvswap /dev/vg00
#lvlnboot -v|grep -i dump