- •Alexandre Borges
- •Credits
- •Free access for Packt account holders
- •Instant updates on new Packt books
- •Table of Contents Preface 1 Chapter 1: ips and Boot Environments 7
- •Introduction 8
- •Installing a package, verifying its content, and fixing the package corruption 13
- •In an inactive boot environment 64
- •Chapter 2: zfs 73
- •Introduction 74
- •Chapter 3: Networking 159
- •Chapter 4: Zones 235
- •Preface
- •Questions
- •Ips and Boot
- •In this chapter, we will cover the following topics:
- •Introduction
- •Determining the current package publisher
- •Getting ready
- •Installing a package, verifying its content, and fixing the package corruption
- •Getting ready
- •Interface
- •Getting ready
- •Listing and renaming a boot environment
- •Getting ready
- •Configuring an ips local repository
- •Getting ready
- •Configuring a secondary ips local repository
- •Getting ready
- •Publishing packages into a repository
- •Getting ready
- •Adding big applications into a repository
- •Getting ready
- •Creating your own package and publishing it
- •Getting ready
- •Managing an ips publisher on Solaris 11
- •Getting ready
- •Pinning publishers
- •Getting ready
- •Getting ready
- •Creating a mirror repository
- •Getting ready
- •Getting ready
- •Listing and creating a boot environment
- •Getting ready
- •Getting ready
- •Activating a boot environment
- •Getting ready
- •Getting ready
- •References
- •Introduction
- •Creating zfs storage pools and filesystems
- •Getting ready
- •Playing with zfs faults and properties
- •Getting ready
- •Creating a zfs snapshot and clone
- •Getting ready
- •Performing a backup in a zfs filesystem
- •Getting ready
- •Handling logs and caches
- •Getting ready
- •Managing devices in storage pools
- •Getting ready
- •Configuring spare disks
- •Getting ready
- •Handling zfs snapshots and clones
- •Getting ready
- •Playing with comstar
- •Getting ready
- •Mirroring the root pool
- •Getting ready
- •Zfs shadowing
- •Getting ready
- •Configuring zfs sharing with the smb share
- •Getting ready
- •Setting and getting other zfs properties
- •Getting ready
- •Playing with the zfs swap
- •Getting ready
- •References
- •Networking
- •Introduction
- •Playing with Reactive Network Configuration
- •Getting ready
- •Internet Protocol Multipathing
- •Getting ready
- •Setting the link aggregation
- •Getting ready
- •Configuring network bridging
- •Getting ready
- •Getting ready
- •Configuring the dhcp server
- •Getting ready
- •Configuring Integrated Load Balancer
- •Getting ready
- •IPv4 forwarding enabled enabled
- •References
- •Introduction
- •Getting ready
- •Id name status path brand ip
- •Getting ready
- •Value is basic (only the owner can modify it).
- •22:52:06 5849 Rcapd
- •Implementing a flow control
- •Getting ready
- •Getting ready
- •Installing: This may take several minutes...
- •References
- •Playing with Oracle
- •Introduction
- •Reviewing smf operations
- •Getting ready
- •Its dependencies
- •Handling manifests and profiles
- •Getting ready
- •Creating smf services
- •Getting ready
- •Getting ready
- •Troubleshooting Oracle Solaris 11 services
- •Getting ready
- •References
- •Configuring and
- •Introduction
- •Getting ready
- •References
- •Configuring and
- •Introduction
- •Configuring and using rbac
- •Getting ready
- •Playing with least privileges
- •Getting ready
- •References
- •Administering and
- •Introduction
- •Monitoring and handling process execution
- •Getting ready
- •2014 May 4 19:25:10, load average: 0.38, 0.30, 0.28 syscalls: 12648
- •Managing processes' priority on Solaris 11
- •Getting ready
- •Configuring fss and applying it to projects
- •Getting ready
- •References
- •Isbn-13: 978-0131568198
- •Configuring the
- •Introduction
- •Configuring the syslog
- •Getting ready
- •Getting ready
- •References
- •Aggregation 191
- •Identifier (fmri) 294 faults, zfs
- •(Trill) 198
- •Values, l4 (Communication)
- •Virtual ip address (vip address) 228 virtual memory size (vsz) 396 virtual network interface (vnic) 238 virtual network, zone
- •Virtual to virtual (v2v) migration 280
- •About Packt Enterprise
- •Writing for Packt
www.allitebooks.com
Oracle Solaris 11 Advanced Administration Cookbook
Over 50 advanced recipes to help you configure and
administer Oracle Solaris systems
Alexandre Borges
BIRMINGHAM - MUMBAI
www.allitebooks.com
Oracle Solaris 11 Advanced Administration Cookbook
Copyright © 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: October 2014
Production reference: 1031014
Published by Packt Publishing Ltd. Livery Place
35 Livery Street Birmingham B3 2PB, UK.
ISBN 978-1-84968-826-0
www.packtpub.com
Cover image by Reshma Lodaya (reshmalodaya@yahoo.com)
www.allitebooks.com
Credits
-
Author
Alexandre Borges
Reviewers
Hosam Al Ali Darryl Gove Mark Round Johnny Trujillo
Commissioning Editor
Pramila Balan
Acquisition Editors
Subho Gupta
Mohammad Rizvi
Content Development Editor
Anila Vincent
Technical Editors
Nikhil Potdukhe Anand Singh
Copy Editors
Dipti Kapadia Insiya Morbiwala Karuna Narayanan
Stuti Srivastava
Project Coordinator
Priyanka Goel
Proofreaders
Simran Bhogal Maria Gould Ameesha Green Lauren Harkins Paul Hindle
Indexers
Monica Ajmera Mehta
Rekha Nair Priya Sane
Graphics
Ronak Dhruv
Production Coordinator
Nilesh R. Mohite
Cover Work
Nilesh R. Mohite
www.allitebooks.com
About the Author
Alexandre Borges
is
an Oracle ACE in Solaris and has been teaching
courses
on Oracle Solaris since 2001.
He worked as an employee and a contracted instructor at Sun
Microsystems, Inc. until 2010,
teaching hundreds of courses on Oracle Solaris (such as
Administration, Networking, DTrace,
and ZFS), Oracle Solaris Performance Analysis, Oracle Solaris
Security, Oracle Cluster Server, Oracle/Sun hardware, Java
Enterprise System, MySQL Administration,
MySQL Developer,
MySQL Cluster,
and MySQL
tuning. He
was awarded
the title of
Instructor of the Year twice
for his performance teaching Sun Microsystems
courses.
Since 2009, he has been imparting training at Symantec Corporation (NetBackup, Symantec Cluster Server, Storage Foundation, and Backup Exec) and EC-Council [Certified Ethical Hacking (CEH)]. In addition, he has been working as a freelance instructor for Oracle education partners since 2010.
In 2014, he became an instructor for Hitachi Data Systems (HDS) and Brocade. Currently, he also teaches courses on Reverse Engineering, Windows Debugging, Memory Forensic Analysis, Assembly, Digital Forensic Analysis, and Malware Analysis.
Alexandre is also an (ISC)2 CISSP instructor and has been writing articles on the Oracle Technical Network (OTN) on a regular basis since 2013.
www.allitebooks.com
Acknowledgments
I would like to thank the technical reviewers of the book—Mark Round, Darryl Gove, Philip Brown, Hosam Al Ali, and Johnny Trujillo—who have performed outstanding work and have helped to make this book better than the initial draft. Especially, my sincere and honest thanks to Mark Round for a detailed and accurate review of this book. I am certainly a lucky professional to have all the support and help of Ms. Swati Kumari, Ms. Anila Vincent, Mr. Mohammad Rizvi, Anand Singh, and Nikhil Potdukhe from the Packt Publishing team during all the stages of this book. On several occasions, Ms. Swati and Ms. Anila offered sweet and good words, which helped me to continue writing. Although they are not part of this book, thanks to Rick Ramsey (from Oracle), who has helped, taught, and motivated me
to write for Oracle Technical Network (OTN), and to Karen Perkins (technical editor and writer), from whom I have been learning how to write better articles.
Finally, I owe all my education and success to my mother, who has worked her whole life and taken huge efforts to give me an opportunity to study even when there was no money to live.
www.allitebooks.com
About the Reviewers
Hosam Al Ali is a Senior Unix/Linux System Administrator since 8 years and lives in Riyadh, Saudi Arabia. He is working at Sun Microsystems, Inc., with the open source community as Team Leader for Arabic Language Translation and is a Top Contributor at opensolaris.org.
He is certified by Sun Microsystems, Inc., and has accomplished Solaris 10, 11 courses and exams. He writes a blog at http://hosam.wordpress.com to share his experience and skills online.
I got married recently and would like to say a big and warm thanks to my sweetheart, Heba. She has helped and supported me to work through the nights in order to complete this book and finish it on time.
Darryl Gove is a Senior Principal Software Engineer in the Oracle Solaris Studio team, who works on optimizing applications and benchmarks for current and future processors. He is the author of Multicore Application Programming: for Windows, Linux, and Oracle Solaris (Developer's Library), Addison Wesley; Solaris Application Programming, Prentice Hall; and
The Developer's Edge, Sun Microsystems. He writes a blog at http://www.darrylgove.com.
www.allitebooks.com
Mark Round is a systems administrator with nearly 20 years of experience running Unix. Starting with NetBSD on his Amiga, he has administered a diverse variety of platforms, including OpenVMS, Solaris, AIX, IRIX, FreeBSD, and Linux.
He has managed thousands of systems across a wide range of industries, from publishing and media to telecom and finance. Currently, he works for one of the largest media companies in the world as a DevOps engineer; he has spent the last few years working on large-scale infrastructure projects.
He is involved in a number of open source community projects. He maintains an IPS repository of useful Solaris 11 packages and writes his blog at http://www.markround.com.
I would like to thank my family and my wonderful fiancée, Jaleh.
Johnny Trujillo has experience as a teacher at a New York City college. He is a United States Air Force Reserve technologist, and with over 25 years of experience working with Solaris, Linux, Windows OS, as well as Networking, Telephony, Security, Data Centers, Virtualization, and Cloud Technologies, he runs his own computer training and ICT consulting business.
Johnny works as a Senior Project Manager, applying the PMI, PRINCE2, and Agile methodologies to manage the delivery of Data Centers, Virtual and Cloud Technology Infrastructure, and software implementations for the Financial, Banking, Mining, Airlines, Education, and Telecom industries.
I would like to thank Packt Publishing for giving me the opportunity to participate in the production of this insightful book, a valuable asset to anyone on the path to certification or to those who want to understand the recent changes in Oracle Solaris.
www.allitebooks.com
www.PacktPub.com
Support files, eBooks, discount offers, and more
You might want to visit www.PacktPub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.
Why subscribe?
f Fully searchable across every book published by Packt
f Copy and paste, print and bookmark content
f On demand and accessible via web browser
