
H3064S D.00
training
HP-UX System and
Network Administration
I
student
guide

2003 Hewlett-Packard Development Company, L.P.
UNIX® UNIX is a registered trademark of the Open Group.
All other product names mentioned herein may be trademarks of their respective companies.
Hewlett-Packard Company shall not be liable for technical or editorial errors or omissions
contained herein. The information is provided “as is” without warranty of any kind and is subject
to change without notice. The warranties for HP products are set forth in the express limited
warranty statements accompanying such products. Nothing herein should be construed as
constituting an additional warranty.
HP-UX System and Network Administration I
Student Guide
September 2003

http://education.hp.com H3064S D.00
2003 Hewlett-Packard Development Company, L.P.
iii
Contents
Overview
Course Description............................................................................................................................ 1
Student Performance Objectives..................................................................................................... 1
Student Profile and Prerequisites.................................................................................................... 8
Agenda ................................................................................................................................................ 9
Module 1 Introduction to HP-UX Administration
1–1. SLIDE: The Role of the System Administrator.............................................................. 1-2
1–2. SLIDE: Hardware Responsibilities ................................................................................. 1-3
1–3. SLIDE: Software Responsibilities................................................................................... 1-4
1–4. SLIDE: Responsibilities to the Users.............................................................................. 1-6
1–5. SLIDE: The System Administrator's Tool Kit ................................................................ 1-8
1–6. REVIEW: Check Your Understanding .......................................................................... 1-11
Module 2 Overview of SAM
2–1. SLIDE: Why Use SAM?..................................................................................................... 2-2
2–2. SLIDE: Using the SAM GUI.............................................................................................. 2-4
2–3. SLIDE: Using the SAM TUI .............................................................................................. 2-6
2–4. LAB: SAM........................................................................................................................... 2-8
Module 3 Creating and Managing User Accounts
3–1. SLIDE: Users and Groups — Access to System and Data ........................................... 3-2
3–2. SLIDE: What Defines a User Account? .......................................................................... 3-3
3–3. SLIDE: The /etc/passwd File...................................................................................... 3-4
3–4. SLIDE: The /etc/shadow File...................................................................................... 3-7
3–5. SLIDE: The /etc/group File ...................................................................................... 3-10
3–6. SLIDE: Creating User Accounts with SAM.................................................................. 3-12
3–7. SLIDE: Creating User Templates in SAM..................................................................... 3-15
3–8. SLIDE: Deactivating and Removing Users with SAM................................................. 3-17
3–9. SLIDE: Managing Group Membership with SAM........................................................ 3-20
3–10. SLIDE: Managing Users and Groups from the Command Line................................. 3-21
3–11. SLIDE: Managing Passwords from the Command Line ............................................. 3-23
3–12. LAB: Hands-On Adding Users .......................................................................................3-26
Module 4 Customizing User Accounts
4–1. SLIDE: Why Customize a User Account?....................................................................... 4-2
4–2. SLIDE: Some Sample Customizations............................................................................ 4-3
4–3. SLIDE: Customizing ASCII Logins.................................................................................. 4-6
4–4. SLIDE: Customizing CDE Logins.................................................................................... 4-8
4–5. SLIDE: The /etc/skel Directory............................................................................... 4-10
4–6. LAB: Customizing User Accounts................................................................................. 4-12

Contents
H3064S D.00 http://education.hp.com
2003 Hewlett-Packard Development Company, L.P.
iv
Module 5 Guided Tour of the HP-UX File Hierarchy
5–1. SLIDE: Introducing the File System Paradigm ..............................................................5-2
5–2. SLIDE: System Directories...............................................................................................5-4
5–3. SLIDE: Application Directories .......................................................................................5-8
5–4. SLIDE: Commands to Help You Navigate ......................................................................5-9
5–5. LAB: HP-UX File System Hierarchy ..............................................................................5-11
Module 6 Connecting Peripherals
6–1. SLIDE: HP-UX Processor Roadmap................................................................................6-2
6–2. SLIDE: HP-UX Operating System Roadmap ..................................................................6-5
6–3. SLIDE: HP-UX Hardware Product Overview .................................................................6-7
6–4. SLIDE: Hardware Component Overview......................................................................6-10
6–5. SLIDE: CPU, Memory, and Cell Boards........................................................................6-11
6–6. SLIDE: SBAs, LBAs, and PCI Expansion Buses ..........................................................6-13
6–7. SLIDE: Device Adapter Cards........................................................................................6-16
6–8. SLIDE: Core I/O Cards....................................................................................................6-17
6–9. SLIDE: Node Partitions (nPars) ....................................................................................6-18
6–10. SLIDE: Virtual Partitions (vPars) ..................................................................................6-20
6–11. SLIDE: Hardware Paths..................................................................................................6-21
6–12. SLIDE: Viewing Interfaces and Devices with ioscan ...............................................6-23
6–13. SLIDE: SCSI Device Addressing....................................................................................6-27
6–14. SLIDE: SCSI LUN Addressing........................................................................................6-31
6–15. SLIDE: SCSI LUN Addressing with Alternate Paths ...................................................6-33
6–16. SLIDE: Installing New Interface Cards.........................................................................6-35
6–17. SLIDE: Installing New Interface Cards with OLAR.....................................................6-37
6–18. SLIDE: Installing New Devices ......................................................................................6-40
6–19. LAB: Viewing the Hardware Configuration with ioscan..........................................6-42
Module 7 Configuring Device Files
7–1. SLIDE: HP-UX Device File Overview..............................................................................7-2
7–2. SLIDE: Listing Device Files with ll ...............................................................................7-4
7–3. SLIDE: Listing Device Files with ioscan......................................................................7-6
7–4. SLIDE: Listing Device Files with lssf ..........................................................................7-7
7–5. SLIDE: Device File Directories........................................................................................7-9
7–6. SLIDE: Device File Naming Convention.......................................................................7-10
7–7. SLIDE: Disk Device File Names ....................................................................................7-12
7–8. SLIDE: Tape Device File Names....................................................................................7-14
7–9. SLIDE: Terminal and Modem Device File Names .......................................................7-16
7–10. SLIDE: Creating Device Files.........................................................................................7-18
7–11. SLIDE: Creating Devices with Autoconfiguration.......................................................7-19
7–12. SLIDE: Creating Device Files via insf ........................................................................7-21
7–13. SLIDE: Creating a Device File with SAM .....................................................................7-23
7–14. SLIDE: Creating Device Files with mksf .....................................................................7-25
7–15. SLIDE: Creating Device Files with mknod...................................................................7-27
7–14. SLIDE: Removing Device Files with rmsf...................................................................7-29
7–15. LAB: Device Files ............................................................................................................7-30

Contents
http://education.hp.com H3064S D.00
2003 Hewlett-Packard Development Company, L.P.
v
Module 8 Configuring Disk Devices
8–1. SLIDE: Disk Partitioning.................................................................................................. 8-2
8–2. SLIDE: Whole Disk Partitioning...................................................................................... 8-4
8–3. SLIDE: LVM Disk Partitioning......................................................................................... 8-6
8–4. SLIDE: LVM Device Files................................................................................................. 8-8
8–5. SLIDE: LVM Extents.......................................................................................................8-10
8–6. SLIDE: Creating Physical Volumes............................................................................... 8-12
8–7. SLIDE: Creating Volume Groups .................................................................................. 8-15
8–8. SLIDE: Creating Logical Volumes................................................................................. 8-18
8–9. SLIDE: Disk Space Management Tool Comparison ................................................... 8-22
8–10. LAB: Logical Volume Manager ...................................................................................... 8-25
Module 9 File System Concepts
9–1. SLIDE: What Is a File System? ........................................................................................ 9-2
9–2. SLIDE: File System Types................................................................................................ 9-4
9–3. SLIDE: What’s in a File System? ..................................................................................... 9-6
9–4. SLIDE: Accessing a File System...................................................................................... 9-8
9–5. SLIDE: HP-UX Hard Links ............................................................................................. 9-10
9–6. SLIDE: HP-UX Symbolic Links...................................................................................... 9-12
9–7. SLIDE: HFS Structural Overview.................................................................................. 9-14
9–8. CHALK TALK: HFS File System Updates .................................................................... 9-16
9–9. SLIDE: JFS Structural Overview................................................................................... 9-20
9–10. CHALK TALK: JFS File System Updates...................................................................... 9-22
9–11. SLIDE: JFS Blocks and Extents.................................................................................... 9-28
9–12. SLIDE: File System Comparison................................................................................... 9-29
Module 10 File System Creation
10–1. SLIDE: File System Creation Overview ....................................................................... 10-2
10–2. SLIDE: File System Creation Commands .................................................................... 10-4
10–3. SLIDE: Creating the File System................................................................................... 10-5
10–4. SLIDE: Mounting the File System................................................................................. 10-9
10–5. SLIDE: Unmounting the File System.......................................................................... 10-13
10–6. SLIDE: Automatically Mounting File Systems .......................................................... 10-15
10–7. SLIDE: Mounting CDFS File Systems ........................................................................ 10-17
10–8. SLIDE: Mounting LOFS File Systems......................................................................... 10-20
10–9. LAB: Creating File Systems ......................................................................................... 10-22
Module 11 File System Maintenance
11–1. SLIDE: Monitoring File System Free Space ................................................................ 11-2
11–2. SLIDE: Reclaiming Wasted File System Space ........................................................... 11-4
11–3. SLIDE: Extending a Volume Group .............................................................................. 11-7
11–4. SLIDE: Extending a Logical Volume .......................................................................... 11-10
11–5. SLIDE: Extending a File System ................................................................................. 11-12
11–6. SLIDE: Defragmenting a File System ......................................................................... 11-14
11–7. SLIDE: Repairing a Damaged File System................................................................. 11-17
11–8. LAB: File System Management ................................................................................... 11-21
评论0