Professional Documents
Culture Documents
AIX Paging and Dump
AIX Paging and Dump
AND
DUMP
Paging space:
To accommodate a large virtual memory space with a limited real memory space, the system
uses real memory as a work space and keeps inactive data and programs on disk. The area of
the disk that contains this data is called the system paging space.
A page is a unit of virtual memory that holds 4 KB of data and can be transferred between
real and auxiliary storage.
A paging space, also called a swap space, is a logical volume with the attribute type equal to
paging. This type of logical volume is referred to as a paging space logical volume or simply
paging space.
Working of Paging space:
When the amount of free real memory in the system is low, programs or data that have not
been used recently are moved from real memory to paging space to release real memory for
other activities.
The installation creates a default paging logical volume (hd6) on drive hdisk0, also referred
as primary paging space.
The default paging space size is determined during the system customizing phase installation
according to the following characteristics:
1. Paging space can use no less than 64 MB.
2. If real memory is less than 256 MB, paging space is two times real
memory.
3. If real memory is greater than or equal to 256 MB, paging space is 512
MB.
Dump:
System dumps can also be user-initiated by users with root user authority.
A system dump creates a picture of your systems memory contents.
For production systems, it is a good practice to set the size of the dump logical volume to
2GB and above.
Note: If you have confirmed that your dump device type is sysdump, use the extendlv
command to increase the space available.
Command:
# sysdumpdev -e
0453-041 Estimated dump size in bytes: 120586240
( The size of the dump device should be at least 120586249 bytes or 115 MB.)
Start a system dump:
The dump can either be system initiated or user initiated.
By pressing Alt+Ctrl+1 or Alt+Ctrl+2 (Key Sequence) or by using SMIT utility dumps can
be generated.
System initiated dump:
If your system stops with an 888 number flashing in the operator panel display, the system
has generated a dump and saved it to a primary dump device.
Perform the following steps to record the information contained in the 888 sequence
message:
1. Wait until the 888 sequence displays.
2. Record, in sequence, every code displayed after the 888. On systems with
a 3-digit or a 4-digit operator panel, you may need to press the reset
button to view the additional digits after the 888. Some systems use an
advance button to perform this task, or the increment and decrement
buttons.
3. Stop recording when the 888 reappears.
Description
0c0
0c2
Dump started.
0c5
0c7
0c8
0c9
When the system dump completes, the system either halts or reboots, depending upon the
setting of the auto restart attribute of sys0.
# lsattr -El sys0 -a autorestart
autorestart true Automatically REBOOT system after a crash True.
You can change this setting by typing the following command.
By default, the system will not begin a dump by pressing the special key sequences. To
enable dumps via the use of the special key sequences, type
Command:
sysdumpdev -K
Starting a dump from the HMC
On the HMC console, choose the partition you want to dump and press
the right mouse button.
Select Restart Partition and click the left mouse button; a new screen
appears.Screen will appear as given below in fig.3
Command:
# snap -a -o /dev/rmt0
# /usr/sbin/snap -gfkD -o /dev/rmt0
Options: -c Compress
-f File system
-D Gathers dump and /unix information. The primary dump device is used.
-g Gathers the output of the lslpp -hac
-k Gathers kernel information.
-t Network related issue (TCP/IP)
Before executing the snap -c or snap -o commands, any additional information required by
your service support center should be copied to the /tmp/ibmsupt directory.
If you intend to use a tape to send a snap image to IBM for software support, the tape must be
one of the following formats:
Command Syntax :
kdb [flags] [ SystemImageFile [ KernelFile [KernelModule ... ]]]
SystemImageFile it contains system image
Kernel File The Kernel file parameter specifies the AIX 5L kernel that kdb will use to
resolve kernel symbol definitions. A kernel file must be available. When examining a system
dump, it is imperative that the kernel file be the same as the kernel that was used to take the
system dump. The default for the Kernel File is /unix.
KernelModule It contains the file names of any additional kernel that the kdb command
uses modules and which are not found in kernel
Eg:-
Dump:
System dumps can also be user-initiated by users with root user authority.
A system dump creates a picture of your systems memory contents.
For production systems, it is a good practice to set the size of the dump logical volume to
2GB and above.
Note: If you have confirmed that your dump device type is sysdump, use the extendlv
command to increase the space available.
Command:
# sysdumpdev -e
0453-041 Estimated dump size in bytes: 120586240
( The size of the dump device should be at least 120586249 bytes or 115 MB.)
Start a system dump:
The dump can either be system initiated or user initiated.
By pressing Alt+Ctrl+1 or Alt+Ctrl+2 (Key Sequence) or by using SMIT utility dumps can
be generated.
System initiated dump:
If your system stops with an 888 number flashing in the operator panel display, the system
has generated a dump and saved it to a primary dump device.
Perform the following steps to record the information contained in the 888 sequence
message:
1. Wait until the 888 sequence displays.
2. Record, in sequence, every code displayed after the 888. On systems with
a 3-digit or a 4-digit operator panel, you may need to press the reset
button to view the additional digits after the 888. Some systems use an
advance button to perform this task, or the increment and decrement
buttons.
3. Stop recording when the 888 reappears.
Description
0c0
0c2
Dump started.
0c5
0c7
0c8
0c9
When the system dump completes, the system either halts or reboots, depending upon the
setting of the auto restart attribute of sys0.
# lsattr -El sys0 -a autorestart
autorestart true Automatically REBOOT system after a crash True.
You can change this setting by typing the following command.
By default, the system will not begin a dump by pressing the special key sequences. To
enable dumps via the use of the special key sequences, type
Command:
sysdumpdev -K
Starting a dump from the HMC
On the HMC console, choose the partition you want to dump and press
the right mouse button.
Select Restart Partition and click the left mouse button; a new screen
appears.Screen will appear as given below in fig.3
Command:
# snap -a -o /dev/rmt0
# /usr/sbin/snap -gfkD -o /dev/rmt0
Options: -c Compress
-f File system
-D Gathers dump and /unix information. The primary dump device is used.
-g Gathers the output of the lslpp -hac
-k Gathers kernel information.
-t Network related issue (TCP/IP)
Before executing the snap -c or snap -o commands, any additional information required by
your service support center should be copied to the /tmp/ibmsupt directory.
If you intend to use a tape to send a snap image to IBM for software support, the tape must be
one of the following formats:
Command Syntax :
kdb [flags] [ SystemImageFile [ KernelFile [KernelModule ... ]]]
SystemImageFile it contains system image
Kernel File The Kernel file parameter specifies the AIX 5L kernel that kdb will use to
resolve kernel symbol definitions. A kernel file must be available. When examining a system
dump, it is imperative that the kernel file be the same as the kernel that was used to take the
system dump. The default for the Kernel File is /unix.
KernelModule It contains the file names of any additional kernel that the kdb command
uses modules and which are not found in kernel
Eg:-
Dump:
System dumps can also be user-initiated by users with root user authority.
A system dump creates a picture of your systems memory contents.
For production systems, it is a good practice to set the size of the dump logical volume to
2GB and above.
Note: If you have confirmed that your dump device type is sysdump, use the extendlv
command to increase the space available.
Command:
# sysdumpdev -e
0453-041 Estimated dump size in bytes: 120586240
( The size of the dump device should be at least 120586249 bytes or 115 MB.)
Start a system dump:
The dump can either be system initiated or user initiated.
By pressing Alt+Ctrl+1 or Alt+Ctrl+2 (Key Sequence) or by using SMIT utility dumps can
be generated.
System initiated dump:
If your system stops with an 888 number flashing in the operator panel display, the system
has generated a dump and saved it to a primary dump device.
Perform the following steps to record the information contained in the 888 sequence
message:
1. Wait until the 888 sequence displays.
2. Record, in sequence, every code displayed after the 888. On systems with
a 3-digit or a 4-digit operator panel, you may need to press the reset
button to view the additional digits after the 888. Some systems use an
advance button to perform this task, or the increment and decrement
buttons.
3. Stop recording when the 888 reappears.
Description
0c0
0c2
Dump started.
0c5
0c7
0c8
0c9
When the system dump completes, the system either halts or reboots, depending upon the
setting of the auto restart attribute of sys0.
# lsattr -El sys0 -a autorestart
autorestart true Automatically REBOOT system after a crash True.
You can change this setting by typing the following command.
By default, the system will not begin a dump by pressing the special key sequences. To
enable dumps via the use of the special key sequences, type
Command:
sysdumpdev -K
Starting a dump from the HMC
On the HMC console, choose the partition you want to dump and press
the right mouse button.
Select Restart Partition and click the left mouse button; a new screen
appears.Screen will appear as given below in fig.3
Command:
# snap -a -o /dev/rmt0
# /usr/sbin/snap -gfkD -o /dev/rmt0
Options: -c Compress
-f File system
-D Gathers dump and /unix information. The primary dump device is used.
-g Gathers the output of the lslpp -hac
-k Gathers kernel information.
-t Network related issue (TCP/IP)
Before executing the snap -c or snap -o commands, any additional information required by
your service support center should be copied to the /tmp/ibmsupt directory.
If you intend to use a tape to send a snap image to IBM for software support, the tape must be
one of the following formats:
Command Syntax :
kdb [flags] [ SystemImageFile [ KernelFile [KernelModule ... ]]]
SystemImageFile it contains system image
Kernel File The Kernel file parameter specifies the AIX 5L kernel that kdb will use to
resolve kernel symbol definitions. A kernel file must be available. When examining a system
dump, it is imperative that the kernel file be the same as the kernel that was used to take the
system dump. The default for the Kernel File is /unix.
KernelModule It contains the file names of any additional kernel that the kdb command
uses modules and which are not found in kernel
Eg:-