IBM Training Front Cover Parte 1
IBM Training Front Cover Parte 1
Student Notebook
Trademarks
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business
Machines Corp., registered in many jurisdictions worldwide.
The following are trademarks of International Business Machines Corporation, registered in many
jurisdictions worldwide:
Active Memory™ AIX 5L™ AIX 6™
AIX® DB2® Electronic Service
Agent™
Everyplace® HACMP™ Informix®
V9.0
Student Notebook
TOC
Language Environment® Micro-Partitioning® Notes®
Power Architecture® POWER Hypervisor™ Power Systems™
Power® PowerHA® PowerVM®
POWER6® POWER7® POWER8™
PureFlex® Redbooks® System Storage®
Tivoli® WebSphere®
Intel is a trademark or registered trademark of Intel Corporation or its subsidiaries in the United
States and other countries.
Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both.
Windows is a trademark of Microsoft Corporation in the United States, other countries, or both.
Java™ and all Java-based trademarks and logos are trademarks or registered trademarks of
Oracle and/or its affiliates.
UNIX is a registered trademark of The Open Group in the United States and other countries.
Other product and service names might be trademarks of IBM or other companies.
Contents
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
TOC
Course description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Agenda . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
Unit 1. Introduction to IBM Power Systems, AIX, and system administration . . . . . . . . . . .1-1
Unit objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-2
AIX overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-3
Logical partition overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-4
Dynamic logical partitioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-5
Workload partitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-6
Live Partition Mobility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-7
POWER7 and POWER8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-8
Typical Power system layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-10
The HMC (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-11
The HMC (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-12
LPAR virtualization overview (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-13
LPAR virtualization overview (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-15
Virtual I/O Server overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-17
Virtualization example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-18
Role of the system administrator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-20
Who can perform administration tasks? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-21
How can you perform administration tasks? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-23
Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-24
Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-25
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-26
TOC
DCEM portlet (2 of 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-28
TOC
DCEM portlet (3 of 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-29
DCEM portlet (4 of 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-30
DCEM portlet (5 of 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-
31 Console logging and tracing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-32 Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.2-34
Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-
35
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-36
TOC
.4-9 Installation
disks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-11 Set
Primary Language Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-12
Security Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-
13 Software install options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-15
Install summary and installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-16
Accept License Agreements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-17
AIX installation: Post steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-18
Installation Assistant and login . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-
19 AIX installation in a partition using NIM: NIM overview . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-20 AIX installation in a partition using NIM: Configuration steps . . . . . . . . . . . . . . . . . . . . . .
.4-22
Network boot (1 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-23
Network boot (2 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-24
Network boot (3 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-25
Network boot (4 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-26
Network boot (5 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-27
Network boot (6 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-28
Network boot (7 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-29
Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-
30 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-31
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-32
TOC
system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-23 Interim fix management . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-24
Removing installed software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-
25 Recovering from broken or inconsistent states . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-26 Service update management
assistant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-27 SUMA base
configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-28
SUMA task configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-29
SUMA command line execution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-30
Fix Central website . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-32
Fix Level Recommendation Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-33
Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-34
Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-35
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-36
TOC
.7-6 Physical
storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-8 Volume
groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-10
Volume group descriptor area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-
12
Logical storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-13
Uses of logical volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-15
What is a file system? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-17
Why have multiple file systems? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-19
Standard file systems in AIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-
20 /etc/filesystems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7-22 Mount . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.7-24 Mounting over an empty
directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-25
Mounting over files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-26
Listing file systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-27
Listing logical volume information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-28
Checkpoint (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-29
Checkpoint (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-30
Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-31
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-32
TOC
.8-26 Mirroring scheduling
policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-28 Mirror write
consistency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-30
SMIT Logical Volumes menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-32
Add a Logical Volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-33
Show LV characteristics (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-34
Show LV characteristics (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-
35 Reorganize logical volumes in a volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-36 Add Copies to a Logical
Volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-37 Increase the Size of a
Logical Volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-38 Remove a Logical
Volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-39 List all logical
volumes by volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-40 Mirroring
volume groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-41 Physical
volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-42 SMIT
Physical Volumes menu . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-43 List
physical volume information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-44
List logical volumes on a physical volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-
45 List a physical volume partition map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8-46 Add or move contents of physical
volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-47 Documenting the disk storage
setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-48 Checkpoint . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-49
Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-
50
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8-51
TOC
9-19 Control growing files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.9-21 The skulker command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.9-23 Block size considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.9-24 Fragmentation
considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-26 Verify and
repair a file system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-27
Documenting file system setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-
28 System storage review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9-29 Checkpoint (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.9-30
Checkpoint (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-31
Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-32
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9-33
TOC
11-18 Restoring a mksysb: From NIM server (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.11-19 Creating a backup of a data volume
group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-20 Restoring a backup of a data
volume group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-21 Traditional UNIX and AIX
backup commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-23 Backup by file name
and restore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-24 Backup and restore
by inode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-26 tar
command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-28
cpio command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-
29 pax command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11-30 dd command . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.11-31
Compression commands (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-32
Compression commands (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-
33 Good practices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
11-34 Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.11-36
Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-
37
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11-38
TOC
12-31 SMIT
users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-33
Listing users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-34
Add or change a user . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-35
Assign a password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-37
Regaining root’s password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-39
/etc/passwd file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-40
/etc/security/passwd file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-
42
SMIT groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-44
Listing groups . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-45
Add or change a group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-
46 Group files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
12-48 Remove a user or group from the
system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-49 Files owned by removed user or
group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-50
Topic summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-51
Checkpoint (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-52
Checkpoint (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-53
Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-54
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12-55
TOC
RBAC example (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13-
31 Topic summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
13-32 Checkpoint (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.13-33
Checkpoint (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13-34
Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13-35
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13-36
TOC
IP and subnet addressing (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-14
Subnetting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-
15 Supernetting example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15-16
How is TCP/IP configured on AIX? (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-17
How is TCP/IP configured on AIX? (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-18
Command line TCP/IP configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-19
Verifying network interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-20
Name resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-21
Routing implementation (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-23
Routing implementation (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-25
Multipath routing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-26
IP aliasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-
27 Testing for remote connectivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15-28 Ports and sockets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.15-30 inetd
daemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-31
TCP/IP start-up flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-32
Remote UNIX commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-
33 Transferring files over a network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15-34
Network file system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-35
NFS server configuration (1 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-36
NFS server configuration (2 of 2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-38
Manual NFS client mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-40
Predefined NFS client mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-
41 Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
15-43 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.15-44
Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15-45
TOC
Application WPARs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16-20
Workload Partition Manager overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16-
21 Checkpoint . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
16-22 Exercise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.16-23 Unit summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.16-24 Appendix A. Printers and
queues. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-1
TMK
Trademarks
The reader should recognize that the following terms, which appear in the content of this training
document, are official trademarks of IBM or other companies:
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International
Business Machines Corp., registered in many jurisdictions worldwide.
The following are trademarks of International Business Machines Corporation, registered in many
jurisdictions worldwide:
Active Memory™ AIX 5L™ AIX 6™
AIX® DB2® Electronic Service
Agent™
Everyplace® HACMP™ Informix®
Language Environment® Micro-Partitioning® Notes®
Power Architecture® POWER Hypervisor™ Power Systems™
Power® PowerHA® PowerVM®
POWER6® POWER7® POWER8™
PureFlex® Redbooks® System Storage®
Tivoli® WebSphere®
Intel is a trademark or registered trademark of Intel Corporation or its subsidiaries in the United
States and other countries.
Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both.
Windows is a trademark of Microsoft Corporation in the United States, other countries, or both.
Java™ and all Java-based trademarks and logos are trademarks or registered trademarks of
Oracle and/or its affiliates.
UNIX is a registered trademark of The Open Group in the United States and other countries.
Other product and service names might be trademarks of IBM or other companies.
Trademarks
pref
Course description
Power Systems for AIX II: AIX Implementation and Administration
Duration: 5 days
Purpose
Students will learn to install, customize, and administer the AIX operating
system in a multiuser Power Systems partitioned environment. The course
is based on AIX 7.1 running on a Power Systems server managed by
Hardware Management Console and provides practical discussions that
are appropriate to earlier AIX releases.
Audience
This intermediate course is intended for system administrators or anyone
implementing and managing an AIX operating system in a multiuser Power
Systems partitioned environment.
Prerequisites
The students attending this course should already be able to:
• Log in to an AIX system and set a user password
• Execute basic AIX commands
• Manage files and directories
• Use the vi editor
• Use redirection, pipes, and tees
• Use the utilities find and grep
Course description
Objectives
On completion of this course, students should be able to:
• Install the AIX operating system, filesets, and RedHat Package Manager (RPM)
packages
• Perform system startup and shutdown
• Discuss and use system management tools such as System
Management Interface Tool (SMIT) and IBM Systems Director console for AIX
• Manage physical and logical devices
• Discuss the purpose of the logical volume manager
• Perform logical volume and file system management
• Create and manage user and group accounts
• Perform and restore system backups
• Utilize administrative subsystems, including cron to schedule system tasks, and
security to implement customized access of files and directories
• Configure TCP/IP networking
• Define and run basic Workload Partitions (WPAR)
Contents
• Introduction to IBM Power Systems, AIX, and system administration
• AIX system management tools
• System startup and shutdown
• AIX installation
• AIX software installation and maintenance
• System configuration and devices
• System storage overview
• Working with the Logical Volume Manager
• File system administration
• Paging space
• Backup and restore
• Security and user administration
• Scheduling and time
• TCP/IP networking
• Introduction to Workload Partitions
Curriculum relationship
This course should follow the AIX Basics course. A basic understanding of hardware,
the AIX environment, and simple commands is recommended before taking this course.
pref
Agenda
Day 1
Welcome
Unit 1: Introduction to IBM Power Systems, AIX, and system
administration
Exercise 1: Introduction to IBM Power Systems, AIX, and system
administration
Unit 2: AIX system management tools
Exercise 2: Using system management tools in AIX
Unit 3: System startup and shutdown
Exercise 3: System startup and shutdown
Unit 4: AIX installation
Exercise 4: AIX installation
Day 2
Unit 5: AIX software installation and maintenance
Exercise 5: AIX software installation and maintenance
Unit 6: System configuration and devices
Exercise 6: System configuration and devices
Unit 7: System storage overview
Exercise 7: System storage overview: LVM commands
Unit 8: Working with the Logical Volume Manager Exercise 8:
Working with LVM
Day 3
Unit 9: File systems administration
Exercise 9: File system administration
Unit 10: Paging space
Exercise 10: Page space
Unit 11: Backup and restore
Exercise 11: Backup and restore
Day 4
Unit 12: Security and user administration: Part one
Exercise 12: Security and user administration: Part one
Unit 13: Security and user administration: Part two
Exercise 13: Security and user administration: Part two
Unit 14: Scheduling and time
Exercise 14: Scheduling
Unit 15: TCP/IP networking
Agenda
Day 5
Unit 15: TCP/IP networking (continued)
Exercise 15: TCP/IP networking
Unit 16: Introduction to Workload Partitions Exercise 16: Workload Partitions
Uempty
Unit 1. Introduction to IBM Power Systems, AIX, and
system administration
What this unit is about
This unit provides an introduction to IBM Power Systems, AIX, and system
administration.
References
Online AIX 7.1 Information
POO03022USEN
AIX - From Strength to Strength
Note: References listed as online are available through the IBM Knowledge
Center at the following address:
http://www-01.ibm.com/support/knowledgecenter/ssw_aix_71/com.ibm.aix.b
ase/kc_welcome_71.htm
Unit objectives
© Copyright IBM Corp. 2009, 2015 Unit 1. Introduction to IBM Power Systems, AIX, and system 1-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V9.0
Student Notebook
Uempty
After completing this unit, you should be able to:
• Define terminology and concepts of IBM Power System
servers, virtualization, HMC, and AIX
• Describe the roles of the system administrator
• Obtain root access with sucommand
the
Notes:
© Copyright IBM Corp. 2009, 2015 Unit 1. Introduction to IBM Power Systems, AIX, and system 1-2
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V9.0
Student Notebook
Uempty
AIX overview
• IBM’s proprietary operating system based on UNIX System V.
– Also has BSD compatible commands and programming interface extensions
• Advanced Interactive Executive (AIX) runs on proprietary hardware
(H/W) called IBM Power Systems.
– Eighth generation of Power, based on Reduced Instruction Set Computer
(RISC) technology
• Most Power Systems today run many instances of AIX in partitions that
are known as logical partitions (LPAR).
– This is H/W partitioning that is managed by the system firmware, Power
Hypervisor
LPAR:
AIX1
LPAR:
AIX2
LPAR:
AIX3
Notes:
Advanced Interactive Executive (AIX) is IBM's proprietary UNIX OS based on UNIX System V with
4.3BSD-compatible command and programming interface extensions.
Announcement Letter Number 286-004 dated January 21, 1986:
• “The AIX Operating System is based on INTERACTIVE Systems Corporation's IN/ix, which,
in turn, is based on UNIX System V, as licensed by AT&T Bell Laboratories. Some portions
of the modifications and enhancements were developed by IBM; others were developed by
INTERACTIVE under contract to IBM.”
© Copyright IBM Corp. 2009, 2015 Unit 1. Introduction to IBM Power Systems, AIX, and system 1-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V9.0
Student Notebook
Uempty
Power Hypervisor
System Hardware (memory, processors, devices )
© Copyright IBM Corporation 2009, 2015
Notes:
Logical partition (LPAR)
Logical partitioning is the ability to make a single system run as if it were two or more systems.
Each partition represents a division of resources in the Power System. The partitions are logical
because the division of resources is logical and not along physical boundaries.
Hypervisor Partitions are isolated from each other by firmware (underlying software) called the
POWER Hypervisor. The names POWER Hypervisor and Hypervisor will be used interchangeably
in this course.
Each partition has its own environment, for example – IP address or time of day, just as any AIX
instance.
© Copyright IBM Corp. 2009, 2015 Unit 1. Introduction to IBM Power Systems, AIX, and system 1-4
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V9.0
Student Notebook
Uempty
LPAR 1 LPAR 1
DLPAR operation: (running) (running)
- Add 2.0 CPU
- Remove 4 Gb Mem 2.0 CPU 4.0 CPU
- Move the DVD slot to LPAR 2 16 Gb Mem 12 Gb Mem
Notes:
Dynamic Logical partitioning (DLPAR)
The term Dynamic in DLPAR means we can add, move, or remove resources without having to
reactivate the partition. If there are partitions that need more or can do with fewer resources, you
can dynamically move the resources between partitions within the managed system without
shutting down the partitions. Both the source and the destination partitions must support the
dynamic partitioning operation.
Processors and memory
Each running LPAR has an active profile, which contains the resources that LPAR is entitled to.
For processor and memory settings, there is a maximum and a minimum range. These
boundaries cannot be exceeded when performing dynamic reallocation operations.
Applications
Some applications and utilities might not be DLPAR-aware. If they bind to a processor or pin
memory, then you might need to stop these processes before you are able to perform the DLPAR
operation. IBM provides an Application Programming Interface (API) for third-party program
DLPAR support on AIX 5L, AIX 6 and AIX 7.
Workload partitions
• Software (S/W) partitioning is managed by AIX.
– This has been available since AIX 6.1.
• Many AIX OS images can reside within a master global AIX image.
© Copyright IBM Corp. 2009, 2015 Unit 1. Introduction to IBM Power Systems, AIX, and system 1-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V9.0
Student Notebook
Uempty
AIX1
AIX2
AIX3
WPAR mgr
Notes:
Workload partitions (WPAR) are virtualized, secure operating system environments, within a single
instance of the AIX operating system. Live Application Mobility is a capability of WPAR technology,
which allows partitions to move between systems with limited application downtime (for example,
20 seconds).
No
Downtime
LPAR:
LPAR:
AIX1
AIX1
© Copyright IBM Corp. 2009, 2015 Unit 1. Introduction to IBM Power Systems, AIX, and system 1-6
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V9.0
Student Notebook
Uempty
• If a server indicates a potential failure, you can move its partitions to another server
IBM Power Systems
before the failure occurs.
– Enables optimized resource use by moving workloads from server to server
Notes:
Live Partition Mobility is a new capability that enables users to move partitions between systems
with no application downtime. Live Partition Mobility enables organizations to move LPARs from
CPU intensive servers to improve overall throughput based on requirements at a particular time.
This also allows us to use a maintenance window on a physical machine without the need for any
application downtime. The only interruption of service would be due to network latency. If sufficient
bandwidth was available, a delay of at most, a few seconds, typically is expected.
POWER8
Power
S814 760+
Power
S824 750+ Enterprise
S822
Midrange PureSystems
Scale-Out
S824L
S822L p460+
S812L p270+
POWER7+ p260+
Linux only Systems
PureFlex
© Copyright IBM Corp. 2009, 2015 Unit 1. Introduction to IBM Power Systems, AIX, and system 1-7
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V9.0
Student Notebook
Uempty
Notes:
IBM Power Systems
IBM often introduces new models and updates the current range of servers on a frequent basis.
Here is a summary of the model differences.
IBM PureFlex System with POWER7:
Flex System 260 - 16 cores, 512 GB, 2 drives.
Flex System 460 - double-wide, 32 cores, 1 TB, 2 drives.
In the following models, unless stated otherwise, there are 4, 6, or 8 cores per socket.
Models with I/O expansion abilities:
Power 750 - 6 or 8 cores per socket, 4 sockets, 1 TB, 8 drives
High Performance Computing:
Power 760 - similar to Power 750, 2 TB
Scale-Out
Power Systems S822 - Up to 20 cores, 2 sockets, 2U, 1 TB, 9 PCIe Gen 3, AIX, and Linux
© Copyright IBM Corp. 2009, 2015 Unit 1. Introduction to IBM Power Systems, AIX, and system 1-8
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
V9.0
Student Notebook
Uempty
IBM Power Systems
Power Systems S814 - Up to 8 cores, 1 socket, 4U, 512 GB, 7 PCIe Gen 3, AIX, IBM i,
Linux Power Systems S824- Up to 24 cores, 2-socket, 4U, 1 TB, 11 PCIe Gen 3, AIX, IBM
i, Linux Linux only systems:
Power Systems S812L - 1-socket, 2U, POWER8 processor
Power Systems S822L - 2-socket, 2U, POWER8 processor, up to 24 cores, 1 TB, 9
PCI Gen3 slot
Power Systems S824L - 2-socket, 4U, up to 24
cores Large enterprise server:
Power E870 - 1 or 2 nodes per system, 32 or 40 core nodes (5U), up to 64 or 80 cores,
up to 2 TB / node memory (4 TB Max), up to 8 I/O Expansion drawers
Power E880 - 1 to 4 nodes per system, 32 or 48 core nodes (5U), up to 128 or 192
cores, up to
4 TB / node memory (16 TB max), up to 16 I/O Expansion
drawers For further details see the Power Systems facts and
features guide:
http://www-03.ibm.com/systems/power/hardware/reports/factsfeatures.html
© Copyright IBM Corp. 2009, 2015 Unit 1. Introduction to IBM Power Systems, AIX, and system
1-9
Course materials may not be reproduced in whole or in
part without the prior written permission of IBM.
V9.0
Student Notebook
Uempty
IBM Power Systems
© Copyright IBM Corp. 2009, 2015 Unit 1. Introduction to IBM Power Systems, AIX, and system
1-10
Course materials may not be reproduced in whole or in
part without the prior written permission of IBM.