Saturday, January 29, 2011

Solaris Solutions for System Administrators






Acknowledgments
About the Authors
Introduction xix
Part I Setting Up Your Solaris Infrastructure 1
Chapter 1 Making Smart Decisions about File Systems 3
File Systems from the Roots Up 4
File Systems: Shortcuts to Data 6
Types of File Systems 8
File Types 11
The Solaris File System 14
Directories 14
UFS Logging 17
Working with File Systems 18
Building and Maintaining File Systems 18
Formatting and Partitioning 19
Creating New File Systems 23
Mounting and Unmounting 25
The Automounter 27
Options for NFS 35
NFS Server Logging 35
Securing NFS versus Secure NFS 41
Administering Secure NFS 41
Summary 42
Chapter 2 Planning Backups and Restores 45
Networkwide Storage Solutions 46
Local Backups 46
Network Backups 46
RAID Storage 47
Network-Attached Storage (NAS) 47
Storage Area Network (SAN) 47
Backup Basics 49
File Systems and Backups 49
Full versus Incremental Backups 50
Backup Scheduling 51
Backups versus Archives 52
Backup Software 52
Backup Security 54
Backup Commands 54
The ufsdump Command 54
The ufsrestore Command 57
The tar Command 58
Summary 59
Chapter 3 Booting and Hardware Diagnostics 61
The PROM Monitor and OpenBoot Firmware 61
The Boot Command 66
Boot Options 68
Configuration Parameters 69
Perusing the Device Tree 71
Booting over the Network 73
Troubleshooting Your System 74
Setting up an Alternate Boot Disk 76
Summary 77
Chapter 4 Configuring Run States 79
Picturing Run States 80
The init Process 81
The rc Scripts 84
Kill and Start Scripts 85
Summary 87
Chapter 5 Installing and Patching Your Solaris System 89
Preparing for Installation 89
Gathering Necessary Information 90
Calculating Space Requirements 91
What to Expect from an Installation 91
Things to Keep in Mind If You’re Upgrading a System 92
Installation Methods 92
Preconfiguring System Information 93
Using Web Start 94
Using suninstall 97
Using JumpStart 97
Using Web Start Flash 98
Performing a Solaris Live Upgrade 98
Patching Your Systems 102
Staying Up to Date with Patches 102
Why So Many Patches? 104
Different Types of Patches 104
Obtaining Patches 105
Installing Patches 105
Summary 107
Chapter 6 Exploiting JumpStart and Web Start Flash 109
JumpStart and Web Start Flash Terminology 110
Custom JumpStart 110
Web Start Flash 111
The Format of Archives 112
Rebuilding from Scratch 114
Creating and Storing Archives 114
Splitting an Archive 117
Combining Archives 118
Layered Archives 118
Server Roles 118
Installation Servers 119
Boot Servers 120
Profile Servers 120
Network Information Server 121
Configuring Your Site for JumpStart 121
Tasks That Have Already Been Performed 122
Tasks That Need to Be Performed Once 123
Tasks That Need to Be Performed for Each Release 124
Tasks That Need to Be Performed Once for Each System Type 126
Creating Begin and Finish Scripts 137
Tasks That Need to Be Performed Once for Each Client 140
Summary 142
Chapter 7 Setting up Name Services 143
Domain Name System 143
Installing the DNS 144
The Boot File 144
The Cache File 153
The Forward Map File 155
The Reverse Map File 158
Starting up the DNS Server 159
Setting up Solaris as a DNS Client 160
Troubleshooting Your DNS Environment 160
Troubleshooting with nslookup 160
Troubleshooting with dig 161
Summary 165
Chapter 8 Network Information Services 167
Solaris Name Services 168
Lightweight Directory Access Protocol (LDAP) 169
What Is LDAP? 169
Why Use LDAP? 172
LDAP Basics 173
Transitioning to LDAP 176
NIS+ 179
Basic NIS+ Objects Explained 179
How NIS+ Works 180
NIS 183
The NIS Master 184
The NIS Slave 185
The NIS Client 187
NIS Commands 188
Hardening NIS 189
Summary 190
Part II Managing Your Systems 191
Chapter 9 Monitoring Your Environment 193
Why Monitor? 193
Monitoring Tools: Build, Buy, or Get for Free? 195
Evaluating Network Management Systems 196
Basic Terminology 197
Network Management Protocols 198
Network Management Products 199
Poor Person’s Network Monitoring 200
Performance Monitoring 203
Log Monitoring 205
Sun Strides in Enterprise Management 210
Sun Management Center 210
Solaris WBEM Services 217
Summary 218
Chapter 10 Managing Performance 219
Why You Need to Monitor Performance 219
Understanding Bottlenecks 220
Performance Monitoring 221
A Word about Performance Metrics 221
Monitoring Your CPU 221
Monitoring Memory 239
Monitoring Your Disks 244
Monitoring Your Network 247
Using sar 250
System Tuning 257
Kernel Tuning 258
Interprocess Communication 259
Shared Memory 260
Semaphores 262
Message Queues 262
Solaris Resource Manager 262
Project-Management Commands 265
Resource Limits 268
Implementing Resource Control 268
Summary 268
Chapter 11 Volume Management 269
Volume Management Concepts and Terminology 270
Solaris Volume Manager 273
Features 273
Setting up Volumes 276
Veritas Volume Manager 286
Veritas Volume Manager Terminology 286
Installation and Planning 288
Configuring Your Volumes 290
System Changes 295
Understanding vxprint Output 296
Summary 298
Chapter 12 Automating Everything . . . Well, Almost! 299
Your Fill of Scripting and Then Some 300
Benefits of Scripting 300
Scripting Discipline 301
The Finer Points of Scripting 302
Dealing with Limits 302
Using the Right Tool for the Job 303
Good Scripting Practices 304
Running Scripts at Regular Intervals 313
Sample Scripts 315
Scripted FTPs 315
Mass Mailings 316
Web Link Updates 317
Create Visitor Counter 319
Summary 320
Chapter 13 Keeping Your Solaris Systems Secure 321
Network Security 322
Security through Service Elimination—inetd 322
Shutting down Services Started by init 329
Replacing Services with Secure Counterparts 331
Security through Wrappers 337
IPsec in Solaris 340
System Security 343
Permissions 343
Users and Groups 346
Role-Based Access Control 349
Logging and Log Files 361
Patches and Security 364
Trusted Solaris 8 364
Summary 366
Chapter 14 Implementing High Availability:
Eliminating Single Points of Failure 367
The Mission Plan for High Availability 368
HA Configuration 370
Rolling Your Own—Can It Be Done? 372
Choosing a Third-Party HA Solution 375
Implementing Your Solution 375
Cluster Servers 376
Cluster Concepts 376
Cluster Components 378
Veritas Cluster 378
Sun Cluster 3.0 385
Cluster Communication 385
Introduction to the Cluster Grid 388
What Is Grid Computing? 388
Cluster Grid Architecture 389
On Sun Today 389
Summary 390
Part III Looking After Your Hardware 391
Chapter 15 Maintaining Your Sun Hardware 393
Device Names 393
Troubleshooting Your System Hardware 394
Operating Environment Troubleshooting Tools 395
Open Boot PROM (OBP) Troubleshooting Tools 399
Troubleshooting Resources 404
Upgrading the OpenBoot PROM Level 405
E3X00/4X00/5000/6X00 405
Desktop Flash PROM Update 406
NVRAM—The Heart of the System 408
Examples of Restoring the NVRAM 409
The hostid on Solaris 2.5 x86 and Up 411
Summary 412
Chapter 16 Peripheral Vision: Understanding and Configuring
Other Hardware 413
Managing Your Printers 414
Solaris Printing 414
New Printing Options from Solaris 2.6 to Solaris 9 418
Tips and Tricks for Solaris 2.x Printing 421
Serial Port Configuration (Terminals and Modems) 424
Setting Serial Port Attributes 425
The /etc/ttydefs File 425
Port Monitors and sacadm 427
Configuring Ports for a Dumb Terminal 429
Configuring a Dial-in Modem 429
Configuring a Dial-out Modem 430
Summary 432
Chapter 17 The Starfire 433
What’s a Starfire? 433
Hardware Configuration 435
The System Service Provider—Intimidation at Its Finest 436
Logging in as the SSP User 438
Creating Domains 439
Removing a Domain 440
Knowing Your SSP 440
SSP Command Reference 442
A Helpful Script 442
bringup—Your Key to the E10000 444
netcon—It’s Your Friend 446
System Installation 447
Connecting with netcon 448
What to Do If netcon Is Unavailable 449
The Dynamic Domain 449
hostview—Since When Do UNIX People Need GUIs? 449
The dr Is In 449
Blacklisting for Fun and Profit 454
Recovering from Crashes 456
Summary 458
Chapter 18 The Sun Fire Servers 459
Introduction to the Sun Fire 459
A New Architecture 460
Sun Fire Technical Specifications 461
The Sun Fireplane Interconnect 463
CPUs and Memory 466
I/O 467
Integrated Service Processors 469
Operating Environment Requirements 470
The Sun Fire Boot Process 471
POST 471
Open Boot PROM 472
Sun Fire Configuration 473
Configuration and Status Commands 473
Dynamic Reconfiguration 474
Sun Fire Administration 479
On the Low End—Workgroup Server Administration 479
Midrange Server Administration 479
High-End Server Administration 486
Remote Administration 491
Troubleshooting Tools for Sun Fire Servers 494
Summary 495
Part IV Surviving in the Real World 497
Chapter 19 Running an Internet Site 499
The Dangers of an Internet Presence 500
The DMZ 500
Firewalls 501
Understanding Ports and Protocols 503
Packet Filtering 505
Proxy Servers 506
Stateful Inspection 507
Firewall Alternatives 508
Firewall Security 509
SunScreen 3.2 510
Other Solaris Firewalls 512
DNS and Email Configuration 512
sendmail Configuration 513
Client Mail Protocols 514
Configuring FTP Services 515
Managing Your Web Presence 516
Specifying Ports and Protocols 517
Support for Virtual Web Sites 518
Apache 518
iPlanet Web Server 526
Summary 527
Chapter 20 Coexisting with other Empires 529
Solaris Meets GNOME 530
Adding the GNOME Desktop to Solaris 530
Applications and GNOME 531
GNOME Customization 532
GNOME Development Tools 532
Transitioning to GNOME 533
Working with Windows 533
Windows Essentials 533
The Command Line versus the GUI 537
Remote Management Options 540
Networking Issues 540
Name Services 541
File Serving 541
Printing 547
Directory Services 547
Email 547
Other Approaches to Compatibility 548
Porting Your Expertise 549
Summary 550
Chapter 21 Time Management Techniques for Sysadmins 551
Daily Priorities 551
Managing Priorities 552
Deadlines for Everything 552
A Time for the Routine 552
Continuous Inquiry 553
Expect to Lose 10 Percent 553
Managing Phone Time 553
Handling Mail—Email, Real Mail, and Junk Mail 553
Making Meetings Count 553
Taking Notes 554
Listen to Your Body 554
Tasks of a Feather 554
Be Mean, Be Practical 555
Be Neat 555
Do It Now, Do It Right 555
Summary 556
Glossary 557
Bibliography and Recommended Reading 579
Index 583

Another Network Books
Download

No comments:

Post a Comment

Related Posts with Thumbnails

Put Your Ads Here!