Contents
Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxi
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxii
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii
The team that wrote this redbook. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv
Become a published author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvi
Comments welcome. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvi
Chapter 1. Certification exam - Test 222 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Overview of the certification exam . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Chapter 2. System planning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.1 Determining device needs for an AIX 5L system . . . . . . . . . . . . . . . . . . . 12
2.2 AIX 5L OS level compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.2.1 Applications from earlier AIX 5L Version 5 releases . . . . . . . . . . . . . 14
2.2.2 Applications on AIX 5L Version 5.3 with long user names . . . . . . . . 14
2.2.3 32-bit applications from AIX Version 4 releases . . . . . . . . . . . . . . . . 15
2.2.4 64-bit applications from AIX Version 4 releases . . . . . . . . . . . . . . . . 16
2.2.5 X11R5 and X11R6 compatibility on AIX 5L Version 5 . . . . . . . . . . . 16
2.2.6 Binary differences between AIX Version 3 and AIX 5L . . . . . . . . . . . 17
2.3 System availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.3.1 Availability of hardware components. . . . . . . . . . . . . . . . . . . . . . . . . 18
2.3.2 Dynamic reconfiguration - LPAR features. . . . . . . . . . . . . . . . . . . . . 19
2.3.3 Configure the operating system for high availability . . . . . . . . . . . . . 20
2.4 Appropriate IBM resources for system planning . . . . . . . . . . . . . . . . . . . . 22
2.5 The LPAR Validation Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.6 Basic disk requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Chapter 3. System and software installation . . . . . . . . . . . . . . . . . . . . . . . 27
3.1 AIX 5L installation methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.1.1 New and Complete Overwrite installation . . . . . . . . . . . . . . . . . . . . . 28
3.1.2 Migration installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3.1.3 Preservation installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.1.4 Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.2 Trusted Computing Base. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.3 Base Operating System installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.3.1 Preparation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.3.2 Sample AIX 5L installation procedure . . . . . . . . . . . . . . . . . . . . . . . . 32
3.3.3 Procedure to erase a hard disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
3.4 Network Installation Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
3.4.1 NIM machines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3.4.2 NIM roles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3.4.3 NIM resources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3.4.4 Using EZ NIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
3.5 Alternate disk installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
3.5.1 The alt_disk_install command reference. . . . . . . . . . . . . . . . . . . . . . 56
3.5.2 New alt_disk_install features in AIX 5L Version 5.3 . . . . . . . . . . . . . 56
3.5.3 Running alternate disk installation using SMIT . . . . . . . . . . . . . . . . . 57
3.5.4 How to rollback alt_disk_install . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
3.6 Cloning an AIX 5L system. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
3.7 Troubleshooting your installation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
3.7.1 Viewing BOS installation logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
3.7.2 Viewing BOS installation logs using SMIT . . . . . . . . . . . . . . . . . . . . 59
3.7.3 Viewing BOS installation logs with the alog command . . . . . . . . . . . 60
3.7.4 Installation LED codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
3.8 AIX 5L installation packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
3.8.1 Filesets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
3.8.2 Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
3.8.3 Licensed Program Products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
3.8.4 Bundles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
3.8.5 PTFs and APARs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
3.9 Software maintenance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
3.9.1 Managing filesets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
3.9.2 Understanding maintenance levels . . . . . . . . . . . . . . . . . . . . . . . . . . 65
3.9.3 Installing software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
3.9.4 Committing applied updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
3.9.5 Rejecting applied updates. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
3.9.6 Removing installed software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
3.9.7 Cleaning up after failed installations . . . . . . . . . . . . . . . . . . . . . . . . . 69
3.9.8 Listing all installable software on media . . . . . . . . . . . . . . . . . . . . . . 69
3.10 Installing optional software and service updates. . . . . . . . . . . . . . . . . . . 69
3.10.1 Using SMIT for software maintenance . . . . . . . . . . . . . . . . . . . . . . 70
3.11 Maintaining optional software (applying updates) . . . . . . . . . . . . . . . . . . 74
3.11.1 Listing the maintenance level of software . . . . . . . . . . . . . . . . . . . . 75
3.11.2 Downloading fixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
3.11.3 Displaying and updating installed software to the latest level . . . . . 79
3.12 Creating installation images on a disk. . . . . . . . . . . . . . . . . . . . . . . . . . . 85
3.13 Verifying the integrity of the operating system . . . . . . . . . . . . . . . . . . . . 86
3.14 Differences between installp and rpm . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
3.14.1 The installp command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
3.14.2 The RPM Package Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Chapter 4. Boot process. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
4.1 The boot process. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
4.1.1 Boot phase 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
4.1.2 Boot phase 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
4.1.3 Boot phase 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
4.2 System initialization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
4.3 The /etc/inittab file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
4.4 How to recover from a non-responsive boot process . . . . . . . . . . . . . . . 103
4.4.1 The bootlist command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
4.4.2 Accessing a system that will not boot . . . . . . . . . . . . . . . . . . . . . . . 105
4.4.3 Common boot LED codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
4.5 Run levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
4.5.1 Identifying system run levels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
4.6 An introduction to the rc.* files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
4.6.1 rc.boot file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
4.6.2 /etc/rc file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
4.6.3 rc.net file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
4.6.4 rc.tcpip file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Chapter 5. Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
5.1 Object Data Manager (ODM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
5.1.1 ODM commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
5.1.2 Examples of using the ODM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
5.2 System Management Interface Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
5.2.1 Modes of operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
5.2.2 End-user interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
5.2.3 SMIT screens . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
5.2.4 System management tasks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
5.3 Linux applications under AIX 5L . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
5.3.1 Linux affinity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
5.3.2 How to install Linux applications on AIX 5L . . . . . . . . . . . . . . . . . . 135
5.3.3 Install using the rpm command . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
5.4 Network File System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
5.4.1 NFS services. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
5.4.2 Exporting NFS directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
5.4.3 Un-exporting an NFS directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
5.4.4 Mounting an NFS directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
5.4.5 Changing an exported file system. . . . . . . . . . . . . . . . . . . . . . . . . . 152
5.4.6 Un-mounting a mounted file system . . . . . . . . . . . . . . . . . . . . . . . . 154
5.5 Network configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
5.5.1 Initializing TCP/IP daemons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
5.5.2 Stopping and restarting TCP/IP daemons. . . . . . . . . . . . . . . . . . . . 155
5.5.3 Stopping TCP/IP daemons using the /etc/tcp.clean script . . . . . . . 155
5.5.4 Restarting TCP/IP daemons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
5.5.5 System boot without starting rc.tcpip . . . . . . . . . . . . . . . . . . . . . . . 156
5.5.6 The inetd daemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
5.5.7 The portmap daemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
5.5.8 Internet addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
5.5.9 Host name resolution and /etc/netsvc.conf . . . . . . . . . . . . . . . . . . . 164
5.5.10 Adding network routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
5.5.11 Changing IP addresses using SMIT . . . . . . . . . . . . . . . . . . . . . . . 170
5.5.12 The ifconfig command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
5.6 The ntp.conf file. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
5.7 Network security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176
5.7.1 Trusted and non-trusted processes . . . . . . . . . . . . . . . . . . . . . . . . 176
5.7.2 Network configuration files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
5.8 Operations on a network adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
5.8.1 Adding a network adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
5.8.2 Removing a network adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182
5.8.3 Adapter and interface configuration problems . . . . . . . . . . . . . . . . 184
5.9 Virtual Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
5.10 Paging space. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
5.10.1 Paging space overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
5.10.2 Low paging space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
5.10.3 Paging space tips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190
5.10.4 Managing paging space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
5.11 Device configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
5.11.1 Determining the existing device configuration. . . . . . . . . . . . . . . . 193
5.11.2 Remove a device configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . 199
5.11.3 Modify an existing device configuration . . . . . . . . . . . . . . . . . . . . 201
5.11.4 SMIT fast paths for devices configuration . . . . . . . . . . . . . . . . . . . 204
5.11.5 Special device configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208
5.12 Reconfiguring a system from a 32-bit to a 64-bit kernel . . . . . . . . . . . . 209
Chapter 6. Disk storage management . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
6.1 Storage management concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
6.1.1 Limitations of logical volume storage . . . . . . . . . . . . . . . . . . . . . . . 213
6.2 Physical volumes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
6.2.1 PVID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
6.2.2 Listing information about physical volumes. . . . . . . . . . . . . . . . . . . 215
6.2.3 Changing the allocation permission for a physical volume . . . . . . . 218
6.2.4 Changing the availability of a physical volume . . . . . . . . . . . . . . . . 219
6.2.5 Cleaning the boot record from a physical volume . . . . . . . . . . . . . . 222
6.2.6 Declaring a physical volume hot spare . . . . . . . . . . . . . . . . . . . . . . 222
6.2.7 Migrating data from physical volumes. . . . . . . . . . . . . . . . . . . . . . . 223
6.2.8 Migrating partitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224
6.2.9 Finding the LTG size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
6.3 Volume groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
6.3.1 Creating a volume group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
6.3.2 Listing information about volume groups . . . . . . . . . . . . . . . . . . . . 231
6.3.3 Changing volume group characteristics . . . . . . . . . . . . . . . . . . . . . 234
6.3.4 Unlocking a volume group. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
6.3.5 Extending a volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242
6.3.6 Reducing a volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244
6.3.7 Resynchronizing the device configuration database. . . . . . . . . . . . 245
6.3.8 Exporting a volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
6.3.9 Importing a volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 247
6.3.10 Varying on a volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 248
6.3.11 Reorganizing a volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
6.3.12 Synchronizing a volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
6.3.13 Mirroring a volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 253
6.3.14 Splitting and rejoining copies of a volume group. . . . . . . . . . . . . . 254
6.4 Managing logical volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 255
6.4.1 Creating a logical volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
6.4.2 Removing a logical volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
6.4.3 Listing information about logical volumes . . . . . . . . . . . . . . . . . . . . 259
6.4.4 Increasing the size of a logical volume . . . . . . . . . . . . . . . . . . . . . . 262
6.4.5 Copying a logical volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
6.4.6 Creating copies of logical volumes . . . . . . . . . . . . . . . . . . . . . . . . . 263
6.4.7 Changing characteristics of logical volumes . . . . . . . . . . . . . . . . . . 264
6.4.8 Splitting a logical volume. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 265
6.4.9 Removing a copy of a logical volume . . . . . . . . . . . . . . . . . . . . . . . 268
6.5 Summary of the LVM commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268
Chapter 7. File systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 271
7.1 File system types. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
7.2 File system structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
7.2.1 Superblock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
7.2.2 Allocation group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
7.2.3 Inodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
7.2.4 Data blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
7.2.5 Fragments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
7.3 Device logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
7.4 File system differences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
7.5 File system management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
7.5.1 Creating a file system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
7.5.2 Mounting and unmounting file systems. . . . . . . . . . . . . . . . . . . . . . 278
7.5.3 Displaying mounted file systems. . . . . . . . . . . . . . . . . . . . . . . . . . . 279
7.5.4 Removing a file system. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
7.5.5 Changing the attributes of a file system . . . . . . . . . . . . . . . . . . . . . 281
7.5.6 Checking file system consistency . . . . . . . . . . . . . . . . . . . . . . . . . . 282
7.5.7 Log devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
7.6 Defragmenting a file system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
7.7 Displaying information about inodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 284
7.8 Troubleshooting file system problems. . . . . . . . . . . . . . . . . . . . . . . . . . . 284
7.8.1 Recovering from super block errors . . . . . . . . . . . . . . . . . . . . . . . . 284
7.8.2 Cannot unmount file systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
7.8.3 Full file systems. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 285
Chapter 8. Monitoring and performance tuning . . . . . . . . . . . . . . . . . . . . 287
8.1 Monitoring file system growth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
8.2 Recovering from a full file system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
8.2.1 Fix a full / (root) file system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292
8.2.2 Fix a full /var file system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 294
8.2.3 Fix a full user defined file system . . . . . . . . . . . . . . . . . . . . . . . . . . 297
8.2.4 Fix other file systems and general search techniques . . . . . . . . . . 297
8.2.5 Fix a damaged file system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
8.3 The system error log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
8.3.1 Starting and stopping error logging . . . . . . . . . . . . . . . . . . . . . . . . . 299
8.3.2 The errpt command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
8.3.3 The errclear command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
8.3.4 The errlogger command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 301
8.3.5 Extracting error records from a system dump . . . . . . . . . . . . . . . . . 302
8.3.6 Redirecting syslog messages to error log . . . . . . . . . . . . . . . . . . . . 303
8.3.7 Other commands for manipulating error messages . . . . . . . . . . . . 303
8.4 The system log configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
8.4.1 The syslogd configuration file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
8.4.2 The format of the configuration file . . . . . . . . . . . . . . . . . . . . . . . . . 306
8.4.3 Using the system log. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
8.5 Performance tools overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
8.5.1 The vmstat command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
8.5.2 The sar command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
8.5.3 The topas command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 318
8.5.4 The netstat command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
8.5.5 The iostat command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 337
8.5.6 The proctools commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
8.5.7 The procmon tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 348
8.6 Tuning using the /etc/tunables files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355
8.7 Documenting a system configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
8.8 Controlling resource use with Reliable Scalable Cluster Technology (RSCT) . . . . 363
8.9 Workload Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365
8.10 Partition Load Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
8.10.1 PLM operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
8.10.2 Monitoring mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 367
8.10.3 Management mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
8.10.4 Resource management policies . . . . . . . . . . . . . . . . . . . . . . . . . . 370
8.10.5 Memory management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
8.10.6 Processor management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
Chapter 9. Problem determination and resolution. . . . . . . . . . . . . . . . . . 375
9.1 Problem determination and resolution. . . . . . . . . . . . . . . . . . . . . . . . . . . 376
9.1.1 Network problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 376
9.1.2 Hardware problems. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
9.2 Reasons to monitor root mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
9.3 System dump facility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
9.3.1 Configure a dump device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 391
9.3.2 Start a system dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393
9.3.3 Copy a system dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 402
9.3.4 Compile and copy system information onto media . . . . . . . . . . . . . 403
9.3.5 Analyzing system dumps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 405
9.4 Using the alog command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
9.5 Determine appropriate actions for user problems . . . . . . . . . . . . . . . . . . 408
9.5.1 The usrck command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 408
9.5.2 The grpck command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 409
9.5.3 The pwdck command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 411
9.5.4 The sysck command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 412
9.5.5 The lsgroup and lsuser commands . . . . . . . . . . . . . . . . . . . . . . . . . 414
9.5.6 The user limits. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415
9.6 Identifying hardware problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415
9.7 Replacing hot plug devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 415
9.8 Failed disk replacement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 430
9.8.1 Scenario 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431
9.8.2 Scenario 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431
9.8.3 Scenario 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432
9.8.4 Scenario 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 432
9.8.5 Scenario 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433
9.9 Access rootvg in maintenance mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 433
9.10 Troubleshoot graphical problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 439
9.10.1 System hangs when trying to start desktop . . . . . . . . . . . . . . . . . 439
9.10.2 Troubleshoot error unable to open display . . . . . . . . . . . . . . . . . . 440
9.10.3 Troubleshoot TTY display problems . . . . . . . . . . . . . . . . . . . . . . . 442
9.11 The perfpmr command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443
9.11.1 perfpmr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 443
9.11.2 Measurement and sampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 444
9.11.3 Building and submitting a test case. . . . . . . . . . . . . . . . . . . . . . . . 447
9.11.4 Examples for perfpmr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452
9.12 Manage a support call with IBM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455
9.12.1 Determine the business impact of your problem. . . . . . . . . . . . . . 455
9.12.2 Describe your problem and gather background information . . . . . 456
9.12.3 Submit your problem to IBM support. . . . . . . . . . . . . . . . . . . . . . . 456
9.12.4 Updating your request. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 457
Chapter 10. Backup and recovery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459
10.1 The mksysb command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
10.1.1 The data layout of a mksysb tape . . . . . . . . . . . . . . . . . . . . . . . . . 460
10.1.2 Excluding file systems from a backup . . . . . . . . . . . . . . . . . . . . . . 461
10.1.3 How to create a bootable system backup . . . . . . . . . . . . . . . . . . . 462
10.1.4 Using mksysb to back up a user volume group . . . . . . . . . . . . . . 464
10.1.5 List content of a mksysb image. . . . . . . . . . . . . . . . . . . . . . . . . . . 464
10.1.6 Restore a mksysb image. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 466
10.2 Managing tape backup media . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 468
10.2.1 The tctl command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469
10.3 Backup strategies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 470
10.3.1 Full backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471
10.3.2 Differential backup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471
10.3.3 Incremental backup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 471
10.3.4 Backup example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472
10.4 Related backup and restore commands . . . . . . . . . . . . . . . . . . . . . . . . 473
10.4.1 The savevg command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473
10.4.2 The restvg command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 475
10.4.3 The backup command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 477
10.4.4 The restore command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 478
10.4.5 The tar command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 479
10.4.6 The cpio command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 481
10.4.7 The pax command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 482
10.4.8 The mkcd command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483
10.4.9 The gzip and gunzip commands . . . . . . . . . . . . . . . . . . . . . . . . . . 486
10.5 Verify the content of a backup media . . . . . . . . . . . . . . . . . . . . . . . . . . 487
10.6 Disaster Recovery plans . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 488
Chapter 11. Daily management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 491
11.1 User administration overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492
11.1.1 User administration related commands. . . . . . . . . . . . . . . . . . . . . 493
11.1.2 User administration related files . . . . . . . . . . . . . . . . . . . . . . . . . . 493
11.2 User administration tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503
11.2.1 Adding a new user account. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 503
11.2.2 Creating or changing a user password . . . . . . . . . . . . . . . . . . . . . 505
11.2.3 Changing user attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507
11.2.4 Displaying user attributes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 508
11.2.5 Removing a user account . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 511
11.2.6 Changing security attributes of user . . . . . . . . . . . . . . . . . . . . . . . 512
11.2.7 Displaying currently logged users . . . . . . . . . . . . . . . . . . . . . . . . . 514
11.2.8 Preventing user logins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 515
11.2.9 Changing a user's login shell . . . . . . . . . . . . . . . . . . . . . . . . . . . . 515
11.2.10 Changing the shell prompt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 516
11.3 Common login errors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 517
11.4 Monitoring and managing processes . . . . . . . . . . . . . . . . . . . . . . . . . . 518
11.4.1 Using the ps command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 518
11.4.2 Using the kill command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 520
11.4.3 Using the nice and renice commands . . . . . . . . . . . . . . . . . . . . . . 521
11.4.4 Using the fuser command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 523
11.4.5 Using the topas command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 524
11.4.6 Using the svmon command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 526
11.5 File and directory permissions and ownership . . . . . . . . . . . . . . . . . . . 528
11.5.1 Access control lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 528
11.5.2 The chmod command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 532
11.5.3 The chown command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537
11.5.4 The chgrp command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 538
11.6 Local and global variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540
11.6.1 Local variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540
11.6.2 Global variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540
11.6.3 How to set, unset, and show these variables . . . . . . . . . . . . . . . . 541
11.7 The cron daemon and crontab . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 542
11.7.1 The at command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 542
11.7.2 Location of the spool area directory for the at command . . . . . . . 544
11.7.3 Location of crontab files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 544
11.7.4 Verifying job runs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 545
11.7.5 Crontab file record format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 546
11.7.6 Scheduling job runs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 547
11.7.7 Allowing access to the crontab command. . . . . . . . . . . . . . . . . . . 548
11.7.8 Creating and updating the crontab file . . . . . . . . . . . . . . . . . . . . . 549
11.7.9 Verifying job schedules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 550
11.7.10 Checking the time of the crontab file . . . . . . . . . . . . . . . . . . . . . . 550
11.7.11 Removing the crontab file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 550
11.7.12 Using crontab to append to a user's cron file . . . . . . . . . . . . . . . 551
11.8 System Resource Controller administration . . . . . . . . . . . . . . . . . . . . . 552
11.8.1 Starting the SRC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 552
11.8.2 The telinit command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 553
11.8.3 Restarting the SRC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554
11.8.4 The startsrc command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554
11.8.5 Refreshing a daemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556
11.8.6 The stopsrc command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 557
11.9 Commands and processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 558
11.9.1 Controlling foreground processes . . . . . . . . . . . . . . . . . . . . . . . . . 559
11.9.2 Controlling background processes . . . . . . . . . . . . . . . . . . . . . . . . 562
11.9.3 Job control in the Korn Shell or POSIX shell. . . . . . . . . . . . . . . . . 564
11.9.4 The nohup command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 566
11.10 Metacharacters and wild cards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 567
11.10.1 Matching patterns using the * wild card character . . . . . . . . . . . 567
11.10.2 Matching patterns using the ? wild card character . . . . . . . . . . . 567
11.10.3 Matching patterns using [ ] shell metacharacters . . . . . . . . . . . . 568
11.10.4 Quoting in the Korn shell or POSIX shell . . . . . . . . . . . . . . . . . . 568
11.10.5 Metacharacter examples. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572
11.11 Redirecting stdin, stdout, and stderr . . . . . . . . . . . . . . . . . . . . . . . . . . 573
11.11.1 File descriptors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 574
11.11.2 Redirecting input (stdin) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 574
11.11.3 Redirecting output (stdout) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575
11.11.4 Redirecting standard error (stderr) . . . . . . . . . . . . . . . . . . . . . . . 577
11.11.5 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578
Chapter 12. Electronic mail and sendmail . . . . . . . . . . . . . . . . . . . . . . . . 581
12.1 Overview of mail system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582
12.2 Mail daemons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583
12.2.1 Starting the sendmail daemon . . . . . . . . . . . . . . . . . . . . . . . . . . . 584
12.2.2 Stopping the sendmail daemon. . . . . . . . . . . . . . . . . . . . . . . . . . . 584
12.2.3 Refreshing the sendmail daemon . . . . . . . . . . . . . . . . . . . . . . . . . 584
12.2.4 Getting the status of sendmail daemon. . . . . . . . . . . . . . . . . . . . . 584
12.2.5 Autostart of the sendmail daemon (/etc/rc.tcpip). . . . . . . . . . . . . . 585
12.2.6 Specifying time values in sendmail (in rc.tcpip) . . . . . . . . . . . . . . 585
12.2.7 Specifying time values in sendmail (not in rc.tcpip) . . . . . . . . . . . 585
12.3 Mail queue directory: /var/spool/mqueue . . . . . . . . . . . . . . . . . . . . . . . 586
12.3.1 Printing the mail queue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586
12.3.2 Mail queue files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586
12.3.3 Forcing the mail queue to run . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587
12.3.4 Moving the mail queue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587
12.4 Mail logs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
12.4.1 Managing the mail log files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
12.4.2 Logging mailer statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589
12.4.3 Displaying mailer information . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589
12.5 Mail aliasing and forwarding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 590
12.5.1 Creating or modifying local system aliases . . . . . . . . . . . . . . . . . . 591
12.5.2 Building the alias database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 592
12.5.3 Forwarding mail with /etc/aliases . . . . . . . . . . . . . . . . . . . . . . . . . 592
12.5.4 Forwarding mail with $HOME/.forward . . . . . . . . . . . . . . . . . . . . . 593
12.5.5 Forwarding mail to /dev/null . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 594
12.6 Mail addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 594
12.6.1 To address mail to users on your local system. . . . . . . . . . . . . . . 594
12.6.2 To address mail to users on your network . . . . . . . . . . . . . . . . . . 595
12.6.3 To address mail to users on a different network . . . . . . . . . . . . . . 595
12.6.4 To address mail over a BNU or UUCP link . . . . . . . . . . . . . . . . . . 595
12.7 Storing mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 596
12.8 Mail administrator's reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 598
12.8.1 List of mail commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 598
12.8.2 List of mail files and directories . . . . . . . . . . . . . . . . . . . . . . . . . . . 598
Chapter 13. Editing files using vi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 601
13.1 The vi file editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 602
13.1.1 Editor limitations with vi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 602
13.1.2 Editing modes in vi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 602
13.1.3 The vi command flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 603
13.1.4 Editor subcommands in vi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 604
13.2 Editing a file using the vi editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 611
13.2.1 Inserting text using the vi editor . . . . . . . . . . . . . . . . . . . . . . . . . . 611
13.2.2 Changing text using the vi editor. . . . . . . . . . . . . . . . . . . . . . . . . . 614
Chapter 14. Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 619
14.1 Creating a new print queue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 622
14.2 The print configuration file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 630
14.3 Controlling the print queue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 632
14.3.1 Editing /etc/qconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 633
14.3.2 Modifying /etc/qconfig while jobs are processing . . . . . . . . . . . . . 633
14.4 Stopping the print queue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 634
14.5 Starting the print queue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 635
14.6 Flushing a print job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 635
14.7 How to check the print spooler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 636
14.8 Setting the timeout on a printer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637
14.9 Basic printer diagnostics checklist. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641
14.10 Enabling System V printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 642
14.10.1 Add a local printer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 644
14.10.2 Add a remote printer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 646
14.10.3 Remove a printer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 648
14.10.4 Manage destinations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 650
14.10.5 The lpadmin command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 651
14.11 The switch.prt command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 653
Abbreviations and acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 655
Related publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659
IBM Redbooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 659
Other publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660
Online resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660
How to get IBM Redbooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662
Help from IBM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663
Figures
2-1 Sample LVT configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3-1 Flow chart for AIX 5L Version 5.3 system installation . . . . . . . . . . . . . . 32
3-2 SMS menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3-3 SMS menu - Boot options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
3-4 SMS menu - Install/boot device options. . . . . . . . . . . . . . . . . . . . . . . . . 34
3-5 SMS menu - Select Media Type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
3-6 SMS menu - Select Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
3-7 SMS menu - Select boot mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
3-8 SMS menu - Confirm exit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
3-9 System boot from CD media . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
3-10 Define the System Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
3-11 Choose the menu language. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
3-12 BOS installation main menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
3-13 Change/Show Installation Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3-14 Different methods of installing AIX 5L . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3-15 Sample disk configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
3-16 Erase Disk options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
3-17 Install Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
3-18 Installation of AIX 5L in progress . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
3-19 AIX 5L startup screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
3-20 Terminal selection screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
3-21 License agreement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
3-22 Installation Assistant main menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
3-23 Console login prompt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
3-24 EZNIM main menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
3-25 Configure as a NIM Master menu options from EZNIM. . . . . . . . . . . . . 53
3-26 Configure as a NIM Client menu options from EZNIM. . . . . . . . . . . . . . 55
3-27 Viewing the alog file from within SMIT . . . . . . . . . . . . . . . . . . . . . . . . . . 60
3-28 Install and Update from LATEST Available Software menu . . . . . . . . . 70
3-29 Install and Update from LATEST Available Software menu - more . . . . 71
3-30 Commit Applied Software Updates (Remove Saved Files) menu . . . . . 72
3-31 Reject Applied Software Updates (Use Previous Version) menu . . . . . 73
3-32 Remove Installed Software menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
3-33 Service Update Management Assistant (SUMA) on SMIT . . . . . . . . . . 78
3-34 Show Fix (APAR) Installation Status menu . . . . . . . . . . . . . . . . . . . . . . 81
3-35 Update Software by Fix (APAR) menu . . . . . . . . . . . . . . . . . . . . . . . . . 82
3-36 Update Installed Software to Latest Level (Update All) menu . . . . . . . . 83
3-37 Update Installed Software to Latest Level (Update All) menu - more . . 84
3-38 Copy Software to Hard Disk for Future Installation menu . . . . . . . . . . . 85
4-1 BOS installation and maintenance screen . . . . . . . . . . . . . . . . . . . . . . 106
4-2 Maintenance menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
4-3 Warning screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
4-4 List of found volume group(s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
4-5 List of logical volumes found on the selected volume group . . . . . . . . 110
5-1 Add a Directory to Exports List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
5-2 Content of /etc/exports. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
5-3 Example NFS stanza in the /etc/filesystems file . . . . . . . . . . . . . . . . . 145
5-4 Add a File System for Mounting screen . . . . . . . . . . . . . . . . . . . . . . . . 147
5-5 Change the Attributes of an Exported Directory . . . . . . . . . . . . . . . . . 153
5-6 Refreshing the inetd daemon using refresh or kill . . . . . . . . . . . . . . . . 157
5-7 Subservers started in inetd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
5-8 Stopping inetd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
5-9 Telnet and FTP when inetd on sv1166f is down . . . . . . . . . . . . . . . . . 160
5-10 Subnetting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
5-11 Adding a Static Route menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
5-12 Adding a route using the route add command . . . . . . . . . . . . . . . . . . . 169
5-13 Minimum Configuration & Startup menu . . . . . . . . . . . . . . . . . . . . . . . 170
5-14 A sample .netrc file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 179
5-15 Ethernet Adapter submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 185
5-16 Change/Show Characteristics of an Ethernet Adapter menu . . . . . . . 185
5-17 Media Speed submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186
5-18 Further Configuration menu for CABLE type . . . . . . . . . . . . . . . . . . . . 187
5-19 Your CABLE Type submenu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 187
5-20 SMIT chdev example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
5-21 SMIT Tape Drive menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
5-22 Sample Tape Drive selection window . . . . . . . . . . . . . . . . . . . . . . . . . 206
5-23 SMIT characteristics change of a tape drive . . . . . . . . . . . . . . . . . . . . 207
5-24 SMIT command status output for the chdev command . . . . . . . . . . . . 207
8-1 Overall system statistics screen. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
8-2 Busiest processes screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
8-3 Disk metrics screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 326
8-4 The global statistics area of the procmon tool . . . . . . . . . . . . . . . . . . . 349
8-5 The processes table of the procmon tool . . . . . . . . . . . . . . . . . . . . . . . 350
8-6 Example of WLM implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 366
8-7 PLM architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369
8-8 Resource utilization thresholds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
8-9 PLM resource distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
9-1 Function selection menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 385
9-2 Diagnostic mode selection menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386
9-3 Diagnostic selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
9-4 Unexpected system halt - Three-digit display string . . . . . . . . . . . . . . 394
9-5 View of the physical control panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . 398
9-6 Restart Partition option from the pop-up menu . . . . . . . . . . . . . . . . . . 401
9-7 Restart options available for a partition, including initiate a dump . . . . 401
9-8 Initial Diagnostic screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 419
9-9 Diagnostic Function Selection screen . . . . . . . . . . . . . . . . . . . . . . . . . 419
9-10 The Task Selection List menu option. . . . . . . . . . . . . . . . . . . . . . . . . . 420
9-11 The Hot Plug Task menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 421
9-12 Unconfigure A device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 422
9-13 PCI Hot Plug Manager Replace/Remove menu . . . . . . . . . . . . . . . . . 423
9-14 Replace/Remove a PCI Hot Plug Adapter menu . . . . . . . . . . . . . . . . . 424
9-15 PCI adapter replacement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425
9-16 Configure A Defined Device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 426
9-17 PCI Hot Plug Manager Replace/Remove menu . . . . . . . . . . . . . . . . . 427
9-18 Replace/Remove a PCI Hot Plug Adapter menu . . . . . . . . . . . . . . . . . 428
9-19 PCI adapter replacement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 429
9-20 Configure A Defined Device. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 430
9-21 Maintenance menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 434
9-22 Warning screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 435
9-23 List of found volume group(s) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 436
9-24 List of logical volumes found on the selected volume group . . . . . . . . 437
9-25 System maintenance prompt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 438
10-1 Layout of a mksysb tape . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 460
10-2 Backup Up the System configuration window . . . . . . . . . . . . . . . . . . . 463
10-3 Command status output from a running back up . . . . . . . . . . . . . . . . . 463
10-4 Command status output from a successful backup . . . . . . . . . . . . . . . 464
10-5 lsmksysb SMIT fast path configuration . . . . . . . . . . . . . . . . . . . . . . . . 465
10-6 Sample output of the SMIT lsmkysb . . . . . . . . . . . . . . . . . . . . . . . . . . 465
10-7 Restore Files in a System Image within SMIT . . . . . . . . . . . . . . . . . . . 467
10-8 Sample output of the restore of one file from mksysb . . . . . . . . . . . . . 467
10-9 Flowchart for saving information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 469
10-10 Back Up a Volume Group from SMIT . . . . . . . . . . . . . . . . . . . . . . . . . 474
10-11 Remake a Volume Group from SMIT. . . . . . . . . . . . . . . . . . . . . . . . . . 476
11-1 Adding a user with SMIT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 504
11-2 Changing a user password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506
11-3 Entering a user password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 506
11-4 Changing user characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 508
11-5 SMIT users command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 510
11-6 Listing user characteristics. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 510
11-7 Removing a user . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 512
11-8 chsh command. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 516
11-9 topas command output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 524
11-10 crontab -e command using the vi editor . . . . . . . . . . . . . . . . . . . . . . . . 549
12-1 Overview of mail system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582
12-2 Mail management tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583
12-3 /var/spool/mqueue/log file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589
12-4 Displaying mailer information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 590
12-5 /etc/aliases File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591
12-6 Message path for mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 597
13-1 Image of yourfile opened by the vi editor . . . . . . . . . . . . . . . . . . . . . . . 612
14-1 System Management menu screen - Print Spooling option. . . . . . . . . 622
14-2 AIX 5L Print Spooling option . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 623
14-3 AIX 5L Print Spooling menu screen - Add a Print Queue option . . . . . 624
14-4 Add a Print Queue menu screen - print queue selection . . . . . . . . . . . 625
14-5 AIX 5L Print Spooling menu screen - Printer Type selection . . . . . . . . 626
14-6 AIX 5L Print Spooling menu - Print Type selection . . . . . . . . . . . . . . . 627
14-7 AIX 5L Print Spooling menu - Printer Interface selection . . . . . . . . . . . 628
14-8 Add a Print Queue menu - printer characteristics . . . . . . . . . . . . . . . . 629
14-9 New print queue Command Status . . . . . . . . . . . . . . . . . . . . . . . . . . . 629
14-10 AIX 5L Print Spooling menu. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 638
14-11 Change/Show Printer Connection Characteristics pop-up screen. . . . 639
14-12 Change/Show Printer Connection Characteristics screen . . . . . . . . . . 640
14-13 Changing printer connection characteristics results . . . . . . . . . . . . . . 641
14-14 System V Print Spooling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 643
14-15 Add Local Printer Configuration - System V Print Spooling . . . . . . . . . 644
14-16 Add a Local Printer - System V Print Spooling . . . . . . . . . . . . . . . . . . 645
14-17 Add a Local Printer - System V Print Spooling (more) . . . . . . . . . . . . . 645
14-18 Add Remote Printer Configuration - System V Print Spooling . . . . . . . 646
14-19 Add a Remote Printer - System V Print Spooling . . . . . . . . . . . . . . . . 647
14-20 Remove Destinations - System V Spooling . . . . . . . . . . . . . . . . . . . . . 648
14-21 Remove a printer - System V Spooling . . . . . . . . . . . . . . . . . . . . . . . . 649
14-22 Manage Destinations - System V Spooling . . . . . . . . . . . . . . . . . . . . . 650
14-23 Options in Manage Destinations - System V Spooling . . . . . . . . . . . . 651
Tables
1-1 Overview of the topics in Test 222. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2-1 A sample hardware checklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2-2 Previous security interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3-1 AIX 5L BOS installation methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3-2 Definition of the NIM resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3-3 Commonly used flags for the oslevel command . . . . . . . . . . . . . . . . . . 65
3-4 Commonly used flags for the lslpp command . . . . . . . . . . . . . . . . . . . . 75
3-5 Commonly used flags for the instfix command . . . . . . . . . . . . . . . . . . . 79
3-6 Commonly used flags for the lppchk command . . . . . . . . . . . . . . . . . . . 87
3-7 Commonly used flags for the installp command . . . . . . . . . . . . . . . . . . 89
3-8 Commonly used flags for the geninstall command . . . . . . . . . . . . . . . . 91
4-1 Commonly used flags for the bootlist command . . . . . . . . . . . . . . . . . 103
4-2 Valid device names for the bootlist command . . . . . . . . . . . . . . . . . . . 105
4-3 Common startup LEDs and solutions . . . . . . . . . . . . . . . . . . . . . . . . . 111
4-4 Run levels available on AIX 5L . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
5-1 System management tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
5-2 IP address classes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
5-3 Commonly used parameters for the ifconfig command . . . . . . . . . . . . 171
5-4 Commonly used flags for the lscfg command . . . . . . . . . . . . . . . . . . . 194
5-5 Commonly used flags for the lsdev command . . . . . . . . . . . . . . . . . . . 195
5-6 Commonly used flags for the lsattr command . . . . . . . . . . . . . . . . . . . 197
5-7 Commonly used flags for the rmdev command . . . . . . . . . . . . . . . . . . 200
5-8 Commonly used flags for the chdev command . . . . . . . . . . . . . . . . . . 201
6-1 LVM limitations for AIX 5L Version 5.3 . . . . . . . . . . . . . . . . . . . . . . . . 213
6-2 Summary of LVM commands. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
7-1 Journaled file system differences. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
8-1 Commonly used flags for the quota command . . . . . . . . . . . . . . . . . . 289
8-2 Commonly used flags for the errpt command . . . . . . . . . . . . . . . . . . . 300
8-3 Commonly used flags for the syslogd daemon . . . . . . . . . . . . . . . . . . 304
8-4 Facilities used in the /etc/syslog.conf file . . . . . . . . . . . . . . . . . . . . . . . 307
8-5 Priority levels for the /etc/syslog.conf file . . . . . . . . . . . . . . . . . . . . . . . 308
8-6 Destination description for the /etc/syslog.conf file . . . . . . . . . . . . . . . 309
8-7 Commonly used flags for the vmstat command. . . . . . . . . . . . . . . . . . 311
8-8 vmstat output column headings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
8-9 Column headings of the sar command . . . . . . . . . . . . . . . . . . . . . . . . 316
8-10 The topas command subcommands . . . . . . . . . . . . . . . . . . . . . . . . . . 326
8-11 Default metrics listed on the process table of the procmon tool . . . . . 351
8-12 List of all metrics available for display on the process table . . . . . . . . 351
8-13 Description of the info stanza. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 357
9-1 Category 1 crash progress codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
9-2 Category 2 crash progress codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 395
9-3 Category 3 crash progress codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
9-4 System dump codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
9-5 Components of the physical control panel . . . . . . . . . . . . . . . . . . . . . . 398
9-6 Commonly used flags for the pax command . . . . . . . . . . . . . . . . . . . . 402
9-7 Commonly used flags for the snap command . . . . . . . . . . . . . . . . . . . 404
9-8 Commonly used flags for the usrck command. . . . . . . . . . . . . . . . . . . 409
9-9 Commonly used flags for the grpck command. . . . . . . . . . . . . . . . . . . 410
9-10 Commonly used flags for the pwdck command . . . . . . . . . . . . . . . . . . 412
9-11 Commonly used flags for the sysck command . . . . . . . . . . . . . . . . . . 413
9-12 Values for various terminals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 442
9-13 Commonly used flags for the perfpmr.sh command . . . . . . . . . . . . . . 443
9-14 Overview of the files created by perfpmr.sh. . . . . . . . . . . . . . . . . . . . . 451
9-15 Severity level versus business impact . . . . . . . . . . . . . . . . . . . . . . . . . 456
10-1 Commonly used subcommands for the tctl command . . . . . . . . . . . . . 470
10-2 Commonly used flags for the savevg command . . . . . . . . . . . . . . . . . 473
10-3 Commonly used flags for the restvg command . . . . . . . . . . . . . . . . . . 475
10-4 Commonly used flags for the backup command . . . . . . . . . . . . . . . . . 477
10-5 Commonly used flags for the restore command . . . . . . . . . . . . . . . . . 478
10-6 Commonly used flags for the tar command . . . . . . . . . . . . . . . . . . . . . 480
10-7 Commonly used flags for the cpio command. . . . . . . . . . . . . . . . . . . . 481
10-8 Commonly used flags for the pax command . . . . . . . . . . . . . . . . . . . . 482
10-9 Commonly used flags for the mkcd command. . . . . . . . . . . . . . . . . . . 484
10-10 Commonly used flags for the gzip and gunzip commands . . . . . . . . . 486
11-1 Commonly used flags for the topas command. . . . . . . . . . . . . . . . . . . 525
11-2 topas command screen subcommands . . . . . . . . . . . . . . . . . . . . . . . . 526
11-3 Default cron record in the /etc/inittab file . . . . . . . . . . . . . . . . . . . . . . . 542
11-4 Sample crontab entries for scheduling a running of a program . . . . . . 547
11-5 Default srcmstr record in the /etc/inittab file . . . . . . . . . . . . . . . . . . . . . 554
11-6 Commonly used flags for the startsrc command . . . . . . . . . . . . . . . . . 555
11-7 Commonly used flags for the stopsrc command . . . . . . . . . . . . . . . . . 557
11-8 Redirection symbols. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579
13-1 Commonly used flags of the vi editor . . . . . . . . . . . . . . . . . . . . . . . . . . 603
14-1 Print commands and their equivalents. . . . . . . . . . . . . . . . . . . . . . . . . 621
14-2 Commonly used flags for the enq command . . . . . . . . . . . . . . . . . . . . 634
14-3 Commonly used flags for the qchk command . . . . . . . . . . . . . . . . . . . 634
14-4 Commonly used flags for the lpstat and enq command equivalents . . 636
Overview of the certification exam
The certification exam covers topics related to basic support and administration
tasks on AIX 5L Version 5.3.
Table 1-1 gives a summary of the topics and the corresponding chapter in this
redbook.
Download attached file: You must be Loged in to download file