Oracle Linux7 Advanced Admin Activity Guide vol1.pdf - Activity Guide \u2013 Volume I D90758GC10 Edition 1.0 | September 2015 | D92967 Learn more from

Oracle Linux7 Advanced Admin Activity Guide vol1.pdf -...

This preview shows page 1 out of 282 pages.

Unformatted text preview: Activity Guide – Volume I D90758GC10 Edition 1.0 | September 2015 | D92967 Learn more from Oracle University at oracle.com/education/ Oracle Internal & Oracle Academy Use Only Oracle Linux 7: Advanced Administration Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Disclaimer This document contains proprietary information and is protected by copyright and other intellectual property laws. You may copy and print this document solely for your own use in an Oracle training course. The document may not be modified or altered in any way. Except where your use constitutes "fair use" under copyright law, you may not use, share, download, upload, copy, print, display, perform, reproduce, publish, license, post, transmit, or distribute this document in whole or in part without the express authorization of Oracle. The information contained in this document is subject to change without notice. If you find any problems in the document, please report them in writing to: Oracle University, 500 Oracle Parkway, Redwood Shores, California 94065 USA. This document is not warranted to be error-free. Restricted Rights Notice U.S. GOVERNMENT RIGHTS The U.S. Government’s rights to use, modify, reproduce, release, perform, display, or disclose these training materials are restricted by the terms of the applicable Oracle license agreement and/or the applicable U.S. Government contract. Trademark Notice Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. Author Craig McBride Technical Contributors and Reviewers Avi Miller, Elena Zannoni, Wim Coekaerts, Harald Van Breederode, Joel Goodman, Manish Kapur, Yasar Akthar, Antoinette O’Sullivan, Gavin Bowe, Steve Miller, Herbert Van Den Bergh, Todd Vierling and John Haxby This book was published using: Oracle Tutor Oracle Internal & Oracle Academy Use Only If this documentation is delivered to the United States Government or anyone using the documentation on behalf of the United States Government, the following notice is applicable: Table of Contents Practices for Lesson 2: Network Addressing and Name Services .......................................................... 2-1 Practices for Lesson 2: Overview............................................................................................................. 2-2 Practice 2-1: Configuring a DHCP Server................................................................................................. 2-3 Practice 2-2: Configuring a DHCP Client .................................................................................................. 2-6 Practice 2-3: Viewing and Testing the DNS Configuration......................................................................... 2-9 Practice 2-4: Configuring a Caching-Only Nameserver ............................................................................. 2-16 Practices for Lesson 3: Authentication and Directory Services .............................................................. 3-1 Practices for Lesson 3: Overview............................................................................................................. 3-2 Practice 3-1: Configuring an OpenLDAP Server ....................................................................................... 3-3 Practice 3-2: Implementing OpenLDAP Authentication ............................................................................. 3-21 Practice 3-3: Authenticating from an OpenLDAP Client ............................................................................ 3-26 Practices for Lesson 4: Pluggable Authentication Modules (PAM) ......................................................... 4-1 Practices for Lesson 4: Overview............................................................................................................. 4-2 Practice 4-1: Configuring PAM for a Single Login Session ........................................................................ 4-3 Practice 4-2: Configuring PAM to Prevent Non-root Login......................................................................... 4-8 Practices for Lesson 5: Web and Email Services..................................................................................... 5-1 Practices for Lesson 5: Overview............................................................................................................. 5-2 Practice 5-1: Configuring the Apache Web Server .................................................................................... 5-3 Practices for Lesson 6: Installing Oracle Linux 7 by Using Kickstart...................................................... 6-1 Practices for Lesson 6: Overview............................................................................................................. 6-2 Practice 6-1: Performing a Kickstart Installation........................................................................................ 6-3 Practice 6-2: Using Rescue Mode............................................................................................................ 6-14 Practices for Lesson 7: Samba Services.................................................................................................. 7-1 Practices for Lesson 7: Overview............................................................................................................. 7-2 Practice 7-1: Configuring a Samba Server ............................................................................................... 7-3 Practice 7-2: Accessing Samba Shares from a Client Host ....................................................................... 7-8 Practice 7-3: Accessing a Linux Samba Share from a Windows System ................................................... 7-12 Practices for Lesson 8: Advanced Software Package Management........................................................ 8-1 Practices for Lesson 8: Overview............................................................................................................. 8-2 Practice 8-1: Exploring the host04 VM ..................................................................................................... 8-3 Practice 8-2: Managing Yum Plug-Ins ...................................................................................................... 8-9 Practice 8-3: Using Yum Utilities .............................................................................................................. 8-16 Practice 8-4: Creating an RPM Package .................................................................................................. 8-22 Practice 8-5: Managing Software Updates with PackageKit ...................................................................... 8-31 Practice 8-6: Working with Yum History and Yum Cache .......................................................................... 8-39 Practices for Lesson 9: Advanced Storage Administration ..................................................................... 9-1 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle Linux 7: Advanced Administration Table of Contents i Oracle Internal & Oracle Academy Use Only Practices for Lesson 1: Course Introduction ........................................................................................... 1-1 Course Practice Environment: Security Credentials.................................................................................. 1-2 Practices for Lesson 1: Overview............................................................................................................. 1-3 Practice 1-1: Exploring the dom0 Environment ......................................................................................... 1-4 Practice 1-2: Starting, Stopping, and Listing VM Guests ........................................................................... 1-11 Practice 1-3: Exploring the host01 VM ..................................................................................................... 1-13 Practice 1-4: Exploring the host02 VM ..................................................................................................... 1-17 Practice 1-5: Exploring the host03 VM ..................................................................................................... 1-20 Practice 1-6: Logging Off from Your Student PC ...................................................................................... 1-22 Practices for Lesson 10: Advanced Networking ...................................................................................... 10-1 Practices for Lesson 10: Overview ........................................................................................................... 10-2 Practice 10-1: Configuring Network Bonding by Using the GUI ................................................................. 10-3 Practice 10-2: Configuring Network Bonding from the Command Line....................................................... 10-21 Practice 10-3: Working with Bonded Interfaces ........................................................................................ 10-26 Practice 10-4: Configuring 802.1Q VLAN Tagging by Using the GUI ......................................................... 10-37 Practice 10-5: Configuring 802.1Q VLAN Tagging from the Command Line .............................................. 10-46 Practice 10-6: Working with VLAN Interfaces ........................................................................................... 10-49 Practice 10-7: Configuring a Site-to-Site VPN .......................................................................................... 10-58 Practices for Lesson 11: OCFS2 and Oracle Clusterware........................................................................ 11-1 Practices for Lesson 11: Overview ........................................................................................................... 11-2 Practice 11-1: Preparing for an OCFS2 Configuration............................................................................... 11-3 Practice 11-2: Verifying that the Required Software Is Installed ................................................................ 11-9 Practice 11-3: Configuring the Cluster Layout .......................................................................................... 11-10 Practice 11-4: Configuring and Starting the O2CB Cluster Stack Service .................................................. 11-14 Practice 11-5: Creating an OCFS2 Volume .............................................................................................. 11-17 Practice 11-6: Mounting an OCFS2 Volume ............................................................................................. 11-21 Practice 11-7: Tuning and Debugging OCFS2.......................................................................................... 11-26 Practices for Lesson 12: iSCSI and Multipathing ..................................................................................... 12-1 Practices for Lesson 12: Overview ........................................................................................................... 12-2 Practice 12-1: Configuring an iSCSI Server (Target)................................................................................. 12-3 Practice 12-2: Configuring an iSCSI Client (Initiator)................................................................................. 12-14 Practice 12-3: Configuring iSCSI Multipathing .......................................................................................... 12-21 Practices for Lesson 13: Control Groups (Cgroups)................................................................................ 13-1 Practices for Lesson 13: Overview ........................................................................................................... 13-2 Practice 13-1: Exploring cgroup Integration Into systemd.......................................................................... 13-3 Practice 13-2: Exploring cgroup Hierarchies and cgroup Subsystem Parameters ...................................... 13-10 Practice 13-3: Controlling Access to System Resources ........................................................................... 13-15 Practices for Lesson 14: Virtualization with Linux................................................................................... 14-1 Practices for Lesson 14: Overview ........................................................................................................... 14-2 Practice 14-1: Preparing the Virtualization Host for KVM .......................................................................... 14-3 Practice 14-2: Starting the Virtual Machine Manager and Preparing to Create a Virtual Machine................ 14-9 Practice 14-3: Creating a Virtual Machine ................................................................................................ 14-22 Practice 14-4: Managing Your Virtual Machine ......................................................................................... 14-36 Practices for Lesson 15: Linux Containers (LXC) .................................................................................... 15-1 Practices for Lesson 15: Overview ........................................................................................................... 15-2 Practice 15-1: Completing Linux Container Prerequisites.......................................................................... 15-3 Practice 15-2: Creating an Oracle Linux Container ................................................................................... 15-7 Practice 15-3: Using lxc Commands ........................................................................................................ 15-11 Practices for Lesson 16: Docker .............................................................................................................. 16-1 Practices for Lesson 16: Overview ........................................................................................................... 16-2 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle Linux 7: Advanced Administration Table of Contents ii Oracle Internal & Oracle Academy Use Only Practices for Lesson 9: Overview............................................................................................................. 9-2 Practice 9-1: Creating and Mounting a File System .................................................................................. 9-3 Practice 9-2: Implementing Access Control Lists ...................................................................................... 9-6 Practice 9-3: Setting Disk Quotas ............................................................................................................ 9-9 Practice 9-4: Encrypting a File System ..................................................................................................... 9-13 Practice 9-5: Using kpartx ....................................................................................................................... 9-16 Practice 9-6: Exploring and Configuring Udev .......................................................................................... 9-20 Practice 16-1: Using sftp to Upload Docker Package and Images ............................................................. 16-3 Practice 16-2: Installing and Configuring Docker ...................................................................................... 16-5 Practice 16-3: Using Docker Commands.................................................................................................. 16-9 Practices for Lesson 18: Core Dump Analysis......................................................................................... 18-1 Practices for Lesson 18: Overview ........................................................................................................... 18-2 Practice 18-1: Configuring Kdump ........................................................................................................... 18-3 Practice 18-2: Creating a Core Dump File ................................................................................................ 18-12 Practice 18-3: Preparing Your System to Analyze the vmcore................................................................... 18-14 Practice 18-4: Using the crash Utility........................................................................................................ 18-16 Practices for Lesson 19: Dynamic Tracing with DTrace .......................................................................... 19-1 Practices for Lesson 19: Overview ........................................................................................................... 19-2 Practice 19-1: Using sftp to Upload DTrace Packages .............................................................................. 19-3 Practice 19-2: Installing the DTrace Packages ......................................................................................... 19-8 Practice 19-3: Using DTrace from the Command Line .............................................................................. 19-12 Practice 19-4: Creating and Running D Scripts......................................................................................... 19-20 Appendix - NIS Configuration................................................................................................................... 20-1 Appendix - Overview ............................................................................................................................... 20-2 Practice A-1: Configuring an NIS Server .................................................................................................. 20-3 Practice A-2: Configuring an NIS Client.................................................................................................... 20-9 Practice A-3: Implementing NIS Authentication ........................................................................................ 20-11 Practice A-4: Testing NIS Authentication.................................................................................................. 20-15 Practice A-5: Auto-Mounting a User Home Directory ................................................................................ 20-17 Practice A-6: Restoring the Systems to Their Original State...................................................................... 20-20 Appendixes: Remote Access Options...................................................................................................... 21-1 Appendixes: Overview............................................................................................................................. 21-2 Appendix A: Using an NX Client to Connect to dom0................................................................................ 21-3 Appendix B: Using an NX Player to Connect to dom0............................................................................... 21-7 Appendix C: Using VNC (TightVNC) to Connect Directly to VM Guests ..................................................... 21-13 Appendix D: Using NoMachine Version 4 to Connect to dom0 .................................................................. 21-16 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle Linux 7: Advanced Administration Table of Contents iii Oracle Internal & Oracle Academy Use Only Practice for Lesson 17: Security Enhanced Linux (SELinux) .................................................................. 17-1 Practice for Lesson 17: Overview ............................................................................................................ 17-2 Practice 17-1: Exploring SELinux............................................................................................................. 17-3 Pra...
View Full Document

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture