Bootcamp training proposal
From Wiki-UX.info
Contents
- 1 UNIX
- 1.1 Shell Basics
- 1.2 Logging In and General Orientation
- 1.2.1 A Typical Terminal Session
- 1.2.2 Logging In and Out
- 1.2.3 The Shell - Command Interpretation
- 1.2.4 Command Line Format
- 1.2.5 The Secondary Prompt
- 1.2.6 The Manual
- 1.2.7 Content of the Manual Pages
- 1.2.8 The Online Manual
- 1.2.9 Some Beginning Commands
- 1.2.10 The id Command
- 1.2.11 The who Command
- 1.2.12 The date Command
- 1.2.13 The passwd Command
- 1.2.14 The echo Command
- 1.2.15 The banner Command
- 1.2.16 The clear Command
- 1.2.17 The mesg Command
- 1.2.18 Laboratory
- 1.3 Navigating the File System
- 1.3.1 What is a File System?
- 1.3.2 The Tree Structure
- 1.3.3 The File System Hierarchy
- 1.3.4 Path Names
- 1.3.5 Some Special Directories
- 1.3.6 Basic File System Commands
- 1.3.7 pwd - Present Working Directory
- 1.3.8 ls - List Contents of a Directory
- 1.3.9 cd - Change Directory
- 1.3.10 The find Command
- 1.3.11 mkdir and rmdir - Create and Remove Directories
- 1.3.12 The File System - Summary
- 1.3.13 Laboratory
- 1.4 Managing Files
- 1.4.1 What is a File
- 1.4.2 What Can We Do with Files?
- 1.4.3 File Characteristics
- 1.4.4 cat - Display the Contents of a File
- 1.4.5 more - Display the Contents of a File
- 1.4.6 tail - Display the End of a File
- 1.4.7 cp - Copy Files
- 1.4.8 mv - Move or Rename Files
- 1.4.9 ln - Link Files
- 1.4.10 rm - Remove Files
- 1.4.11 Laboratory
- 1.5 File Permissions and Access
- 1.5.1 File Permissions and Access
- 1.5.2 Who Has Access to a File?
- 1.5.3 Types of Access
- 1.5.4 Permissions
- 1.5.5 chmod - Change Permissions of a File
- 1.5.6 umask - Permission Mask
- 1.5.7 touch - Update Timestamp of a File
- 1.5.8 chown - Change File Ownership
- 1.5.9 The chgrp Command
- 1.5.10 su - Switch User ID
- 1.5.11 The newgrp Command
- 1.5.12 Access Control Lists
- 1.5.13 Laboratory
- 1.6 POSIX Shell Features
- 1.6.1 Aliasing
- 1.6.2 File Name Completion
- 1.6.3 Command History
- 1.6.4 Re-entering Commands
- 1.6.5 Recalling Commands
- 1.6.6 Command Line Editing
- 1.6.7 The User Environment
- 1.6.8 Settings Shell Variables
- 1.6.9 Two Important Variables?
- 1.6.10 The Shell Startup Files
- 1.6.11 Shell Intrinsics versus UNIX Commands
- 1.6.12 Looking for Commands - whereis
- 1.6.13 Laboratory
- 1.7 Introduction to the vi Editor
- 1.7.1 Why vi?
- 1.7.2 Starting a vi Sesssion
- 1.7.3 vi Modes
- 1.7.4 A vi Session
- 1.7.5 Ending a vi Session
- 1.7.6 Cursor Control Commands
- 1.7.7 Input mode: i, a, O, o
- 1.7.8 Deleting Text: x, dw, dd, dG
- 1.7.9 Laboratory
- 1.7.10 Moving Text: p, P
- 1.7.11 Copying Text: yw, yy
- 1.7.12 Changing Text: r, R, cw, .
- 1.7.13 Searching for Text: /, n, N
- 1.7.14 Searching for Text Patterns
- 1.7.15 Global Search and Replace - ex Commands
- 1.7.16 Somo More ex Commands
- 1.7.17 Laboratory
- 1.8 Guided Tour of the HP-UX File Hierarchy
- 1.9 Configuring Device Files
- 1.9.1 HP-UX Device File Overview
- 1.9.2 Listing Device Files with ll
- 1.9.3 Listing Device Files with ioscan
- 1.9.4 Listing Device Files with lssf
- 1.9.5 Device File Directories
- 1.9.6 Device File Naming Convention
- 1.9.7 Disk Device File Names
- 1.9.8 Tape Device File Names
- 1.9.9 Terminal and Modem Device Files Names
- 1.9.10 Creating Device Files
- 1.9.11 Creating Device Files via Autoconfiguration
- 1.9.12 Creating Device Files with insf
- 1.9.13 Creating Device Files with mksf
- 1.9.14 Creating Device Files with mknod
- 1.9.15 Removing Device Files with rmsf
- 1.9.16 Laboratory
- 1.10 LVM Concepts and Structures
- 1.10.1 LVM Concept and Structure Overview
- 1.10.2 LVM Objects
- 1.10.3 LVM Physical Volumes
- 1.10.4 LVM Volume Groups
- 1.10.5 LVM Logical Volumes
- 1.10.6 LVM Device File Directories
- 1.10.7 LVM Device Files
- 1.10.8 LVM Extents
- 1.10.9 LVM Extent Sizes
- 1.10.10 LVM Extent Allocation
- 1.10.11 LVM Reserved Areas
- 1.10.12 LVM PVRA
- 1.10.13 LVM VGRA
- 1.10.14 LVM BBRA
- 1.10.15 Laboratory
- 1.11 File System Concepts
- 1.12 Creating and Mounting File Systems
- 1.13 Maintaining File Systems
- 1.14 File System Backup
- 1.14.1 Why Back Up?
- 1.14.2 What Do Your Back Up?
- 1.14.3 How Often Do You Back Up?
- 1.14.4 How Do You Perform the Backup?
- 1.14.5 Data Backup with fbackup
- 1.14.6 Data Recovery with frecover
- 1.14.7 Network Backup and Recovery
- 1.14.8 Data Backup with tar
- 1.14.9 Data Recovery with tar
- 1.14.10 Data Backup with cpio
- 1.14.11 Data Recovery with cpio
- 1.14.12 Data Backup with pax
- 1.14.13 Data Recovery with pax
- 1.14.14 Laboratory
- 1.15 Additional Material
- 2 HP-UX
- 2.1 Accesing the System Console
- 2.1.1 Introducing the MP
- 2.1.2 Viewing the MP Backplane
- 2.1.3 Connecting the MP Serial Port
- 2.1.4 Connectin the MP Lan Port
- 2.1.5 MP User Accounts
- 2.1.6 Accessing the MP LAN Interface
- 2.1.7 Navigating the MO Core Menus
- 2.1.8 Accessing the nPar Console Interface
- 2.1.9 Accesing the MP vPart Console Interface
- 2.1.10 Accesing the MP Virtual Front Panel
- 2.1.11 Accesing the MP Console Logs
- 2.1.12 Accesing the MP Chassis Logs
- 2.1.13 Accesing the MP Help Menu
- 2.1.14 MP LAN Configuration Commands
- 2.1.15 MP Serial Port Configuration Commands
- 2.1.16 MP Login Management Commands
- 2.1.17 Configuring MP User Accounts
- 2.1.18 Rebooting via the MP
- 2.2 Booting a HP-UX System
- 2.2.1 Operation States
- 2.2.2 Shutdown and Reboot
- 2.2.3 Boot Players
- 2.2.4 Boot Process
- 2.2.5 Autoboot versus Manual Boot
- 2.2.6 Interacting with the PDC/BCH
- 2.2.7 Interacting with the ISL/IPL
- 2.2.8 What Happens After the Kernel is Loaded?
- 2.2.9 Run Levels
- 2.2.10 Changing Run Levels
- 2.2.11 Starting Services via /etc/inittab
- 2.2.12 Starting Servicies vi /etc/rc
- 2.2.13 Laboratory
- 2.3 Configuring System Parameters
- 2.3.1 Starting A Preloaded System
- 2.3.2 Preventing Users from Logging In
- 2.3.3 Changing Login Special Characters
- 2.3.4 Controlling Usage and Processes with Run-Levels
- 2.3.5 Setting the System Clock
- 2.3.6 Customizing System-Wide and User Login Environments
- 2.3.7 Setting Shadow Password Mode
- 2.3.8 Setting Long User, Group, Host, and File Names
- 2.3.9 Configuring /etc/hosts
- 2.3.10 Configuring New Systems into Workgroups
- 2.3.11 Configuring a New System into a Network
- 2.4 Configuring Root
- 2.5 Configuring Users and Groups
- 2.5.1 Configuring Users and Groups with HP SMH
- 2.5.1.1 Adding a User with Text-Based HP SMH
- 2.5.1.2 Skeleton Directory
- 2.5.1.3 Using a Template to Add a User with Text-Based HP SMH
- 2.5.1.4 Making User Templates with Text-Based HP SMH
- 2.5.1.5 Modifying a User with Text-Based HP SMH
- 2.5.1.6 Deleting a User with Text-Based HP SMH
- 2.5.1.7 Adding a Group with Text-Based HP SMH
- 2.5.2 Managing Users and Groups with Commands
- 2.5.1 Configuring Users and Groups with HP SMH
- 2.6 Configuring Printers
- 2.6.1 Starting and Stopping the LP Spooler
- 2.6.2 Adding a Local Printer to the LP Spooler
- 2.6.3 Adding a Remote Printer to the LP Spooler
- 2.6.4 Adding a Network Printer with HP JetDirect
- 2.6.5 Creating a Printer Class
- 2.6.6 Removing a Printer from the LP Spooler
- 2.6.7 Removing a Printer from a Printer Class
- 2.6.8 Removing a Printer Class
- 2.7 Ignite-UX
- 2.1 Accesing the System Console
- 3 LVM
- 3.1 LVM Concepts and Structures
- 3.1.1 Concept and Structure Overview
- 3.1.2 Objects
- 3.1.3 Physical Volumes
- 3.1.4 Volume Groups
- 3.1.5 Logical Volumes
- 3.1.6 Device File Directories
- 3.1.7 Device Files
- 3.1.8 Extents
- 3.1.9 Extent Sizes
- 3.1.10 Extent Allocation
- 3.1.11 Reserved Areas
- 3.1.12 PVRA
- 3.1.13 VGRA
- 3.1.14 BBRA
- 3.1.15 Kernel Table and Volume Group Activation
- 3.1.16 /etc/lvmtab and Volume Group Activation
- 3.1.17 Activation Quorum
- 3.1.18 Running Quorum
- 3.1.19 Laboratory
- 3.2 Creating and Managing Volume Groups and Logical Volumes
- 3.2.1 Overview: Creating Volume Group
- 3.2.2 Identifying Available Disks
- 3.2.3 Creating Physical
- 3.2.4 Setting Physical Volume Options
- 3.2.5 Creating Volume Groups
- 3.2.6 Setting Volume Group Options
- 3.2.7 Creating Logical Volumes
- 3.2.8 Setting Logical Volume Options
- 3.2.9 Using Logical Volumes
- 3.2.10 Viewing Volume Group's Configuration
- 3.2.11 Viewing Physical Volume's Configuration
- 3.2.12 Viewing Logical Volume's Configuration
- 3.2.13 Extending a Volume Group
- 3.2.14 Extending a Logical Volume
- 3.2.15 Extending a File System
- 3.2.16 Reducing a File System
- 3.2.17 Reducing a Logical Volume
- 3.2.18 Removing a Logical Volume
- 3.2.19 Reducing a Volume Group
- 3.2.20 Removing a Volume Group
- 3.2.21 Removing a Physical Volume
- 3.2.22 Activating and Deactivating a Volume Group
- 3.2.23 Basic Command Summary
- 3.2.24 Laboratory
- 3.3 Configuring and Managing Mirrored Logical Volumes
- 3.3.1 Mirroring Overview
- 3.3.2 Non-Mirrored LVM Extents
- 3.3.3 Mirrored LVM Extents
- 3.3.4 Mirrored LVM Extents and Disk Failure
- 3.3.5 Installing Mirrordisk/UX
- 3.3.6 Extending and Reducing Mirrors
- 3.3.7 Splitting and Merging Mirrors: Concepts
- 3.3.8 Splitting Mirrors for Online, On-Host Backups
- 3.3.9 Splitting Mirrors for Online, Off-Host Backups
- 3.3.10 Configuring a Spare Physical Volume: Concepts
- 3.3.11 Configuring a Spare Physical Volume: Commands
- 3.3.12 Laboratory
- 3.4 Setting LVM Mirroring Policies
- 3.4.1 LVM Mirroring Policy Overview
- 3.4.2 Mirror Scheduling Policy Concept
- 3.4.3 Scheduling Policy: Parallel
- 3.4.4 Scheduling Policy: Sequential
- 3.4.5 Mirror Consistency Recovery Policy: Concept
- 3.4.6 Mirror Consistency Recovery Policy: NONE
- 3.4.7 Mirror Consistency Recovery Policy: NOMWC
- 3.4.8 Mirror Consistency Recovery Policy: MWC
- 3.4.9 Mirror Allocation Policy Concept
- 3.4.10 Mirror Allocation Policy Summary
- 3.4.11 Mirror Allocation Policy PVGs
- 3.4.12 Mirror Allocation Policy PVG Commands
- 3.4.13 Mirror Allocation Policy Commands
- 3.4.14 Laboratory
- 3.5 Creating and Managing Striped and Distributed Logical Volumes
- 3.5.1 Non-Striped Logical Volumes
- 3.5.2 Striped Logical Volumes
- 3.5.3 Striped Logical Volume Advantages and Disadvantages
- 3.5.4 Choosing Disks to Stripe Across
- 3.5.5 Choosing an Appropriate Stripe Size
- 3.5.6 Configuring Striped Logical Volumes
- 3.5.7 Striped versus Distributed Logical Volumes
- 3.5.8 Configuring /etc/lvmpbg for Distributed Logical Volumes
- 3.5.9 Creating Non-Mirrored Distributed Logical Volumes
- 3.5.10 Creating Mirrored Distributed Logical Volumes
- 3.5.11 Laboratory
- 3.6 Moving Data in an LVM Environment
- 3.6.1 Four Ways to Move LVM Data
- 3.6.2 Concept: Moving Data within a Volume Group with pvmove
- 3.6.3 Commands: Moving Data within a Volume Group with pvmove
- 3.6.4 Caveats: Moving Data within a Volume Group with pvmove
- 3.6.5 Concept: Moving Data within a Volume Group with lvxtend
- 3.6.6 Commands: Moving Data within a Volume Group with lvextend
- 3.6.7 Caveats: Moving Data within a Volume Group with lvextend
- 3.6.8 Concept: Moving Data between Volume Groups
- 3.6.9 Commands: Moving Data between Volume Groups
- 3.6.10 Concept: Moving Volume Groups and Disks
- 3.6.11 Concept: What Structures are Affected when a Volume Group is Moved?
- 3.6.12 Commands: Moving a Volume Group to Another Host
- 3.6.13 Commands: Moving a Disk to a New Controller
- 3.6.14 Commands: Renaming Volume Groups and Logical Volumes
- 3.6.15 Commands: Importing Volume Groups after Reinstalling
- 3.6.16 Concept: Importing Split Mirrors for Off-Host Processing
- 3.6.17 Commands: Importing Split Mirrors for Off-Host Processing
- 3.6.18 Commands: Exporting a Corrupted Volume Group
- 3.6.19 Laboratory
- 3.7 Recovering LVM Disks and Structures
- 3.7.1 Structures
- 3.7.2 Recovering Lost or Damaged Structures
- 3.7.3 Missing Device Files: Symptoms
- 3.7.4 Missing Device Files: Solution
- 3.7.5 Corrupt /etc/lvmtab: Symptoms
- 3.7.6 Corrupt /etc/lvmtab: Solution
- 3.7.7 Outdated Kernel Structures: Symptoms
- 3.7.8 Outdated Kernel Structures: Solution
- 3.7.9 Failed Disks: Symptoms
- 3.7.10 Activating a Volume Group that Contains Failed Disks
- 3.7.11 Restoring a PowerFailed Disk
- 3.7.12 Replacing a Failed Disk
- 3.7.13 Backing up the PVRA/VGRA
- 3.7.14 Restoring the PVRA/VGRA
- 3.7.15 Restoring the PVRA/VGRA: Complete Procedure
- 3.7.16 Restoring Unmirrored File System Data
- 3.7.17 Restoring Mirrored File System Data
- 3.7.18 Removing Corrupt Physical Volumes
- 3.7.19 Proactively checking PVRA/VGRA Health
- 3.7.20 Preparing for Disasters
- 3.7.21 Laboratory
- 3.8 Monitoring and Tunning LVM Performance
- 3.8.1 Performance Considerations
- 3.8.2 Balancing I/O Workloads: Concept
- 3.8.3 Balancing I/O Workloads: Symptoms
- 3.8.4 Balancing Workloads: Overriding the Default Allocation Policy
- 3.8.5 Balancing Workloads: Striped Logical Volumes
- 3.8.6 Balancing I/O Workloads: Mirrored Logical Volumes
- 3.8.7 Minimizing Head Movement: Concepts
- 3.8.8 Minimizing Head Movement: Symptoms
- 3.8.9 Minimizing Head Movement: Commands
- 3.8.10 Avoiding Fragmentation: Concept
- 3.8.11 Avoiding Fragmentation: Symptoms
- 3.8.12 Avoiding Fragmentation: Commands
- 3.8.13 Minimizing MWC/MCR Overhead: Concept
- 3.8.14 Minimizing MWC/MCR Overhead: Symptoms
- 3.8.15 Minimizing MWC/MCR Overhead: Commands
- 3.8.16 Buying Faster Disks and Interfaces
- 3.8.17 Other I/O Performance Factors
- 3.8.18 Laboratory
- 3.9 Configuring and Managing LVM Boot Disks on PA-RISC Servers
- 3.9.1 What's special about Boot Disks?
- 3.9.2 PA-RISC Boot Process Players
- 3.9.3 PA-RISC Boot Process Review
- 3.9.4 Interacting with the ISL/IPL
- 3.9.5 PA-RISC Data/Boot Disk Structure Comparison
- 3.9.6 PA-RISC Boot Disk Structure Details
- 3.9.7 PA-RISC Boot Logical Volume Restrictions
- 3.9.8 Mirroring a PA-RISC Boot Disk
- 3.9.9 Verifying a Mirrored PA-RISC Boot Disk
- 3.9.10 Booting from a Mirrored PA-RISC Boot Disk
- 3.9.11 Replacing a Failed PA-RISC Boot Disk
- 3.9.12 Backing Up a PA-RISC Boot Disk
- 3.9.13 Booting from a PA-RISC System Recovery Archive
- 3.9.14 Resizing Boot Volumes: Problems
- 3.9.15 Resizing Volumes in vg00 via a Recovery Tape
- 3.9.16 Resizing /stand via Maintenance Mode
- 3.9.17 Changing the MWC Policy via Maintenance Mode
- 3.9.18 Laboratory
- 3.10 Configuring and Managing LVM Boot Disks on Integrity Servers
- 3.10.1 What's special about Boot Disks?
- 3.10.2 PA-RISC Boot Process Players
- 3.10.3 PA-RISC Boot Process Review
- 3.10.4 Interacting with the EFI Boot Manager
- 3.10.5 Interacting with the EFI Shell
- 3.10.6 Interacting with the hpux.efi OS Loader
- 3.10.7 Integrity Boot Disk Structure Comparison
- 3.10.8 Integrity Boot Disk Partition Details
- 3.10.9 Integrity Boot Logical Volume Restrictions
- 3.10.10 Mirroring an Integrity Boot Disk: Configuring the Partition Table
- 3.10.11 Mirroring an Integrity Boot Disk: Configuring the System Partition
- 3.10.12 Mirroring an Integrity Boot Disk: Configuring the OS Partition
- 3.10.13 Mirroring an Integrity Boot Disk: Configuring the Service Partition
- 3.10.14 Mirroring an Integrity Boot Disk: Configuring the EFI Boot Manager Menu
- 3.10.15 Booting from the Alternate Mirror
- 3.10.16 Replacing a Failed Integrity Boot Disk Mirror: Rebuilding the Partition Table
- 3.10.17 Replacing a Failed Integrity Boot Disk Mirror: Reconfiguring the System Partition
- 3.10.18 Replacing a Failed Integrity Boot Disk Mirror: Rebuilding the OS Partition
- 3.10.19 Replacing a Failed Integrity Boot Disk Mirror: Rebuilding the Service Partition
- 3.10.20 Backing up an Integrity Boot Disk
- 3.10.21 Booting from an Integrity System Recovery Image
- 3.10.22 Resizing Volumes in vg00: Problems
- 3.10.23 Resizing Volumes in vg00: Using a Recovery Archive
- 3.10.24 Laboratory
- 3.11 LVM Consideration for Disk Arrays
- 3.11.1 What is a Disk Array?
- 3.11.2 What is a LUN?
- 3.11.3 What is RAID?
- 3.11.4 RAID 0, RAID 1, and RAID 1+0
- 3.11.5 RAID 3, RAID 5, and RAID 5DP
- 3.11.6 RAID Levels and LVM
- 3.11.7 Viewing Available LUNs
- 3.11.8 Disk Array LUNs and LVM
- 3.11.9 Disk Array LUNs and PV Links
- 3.11.10 Configuring PV Links
- 3.11.11 Viewing, Adding and Removing PV Links
- 3.11.12 PV Link Switchover
- 3.11.13 PV Link Switchback
- 3.11.14 Configuring Autoswitch Behavior
- 3.11.15 Switching Links Manually
- 3.11.16 Optimizing PV Links
- 3.11.17 LVM and AutoPath
- 3.11.18 Configuring AutoPath
- 3.11.19 LVM and Business Copy
- 3.11.20 LVM and Business Copy: Issues
- 3.11.21 LVM and Business Copy: Solution
- 3.11.22 LVM and Business Copy: Importing a Business Copy
- 3.11.23 LVM and Business Copy: Resync'ing a Business Copy
- 3.1 LVM Concepts and Structures
- 4 SD-UX
- 4.1 Introducing SD-UX
- 4.2 Installing Patches with SD-X
- 4.2.1 Why Install Patches?
- 4.2.2 Patch Naming Convention
- 4.2.3 Patch Supersession
- 4.2.4 Patch Ratings
- 4.2.5 Patch Sources
- 4.2.6 Patch Tools
- 4.2.7 Downloading Patches from the ITRC
- 4.2.8 Installing a Single Patch from the ITRC
- 4.2.9 Installing Multiple Patches from the ITRC
- 4.2.10 Installing Patches from CD
- 4.2.11 Installing Patches from Tape
- 4.2.12 Installing Patches from Depot Server
- 4.2.13 Listing Patches with swlist
- 4.2.14 Removing Patches with swremove
- 4.2.15 Laboratory
- 5 Authors
UNIX
Shell Basics
What is the Shell?
Commonly Used Shells
What Happens at Login?
Logging In and General Orientation
A Typical Terminal Session
Logging In and Out
The Shell - Command Interpretation
Command Line Format
The Secondary Prompt
The Manual
Content of the Manual Pages
The Online Manual
Some Beginning Commands
The id Command
The who Command
The date Command
The passwd Command
The echo Command
The banner Command
The clear Command
The mesg Command
Laboratory
What is a File System?
The Tree Structure
The File System Hierarchy
Path Names
Some Special Directories
Basic File System Commands
pwd - Present Working Directory
ls - List Contents of a Directory
cd - Change Directory
The find Command
- Note: Needs to be reviewed and updated.