如何搜集TCP/IP问题的相关资料
在TCP/IP发生问题时,可搜集相关信息,寄给IBM来诊断
这篇文章主要描述了如何搜集TCP/IP问题的相关资料,然后可以把这些资料传给IBM做技术分析,通过本方法搜集的信息资料比较完全,以避免来回搜集资料的烦琐。这些搜集的资料既可以用来诊断比较简单明显的问题,也可以用来诊断比较复杂的问题甚至是系统bug。
步骤如下:
一、
df命令检查/tmp空间,因为snap将在/tmp下产生ibmsupt目录,并将搜集的所有资料放到该目录下,所以该目录必须有较大空间存放资料,如果/tmp不够,请扩充之,如果不愿在该目录下存放资料,可在snap命令后用 -d 参数指定新的目录。
二、
运行snap -r删除上次所做的snap资料,将出现
The following directories and files will be deleted:
----------------------------------------------------
/tmp/ibmsupt/filesys (directory)
/tmp/ibmsupt/general (directory)
/tmp/ibmsupt/kernel (directory)
/tmp/ibmsupt/nfs (directory)
/tmp/ibmsupt/other (directory)
/tmp/ibmsupt/tcpip (directory)
/tmp/ibmsupt/testcase (directory)
Do you want me to remove these directories (y/n)?
选择y,删除上次所做的snap资料
运行snap -gGtkfn 命令搜集资料,将出现
Checking space requirement for general information..................
............
.................
..................
..... done.
..Checking space requirement for tcpip information..................
... done.
Checking space requirement for nfs information.............. done.
Checking space requirement for kernel information............. done.
Checking space requirement for filesys information..................
... done.
Checking for enough free space in filesystem... done.
********Checking and initializing directory structure
Creating /tmp/ibmsupt/filesys directory tree... done.
Creating /tmp/ibmsupt/kernel directory tree... done.
Creating /tmp/ibmsupt/nfs directory tree... done.
Creating /tmp/ibmsupt/tcpip directory tree... done.
Creating /tmp/ibmsupt/general directory tree... done.
Creating /tmp/ibmsupt/general/diagnostics directory tree... done.
Creating /tmp/ibmsupt/testcase directory tree... done.
Creating /tmp/ibmsupt/other directory tree... done.
********Finished setting up directory /tmp/ibmsupt
Gathering general system information......... done.
Including Pd* ODM files in general information.......... done.
Gathering scanout information..done.
Gathering tcpip system information..................
.... done.
Gathering nfs system information............... done.
Gathering kernel system information.............. done.
Gathering filesys system information..................
................ done.
该命令将搜集文件系统、内核、NFS、TCPIP等等方面的信息。
三、
用vi编辑器,生成readme文件如下
/tmp/ibmsupt/testcase/readme
在该文件中回答下列问题:
1、发生问题的程序名或设备名
2、如果发生问题的是一个网络设备,请描述网络适配器的种类
3、尽可能地描述问题,包括:
a、如果问题是关于网络性能,请说明目前的网络吞吐量和期望值,避免用“慢”这种词来描述,请指名速度比如20Kbytes/sec。
b、如果该问题是关于某程序的,请说明仅针对于该程序还是多个程序,如果多个程序,请指明之。
c、如果问题比较易于重现,请说明重现方法以及错误输出。
d、如果问题是关于一个non-AIX程序,请说明其和AIX的关联关系,以及AIX所产生的错误
e、这么问题是否是第一次产生,如果是,请说明其发生前系统或网络所发生的变动
4、填入任何其它你以为相关的信息
四、
以下步骤仅用于问题比较易于重现的情况
1、在有问题的机器上运行iptrace
startsrc -s iptrace -a "-b -d <IP address of remote client> /tmp/ibmsupt/testcase/iptrace.bin"
2、重现问题
3、运行命令
stopsrc -s iptrace
4、运行netstat命令
netstat -v > /tmp/ibmsupt/testcase/netstat-v.out
netstat -in > /tmp/ibmsupt/testcase/netstat-in.out
netstat -rn > /tmp/ibmsupt/testcase/netstat-rn.out
netstat -D > /tmp/ibmsupt/testcase/netsat-D.out
netstat -s > /tmp/ibmsupt/testcase/netsat-s.out
netstat -an > /tmp/ibmsupt/testcase/netsat-an.out
netstat -m > /tmp/ibmsupt/testcase/netsat-m.out
5、运行命令
arp -an > /tmp/ibmsupt/testcase/arp-an.out
no -a > /tmp/ibmsupt/testcase/no-a.out
五、
遵循以下步骤将文档发给IBM
1、snap -c 将所搜集的文件归档,该命令将产生
/tmp/ibmsupt/snap.pax.Z或/tmp/ibmsupt/snap.tar.Z,如例:
#snap -c
Creating compressed pax file...
Starting pax/compress process... Please wait... done.
-rw------- ----1 0 ----0 ------717829 Sep 17 11:34 snap.pax.Z
2、将该文件发送给IBM
在AIX中如何对用户卷组进行卷组备份
在AIX中可以使用mksysb对系统rootvg进行备份,对于其他用户卷组该如何备份?在本文将着重介绍在AIX中如何创建、验证和恢复用户卷组的备份。
由于在AIX中 mksysb命令只能备份rootvg中文件系统的内容,所以还需要有其他途径来备份用户卷组上的内容。使用系统中的savevg 命令就可为用户卷组 创建一卷组备份,使用restvg 命令恢复savevg 所做的备份映像 ,包括重新创建用户卷组、逻辑卷和文件系统等操作。
需要注意的是,所有用户卷组上的逻辑卷的定义会写到备份设备上并在重建卷组时创建,但只有已mount的文件系统中的内容才会在执行savevg命令 时备份到备份介质上。Savevg命令不能备份裸设备上的内容。
附加下载文件:savevg.doc
AIX中如何解决不能释放光驱的问题
产品: RS6000
平台: AIX
在AIX上由于异常终止或其它原因经常会遇到不能正常释放光驱的问题
#fuser -kxuc /dev/cd#
或#fuser /dev/cd# 列出当前访问此设备的进程,然后使用kill -9 pid终止所有进程。
"Volume Group Locked" 恢复步骤
产品:AIX
平台:RS/6000
遇到错误消息 “ 0516-366 putlvodm: volume group rootvg is locked, try again”,可按下列步骤进行恢复。
本文所述方法针对AIX V4.2 或更新的版本。
逻辑卷操作的异常终止有时会造成卷组(VG)被锁定,这时需用命令
chvg -u [vgname]
将被锁定的卷组解锁。“vgname”为被锁定的卷组 。
查看SSA磁盘中pdisk与hdisk的对应关系
AIX V4
怎样查看SSA磁盘中pdisk与hdisk的对应关系?
ssaxlate命令显示pdisk与hdisk的对应关系.
#ssaxlate -l LogicalDiskName
#ssaxlate -l PhysicalDiskName
无法删除文件系统
产品:RS6000
平台:RS
软件版本:AIX 4.3
可以mount或unmount一个文件系统,但却无法删除该文件系统,在删除时,系统报错:0516-306:get lvodm: unable to find <lvname> in the device confgiguration data.
发生此错误的原因可能是ODM数据库中的定义与实际不一致。可以用命令 lsvg -l rootvg 检查该文件系统的类型,若类型显示为???,则用命令 synclvodm -P rootvg 和 syncvg -v rootvg 进行同步,之后再用命令 lsvg -l rootvg 显示出正确的文件类型。此时可以成功删除该文件系统。
AIX 5.1文件系统类型简介
本文简单介绍AIX 5.1支持的文件系统类型。包括:
JFS(Journaled File System)
JFS2(Enhanced Journal File System)
GPFS(General Parallel File System)
RAM File System
Journaled File System
JFS 是AIX 4.3.3及其以前版本以及AIX 5.1 32位核心环境中的默认文件系统类型。JFS可以根据所记录的文件系统中的文件元数据(metadata)修复被损坏的文件系统。通过文件系统日志,系统可以将文件元数据的更改信息记录到文件系统的预留区域中,而对文件的写操作则在此日志更新完成之后进行。这样的文件系统结构有利于最大限度地对文件系统进行修复。
Enhanced Journal File System
Enhanced JFS (也称为 JFS2) 提供了比JFS 更优的扩展性能(如文件系统的大小等)。另外,在64位AIX核心中JFS2是系统默认的文件系统类型。当然,用户无论在32位还是在64位环境中都可以选择是使用JFS2还是JFS。在这里我们建议在32位核心中使用JFS文件系统,在64位核心中使用JFS2。
JFS2的创建和使用方法与JFS相同,即通过smit完成。
General Parallel File System (GPFS)
GPFS 是高性能,共享磁盘式文件系统,可以快速访问共存于一个群集(Cluster)中所有节点的数据。 GPFS通过多个磁盘条带化IO可以提供高性能IO服务,同时通过提供日志管理,文件复制以及服务器和磁盘的相互接管功能,提供了高可用性。
有关GPFS的使用,请参见IBM Redbook: GPFS on AIX Cluster: High Performance File System Administration Simplified。IBM Redbook站点为:
http://www.redbooks.ibm.com/
Network File System
NFS 属于分布式文件 (本文已被浏览 次) | | |