Friday Mar 06, 2015

5 Steps for Installing Oracle Database 12c on Oracle Solaris 11

You can install and run Oracle Database 12c on different platforms, but if you install it on an Oracle Solaris 11 zone, you can take advantage of these capabilities:

  • Isolation - Database processes that execute in one zone have no access to database processes running in another zone. This isolation simplifies database consolidation, allowing multiple instances and versions to coexist safely on a single physical machine.
  • Independently Managed and Autonomous Environments - A non-global zone can be booted, patched, and shut down independently. A failure or reboot of one zone has no impact on other zones (unless, of course, a failure is due to a shared component). A zone reboot is faster than a full server reboot (seconds versus minutes), so a database in a rebooted zone is available more quickly.
  • Distinctive Identity - You can define virtual network interfaces for a zone, so you can give the database instance installed on that zone its own independent host name and IP address. You can also apply networking resource controls to zones, aligning network bandwidth consumption with service level targets.
  • Easy Database Instance Migration - If a database needs more CPU power, you can add CPUs to an Oracle Solaris Zone and reboot the zone. If a database needs more compute capacity than what's available in the physical server, you can migrate the zone to a larger server.
  • Hard Partitioning - Assigning a resource pool or capping CPU cores can configure Oracle Solaris Zones as hard partitions for Oracle Database licensing purposes. This can potentially lower database licensing costs.

Tech Article: 5 Steps to Installing Oracle Database 12c on Oracle Solaris 11

by Ginny Henningsen and Glynn Foster

Ginny Henningsen and Glynn Foster from the Oracle Solaris product management team wrote down the simplest instructions for installing Oracle Database 12c in an Oracle Solaris 11 non-global zone, including how to implement hard partitioning.

About the Photograph

That's a closeup of one section of the Cedar Breaks National Monument, in Utah. I snapped the picture from a lookout located at an altitude of over 10,000 feet.

- Rick

Follow Rick on:
Personal Blog | Personal Twitter | Oracle Community Profile
  Follow OTN Garage on:
Blog | Community Discussions | Web | Facebook | Twitter | YouTube

Thursday Feb 19, 2015

How to Install and Use Oracle Solaris 11.2 for x86 from an ISO in VirtualBox

I ran into Erik Benner, founder of the SPARC/Solaris SIG group for IOUG, at Rocky Mountain Oracle User Group Training Days yesterday. He has been busy. Not only is he working on some labs and demos for OTN's upcoming Virtual Technology Summits, but he's taken the time to write a three-part blog to show you how easy it is to install and play with Oracle Solaris 11.2 for x86 on VirtualBox. In his own words ... "Recently I had a DBA at an IOUG event complain that they were unable to install from the Solaris 11.2 ISO. They had seen me demo Openstack a few weeks ago, and wanted to know how to install Solaris 11.2 in a VM. So guys… here is a step by step for you."

Part 1 - How to Install Oracle Solaris 11.2 for x86 from an ISO in VirtualBox

by Erik Benner

Covers how to launch the Solaris VM, how to assign it memory, how to create a virtual drive and configure it as a dynamic allocated drive to save space, how to install the Oracle Solaris 11.2 image, and how to start it.

Part 2 - How to Patch Oracle Solaris 11.2 the Easy Way

by Erik Benner

You've probably heard by now that the new patching system in Oracle Solaris 11 lets you patch or revert back with a simple reboot. Erik walks us through a few simple uses of the beadm and pkg update commands.

Part 3 - Managing NICs, IPs, and Hostnames

by Erik Benner

How to configure the networking capabilities of your VirtualBox environment to run Oracle Database 12c so that you can experiment with its new V$KERNEL_IO_OUTLIER views and the Optimized Shared Memory method of managing database memory. Covers adding disks and configuring them into a ZFS pool, adding a NIC to the database server, and setting up IP addresses correctly. This is done differently in Oracle Solaris 11 than in previous releases, as Erik explains.

About Erik Benner

Erik Benner is an enterprise architect for Mythics Corporation, which provides training, systems integration, consulting, and managed services for the entire Oracle product line of cloud, software, support, hardware, engineered systems, and appliances.

About the Photograph

That's a 2015 Ducati Monster 821 in the foreground, and my 01 Ducati 748S Superbike in the background. I took that picture in my driveway in late Fall of 2014.

- Rick

Follow Erik on:
Blog | Twitter | Oracle Community Profile
  Follow OTN Garage on:
Blog | Community Discussions | Web | Facebook | Twitter | YouTube

Friday Feb 13, 2015

How to Build a Software Defined Network with Oracle Solaris 11

Before software engineers got so freakin' smart, we used to pay a special type of sysadmin to fiddle with the cables and switches at the back of our racks. They were mean, they were hunch-backed, and their fingers were stained with nicotine.

Those were the good old days. Today, network administrators wash their clothes and and sit at desks. And they use something called "software defined networking." I looked it up in the Urban Dictionary, but there was no listing for it. Which is just as well because if you ask me ...

Software Defined Networking = voodoo magic

A Little Bit About Software Defined Networking

Software Defined Networking is the equivalent of doing your homework the week before it's due. I mean, who does that? Well, the Solaris engineers at Oracle do, for starters. Talk about annoying! They started this trend back in the early days of Oracle Solaris 11. Instead of visiting Rufus in the basement server room, they designed this infrastructure that makes it possible for them to put dibs on networking resources from the comfort of the local Starbucks.

In other words, instead of Rufus yanking cables out of one box and hooking them up to another, you can simply change the cable routing by keyboard, so to speak. And assign them to virtual compute nodes. And configure all kinds of aspects about each network, including Service Level Agreements, an implement of Trotskyist-Leninist Totalitarianism if there ever was one. All without waking Rufus.

Orgad Kimchi, our fearless explorer of real-world Solaris, horsed around with not only the software defined networking capabilities of Oracle Solaris 11, but its latest features, which, in his words provide "greater application agility without the added overhead of expensive network hardware." The SDN features in Oracle Solaris 11.2 now:

  • Enable application-driven, multitenant cloud virtual networking across a completely distributed set of systems
  • Allow network service-level agreements (SLAs) at the application level
  • Provide cloud-readiness, thanks to the OpenStack distribution include in Oracle Solaris 11
  • Integrate tightly with Oracle Solaris Zones.

Tech Article: How to Build a Software Defined Network Using Elastic Virtual Switches

In Oracle Solaris 11.2

Orgad starts by walking you through the steps to set up SSH authentication and the Elastic Virtual Switch controller. Then he shows you how to configure both compute nodes, the four Solaris zones, and their virtual networks. He wraps up by showing you how to test the entire configuration to make sure it's working the way you want. Orgad writes from real-world experience, so you can trust his recommendations.

About the Photographs

I snapped the picture of the lamp at Stovepipe Wells, and the picture of Linda Lu, my 2008 Harley Davidson Softail Custom, while riding through Death Valley, California in the Spring of 2014. To get a better feel for the strange vastness of Death Valley, click on the image below to go to Wordpress, then click on the Wordpress image to enlarge it.

- Rick

Follow Rick on:
Personal Blog | Personal Twitter | Oracle Community Profile
  Follow OTN Garage on:
Blog | Community Discussions | Web | Facebook | Twitter | YouTube

Friday Oct 24, 2014

Learn How to Use OpenStack on Oracle Solaris From the Comfort of Your ...

You're probably heard by now that Oracle Solaris provides a complete implementation of the OpenStack platform. Here's a quick view of the integration, courtesy of Glynn Foster:

Horizon Cloud Management Dashboard
OpenStack Component Nova Compute Node Neutron Cloud Networking Cinder/Swift Cloud Storage Glance Image Deployment
Solaris Component Zones and Kernel Zones Elastic Virtual Switch ZFS Filesystem Unified Archives

Glynn has prepared two labs showing you how to get OpenStack running on Oracle Solaris. OTN is making them available virtually, with moderators to help you, in November's Virtual Technology Summit. Because they're virtual, you get to decide whether you want to try them out in the crisp mountain air of your fairytale castle in Germany, the convenience of your Manhattan mansion (who dares to be away from Wall Street for very long these days), or even the regal splendor of Windsor Castle, provided you convince the Queen to let you update her internet.

Lab 1 - How to Deploy OpenStack in 20 Minutes

Use Unified Archives to quickly provision an OpenStack private cloud on a single node and deploy VM instances based on Oracle Solaris Kernel Zones. The basics of cloud administration through the Horizon web interface, and how to quickly provision both Cinder block and Swift object storage using the ZFS file system. Also how the network virtualization features in Oracle Solaris 11 provide the necessary infrastructure to Neutron networking.

Lab 2 - Deploy a Secure Enterprise Private Cloud with OpenStack

Picks up where the first lab left off. Create a golden image environment for an Oracle Database installation using Unified Archives, upload this image to the Glance image repository in OpenStack, and deploy it using Nova compute to a VM instance. How to secure that application in a sandboxed environment using Immutable Zones, and check them for compliance using the integrated framework included in Oracle Solaris 11.

Register Here

The Virtual Technology Summit is a lot of fun, but you need to register. It's free. It lasts 4 hours. And it's all technology.

We'll also have labs for Oracle Linux and Oracle VM. I'll tell you more about those in an upcoming blog.

More Resources About OpenStack

If you'd like to do a little background reading before the event, watch:

About the Photograph

I don't hang with the Queen, so my digs are a little more modest. I took a picture of that cabin on Route 14 on the way down from Cedar Breaks National Monument, in Utah.

Follow Rick on:
Personal Blog | Personal Twitter | Oracle Community Profile
  Follow OTN Garage on:
Web | Facebook | Twitter | YouTube

Thursday Oct 16, 2014

New Cookbook: Oracle Solaris 11 Advanced Administration

The articles written by Oracle ACE Alexandre Borges never fail to provide real-world insight into the use of Oracle technologies, particularly Oracle Solaris. They also explain concepts with the patience and care that only professional instructors demonstrate.

Alexandre has just written a book with the same insights and real-world practicality as his articles.

Oracle Solaris 11 Advanced Administration Cookbook

by Alexandre Borges

In-depth coverage of every important feature in the Oracle Solaris 11 operating system. Starting with how to manage the IPS repository, make a local repository, and create your own IPS package. How to handle boot environments, configuring and managing ZFS frameworks, and ZFS shadowing. Implementing zones, creating SMF services, and reviewing SMF operations. How to configure an Automated Installer, which is part of the new software deployment architecture introduced in Oracle Solaris 11. Role-based access control (RBAC) and least privileges, how to configure and administer resource manager, and finally and introduction to performance tuning.

Here is an excerpt, taken from the introduction to creating, activating, and destroying a boot environment:

Let's imagine a scenario. We are requested to update Oracle Solaris 11, and to do this, we need to reboot the system, insert the Oracle Solaris 11 installation DVD, and during the boot, we have to choose the upgrade option. Is the upgrade complete? Is there no further problem? Unfortunately, this is not true because there are some potential tradeoffs:
  • We had to stop applications and reboot the operating system, and users had to stop work on their tasks.
  • If there was trouble upgrading the Oracle Solaris operating system, we'll lose all old installation because the upgrade process will have overwritten the previous version of Oracle Solaris; consequently, we won't be able to reboot the system and go back to the previous version.
As you will have realized, this is a big threat to administrators because in the first case, we had a working (but outdated) system, and in the second case, we risked losing everything (and our valuable job) if anything went wrong. How can we improve this situation?

In Oracle Solaris 11, when we are requested to upgrade a system, Oracle Solaris 11 takes a BE automatically to help us during the process. The boot environment is a kind of clone that makes it possible to save the previous installation, and if anything goes wrong during the upgrade, the boot environment of Oracle Solaris 11 lets us roll back the OS to the old state (installation). One of the biggest advantages of this procedure is that the administrator isn't obliged to execute any command to create a BE to protect and save the previous installation. Oracle Solaris 11 manages the whole process. This has two advantages: the upgrade process gets finished without rebooting the operating system, and the boot environment enables us to roll back the environment if we encounter a problem.

Nowadays, professionals are making heavy use of the BE, and this is the true reason that creating, activating, and destroying BEs is most important when administering Oracle Solaris 11. You can be sure that this knowledge will be fundamental to your understanding of Oracle Solaris 11 Advanced Administration.

About the Photograph

I took the photo of some kind of flower (no clue what kind it is) on my hillside during a particularly wet summer in Colorado.

- Rick
Follow Alexandre on:
Oracle Community | Web Page | LinkedIn | Twitter
  Follow OTN Garage on:
Sysadmin Water Cooler | Web | Facebook | Twitter | YouTube

Friday Sep 19, 2014

Latest Hands-On Lab by Orgad Kimchi: How to Set Up a Hadoop 2 Cluster with Oracle Solaris

If you're going to San Francisco, be sure to wear some flowers in your hair. Especially if it's for Oracle OpenWorld. And while you're there, don't miss Orgad Kimchi's latest hands-on lab.

Lab: How to Set up a Hadoop 2 Cluster with Oracle Solaris

In his own words ...

"This hands-on lab presents exercises that demonstrate how to set up an Apache Hadoop 2 (YARN) cluster using Oracle Solaris 11 technologies such as Oracle Solaris Zones, Oracle Solaris ZFS, and Unified Archive. Key topics include the Hadoop Distributed File System (HDFS) and the Hadoop MapReduce programming model. It also covers the Hadoop installation process and the cluster building blocks: NameNode, Resource Manager, History Server, and DataNodes. In addition, you will see how you can combine the Oracle Solaris 11 technologies for better scalability and data security and will learn how to enable a HDFS high-availability cluster and run a MapReduce job."

I'll try to convince Orgad to eventually make that lab available to those who of us who can't afford the tickets to Oracle OpenWorld.

More Gems from Orgad

Orgad regularly writers terrific articles that show you how to put Oracle Solaris technologies to use in the real world. Here are a few of them:

About the Photograph

I took the photograph of a streetcar in San Francisco while sneaking out of the Oracle Solaris reunion I was attending in April of 2014.

Follow Orgad Kimchi:
  Follow Rick on:
Twitter | Personal Blog
Follow OTN Garage on:
Web | Facebook | Twitter | YouTube

Monday Aug 18, 2014

Why Wouldn't Root Be Able to Change a Zone's IP Address in Oracle Solaris 11?

You might assume that if you have root access to an Oracle Solaris zone, you'd be able to change the root's IP address. If so, you'd proceed along these lines ...

  1. First, you'd log in:
  2. root@global_zone:~# zlogin user-zone
  3. Then you'd remove the IP interface:
  4. root@user-zone:~# ipadm delete-ip vnic0
  5. Next, you'd create a new IP interface:
  6. root@user-zone:~# ipadm create-ip vnic0
  7. Then you'd assign the IP interface a new IP address (
  8. root@user-zone:~# ipadm create-addr -a local= vnic0/v4
    ipadm: cannot create address: Permission denied

Why would that happen? Here are some potential reasons:

  • You're in the wrong zone
  • Nobody bothered to tell you that you were fired last week.
  • The sysadmin for the global zone (probably your ex-girlfriend) enabled link protection mode on the zone with this sweet little command:
  • root@global_zone:~# dladm set-linkprop -p \ protection=mac-nospoof,restricted,ip-nospoof vnic0

How'd your ex-girlfriend learn to do that? By reading this article:

Securing a Cloud-Based Data Center with Oracle Solaris 11

by Orgad Kimchi, Ron Larson, and Richard Friedman

When you build a private cloud, you need to protect sensitive data not only while it's in storage, but also during transmission between servers and clients, and when it's being used by an application. When a project is completed, the cloud must securely delete sensitive data and make sure the original data is kept secure. These are just some of the many security precautions a sysadmin needs to take to secure data in a cloud infrastructure. Orgad, Ron, and Richard explain the rest and show you how to employ the security features in Oracle Solaris 11 to protect your cloud infrastructure. Part 2 of a three-part article on cloud deployments that use the Oracle Solaris Remote Lab as a case study.

About the Photograph

That's the fence separating a small group of tourist cabins from a pasture in the small town of Tropic, Utah.

Follow Rick on:
Personal Blog | Personal Twitter | Oracle Forums
  Follow OTN Garage on:
Web | Facebook | Twitter | YouTube

Wednesday Jul 16, 2014

Get Your ZFS On

Surprising as it may seem, there are still many sysadmins out there who don't use ZFS or are not familiar with its best features. We (since I'm one of them) should send expensive gifts to Oracle ACE Alexandre Borges. Alexandre loves Solaris so much he can't stop writing about it. He recently put together a torrent of articles about ZFS that, even if you think you know everything about it, you should peruse. Because I bet he's found things you didn't know about.

I've been posting them at the rate of about one a week. Here are the first five.

1. Using COMSTAR and ZFS to Configure a Virtualized Storage Environment

by Alexandre Borges

How to configure the Common Multiprotocol SCSI TARget (COMSTAR) capability in Oracle Solaris 11 to provide local iSCSI storage to Windows, Linux, and Mac clients.

2. Playing with Swap Space in ZFS Volumes

by Alexandre Borges

Alexandre walks through several ZFS commands that control and monitor swap space, describes the insight they provide, and explains how to use them to increase or decrease swap space.

3. Playing with ZFS Shadow Migration

by Alexandre Borges

If you need to migrate data from a server running Oracle Solaris 10 or 11 to one running Oracle Solaris 11.1, use Shadow Migration. It's easy, and allows you to migrate shared ZFS, UFS, or VxFS (Symantec) file systems through NFS or even through a local file system. Alexandre shows how.

4. Delegating a ZFS Dataset to a Non-Global Zone

by Alexandre Borges

Adding a dataset to a non-global zone does not give the non-global zone's administrator control over the dataset's properties. They are retained by the global zone's administrator. Delegating a dataset, however, does give the non-global zone's administrator control over the dataset's properties. Alexandre explains the difference and how to perform the delegation.

5. Playing with ZFS Encryption

by Alexandre Borges

Oracle Solaris 11 supports native encryption on ZFS so that it can protect critical data without depending on external programs. It's also integrated with the Cryptographic Framework. Alexandre explains the benefits of these and other Oracle Solaris encryption capabilities, and the different methods for encrypting and decrypting files, file systems, and pools.

About the Photograph

In late June I rode from the South Entrance to Yellowstone National Park in heavy rain. When I stopped at the grill for a burger, I inadvertently shocked the good patrons by wringing water out of my neck warmer, sweater, and t-shirt directly onto the stone floor in the cafeteria. When I'm on a long ride it takes me a moment to remember the finer points of civilized behavior. When the clouds temporarily cleared, I took this picture of Yellowstone Falls from Uncle Tom's trail.

- Rick
Follow Rick on:
Personal Blog | Personal Twitter
  Follow OTN Garage on:
Web | Facebook | Twitter | YouTube

Friday Jul 11, 2014

What Can You Do With Data Link Multipathing (DLMP)?

When I first learned about high availability, it was something you provided by creating one or more copies of the operating environment on separate servers. Sometimes on different continents. If the server in Canada failed, the server in Ireland would take over.

Then I found out about Real Application Clusters. Wait, I asked myself, weren't applications invented for the sole purpose of field-testing the OS? Why do test programs need high availability? Haven't these people heard of Oracle Solaris Cluster?

Well, to my great disappointment there are plenty of different approaches to high availability. Just like there are plenty of different approaches to virtualization. And, as you might imagine, you can combine the two.

For instance, if you're going to build a cloud infrastructure using the virtualization capabilities in Oracle Solaris 11, you might as well allocate your network resources to the virtualized environment, as well. And so, you'd probably find yourself creating virtual switches, routers, cards, and what not. Well, what happens if all those virtual networks, which are really just one physical network, go down?

Bjoern Rost, Oracle ACE, provides a nice explanation of a Solaris feature that didn't get a lot of attention when it was released: Data Link Multipathing (DLMP) and DLMP aggregation. DLMP aggregation allows you to combine virtual network interfaces from different physical network interfaces into high availability clusters. You can also use these clusters to improve load balancing, as Bjoern explains in his blog post.

Orgad likes DLMP, too. So much, in fact, that he took a break from reconfiguring the International Space Station so his kids could control it from their XBox, and wrote an article explaining how to apply DLMP to a virtual network. Two articles, in fact.

Tech Article: Using DLMP to Add High Availability to Your Network in Oracle Solaris 11.1

by Orgad Kimchi

How to combine virtual NICs from different physical NICS into a DLMP aggregation assigned to a zone, and configure the aggregation to provide failover for the zone, using Oracle Solaris 11.

Tech Article: Doing More with DLMP

by Orgad Kimchi

You can give an Oracle Solaris 11 zone exclusive access to a physical NIC. Although that approach can ensure that particular zone has full access the entire bandwidth of the NIC, it does leave NIC and the entire network exposed to security breaches. Unless you use DLMP's Link Protection capability. Orgad explains how to do that, as well as enabling resource management for your Oracle Solaris 11 virtual network, improving the availability of an NFS server, and more.

About the Photograph

Lou Ordorica and I took off early a few weeks ago to get in some twisties before the crowds showed up. We stopped at The Last Shot on the Peak to Peak highway to grab a late breakfast/early lunch. While we were there a few more bikes showed up.

- Rick
Follow Rick on:
Personal Blog | Personal Twitter
  Follow OTN Garage on:
Web | Facebook | Twitter | YouTube

Friday Jun 13, 2014

Insights into Swap Space on Oracle Solaris 11

What I enjoy about the articles that Oracle ACE Alexandre Borges writes is the insights he provides. For example:

swaplo indicates the minimum possible swap space size, which represents the memory page size (8 sectors x 512 bytes = 4K). To check it:
root@solaris11-1:~# pagesize
A value of 4K is typically found on Intel machines. However, with Oracle Solaris 11 on SPARC machines, the page size can vary from 16K to 2 GB (this upper limit also applies for Intel processors). The upper limit of swap space is mainly used as the page size for the System Global Area (SGA)—a dedicated shared-memory area for an instance of Oracle Database 11g. Additionally, it is worth noting that 2 GB pages are supported with Oracle Solaris 10 8/11 or later Oracle Solaris releases and Oracle's SPARC T4 processor, but this page size isn't enabled by default. If it's suitable for some applications, we have to enable it by inserting set max_uheap_lpsize=0x80000000 in the /etc/system file and then rebooting the system.

Alexandre not only loves working with Oracle Solaris, he takes the trouble to explain its nuances. He's written a series of articles on his experience with Oracle Solaris. This is the second one:

Tech Article: Playing with Swap Monitoring and Increasing Swap Space Using ZFS Volumes in Oracle Solaris 11

by Alexandre Borges

Alexandre walks through several commands and the insight they provide into a system's swap space, and explains how to use them to increase or decrease it.

Stay tuned for more articles from Alexandre in the coming weeks.

About the Photograph

Photograph of 01 Ducati 748 vertical cylinder piston and rings taken by Rick Ramsey in Colorado

- Rick

Follow Alexandre on:
His Blog | Twitter
  Follow OTN on:
Web | Facebook | Twitter | YouTube

Friday May 16, 2014

Orgad Strikes Again

"And while you're at it, use the Unified Archive to deploy a cloud in a box."

Orgad is too smart. Or maybe, he does what Einstein claims to do:

"It's not that I'm so smart, it's just that I stay with problems longer."
- Albert Einstein

How to Set Up a Hadoop 2.2 Cluster on Oracle Solaris 11.2

Technical Article by Orgad Kimchi

Figuring out how to set up a Hadoop 2.2 Cluster helps keep Orgad challenged on those late nights when, after a few too many shots of Joov, he strikes up a casual game of chess with Deep Blue. As he explains,

"Setting up a Hadoop cluster on Oracle Solaris 11.2 gives you fast provisioning via zone cloning, best I/O performance from ZFS compression, and rapid provisioning with the Unified Archive."

But setting up a Hadoop cluster and configuring its failover capabilities (yawn) is just not enough to keep Orgad interested. Nope. To stay awake he has to toss in a neat little trick at the end of his article: how to use the Unified Archive in Oracle Solaris 11.2 to create a cloud-in-a-box that you can deploy in a variety of environments.

I don't know what Orgad does between midnight and 2:00 am, but in case you want to take a guess, here are more gems from Orgad:

About the Photograph

Photograph of plant killed by Mrs. Ramsey taken by Rick Ramsey in Colorado

- Rick
Follow Rick on:
Personal Blog | Personal Twitter
  Follow OTN Garage on:
Web | Facebook | Twitter | YouTube

Tuesday May 06, 2014

Replay of Solaris Labs From OTN Virtual Sysadmin Day

Missed OTN's last Virtual Sysadmin Day? That's OK, so did the majority of Earth's 7 billion inhabitants. A stalwart 400 did manage to pull themselves away from The Daily Grind and attend in person. To accommodate the remaining 7 billion slackers, I published videos of the Solaris hands-on labs. I'll do the same for the Oracle Linux and Virtualization sessions over the next few days.

Lab Intro - How Oracle Solaris 11 Simplifies the Life of a Sysadmin

Typical tasks and challenges in a sysadmin's work and how Oracle Solaris 11 simplifies them. Managing software packages, updating systems, managing users, monitoring system performance and diagnosing problems, assessing, assigning and redistributing system resources according to workload patterns. Which Oracle Solaris 11 features can help. Examples and best practices. Exercises that model everyday situations.

Lab 1: Managing the Software Lifecycle with Oracle Solaris 11

Tricks to help you to manage software packages installed on your systems. Most organizations have separate environments for development, test, QA and production applications. How can you make sure the right versions of software packages are installed in each of them, and avoid inconsistencies? How can you configure your production systems to avoid accidental updates? How should you integrate your software packages with SMF services? These and many other questions will be answered by using practical hands-on examples.

Lab 2: Managing Your Data with ZFS in Oracle Solaris 11

ZFS has been a round a long time, but it has so many new capabilities to explore that you might still have a lot of questions. For instance, how do I create a ZFS file system that will have a guaranteed amount of available space, instead of sharing it with other file systems in a pool? What are the best practices for backing up ZFS file systems? How can I use ZFS encryption? Can I create a raw block device on ZFS and why do I need it? These and many other questions will be answered by using practical hands-on examples.

Lab 3: Managing Virtual Environments in Oracle Solaris 11

What are the best ways to create and manage zones? How should I use Solaris virtual networking to separate traffic from different applications? How can I monitor and manage system resources assigned to zones? How should I protect my zones from malicious users? How can I migrate zones between hosts? These and many other questions will be answered with practical hands-on examples.

About the Photograph

Photo of Las Vegas skyline taken by Rick Ramsey at Collaborate 2014

- Rick
Follow Rick on:
Personal Blog | Personal Twitter
  Follow OTN on:
Web | Facebook | Twitter | YouTube

Tuesday Apr 29, 2014

How Easy Is It To Run OpenStack on Oracle Solaris 11.2?

Three resources to help you see how easy it is to create, provision, and manage an internal cloud using OpenStack on Oracle Solaris 11.2.

Sofia, Where's My Cloud?

An OTN Home Movie

7-year old Sofia installs a cloud using OpenStack running on Oracle Solaris 11.2 and shows her clueless Daddy how to manage it using the OpenStack Dashboard.

OpenStack Dashboard Walkthrough - The Admin Panel

An OTN Tech Demo

David Comay, Solaris engineer, shows you how to use the Admin panel in the OpenStack Dashboard, including how to define the types of virtual machines and software images a user can create, and how to give them networking capabilities.

OpenStack Dashboard Walkthrough - The Project Panel

An OTN Tech Demo

David Comay, Solaris engineer, shows you how to use the Project panel in the OpenStack dashboard, including how to create an instance of a virtual compute and storage resource, how to associate it with a network, how to view its topology, and more.

Stay tuned in the coming days for more video interviews of the Solaris engineers that developed this and other technologies in Oracle Solaris 11.

About the Photograph

Photograph of fountain at Oracle's Santa Clara campus taken by Rick Ramsey, April 2014.

- Rick

Follow me on:
Web | Blog | Facebook | Twitter | YouTube

Tuesday Mar 18, 2014

Configuring COMSTAR to Provide Local iSCSI Storage

Oracle Solaris 11 introduced two storage capabilities that I wasn't aware of until Oracle ACE Alexandre Borges brought them to my attention.

A Solaris 11 system can serve as an iSCSI target that offers storage to other machines, or as an iSCSI initiator to access the storage offered by another iSCSI target. This capability is a real advantage, because any storage offered through the iSCSI protocol is available to an iSCSI initiator as local storage, without the need to use expensive technologies such as Fibre Channel (FC).

Solaris provides this service through a framework named Common Multiprotocol SCSI TARget (COMSTAR). Alexandre Borges shows you how to use it:

Tech Article: Using COMSTAR and ZFS to Configure a Virtualized Storage Environment

How to use COMSTAR to provide local iSCSI storage for any service that runs in Windows, Linux, or Mac OS. It also shows you how to configure authentication using the Challenge Handshake Authentication Protocol (CHAP) to secure the iSCSI storage against forbidden access. Part 1 of a series about ZFS.

About Alexandre Borges

Alexandre Borges is an Oracle ACE who worked as an employee and contracted instructor at Sun Microsystems from 2001 to 2010 teaching Oracle Solaris, Oracle Solaris Cluster, Oracle Solaris security, Java EE, Sun hardware, and MySQL courses. Nowadays, he teaches classes for Symantec, Oracle partners, and EC-Council, and he teaches several very specialized classes about information security. In addition, he is a regular writer and columnist at Linux Magazine Brazil.

More content from Alexandre:

Exploring Installation Options and User Roles in Oracle Solaris 11

Part 1 of a two-part series that describes how Alexandre installed Oracle Solaris 11 and explored its new packaging system and the way it handles roles, networking, and services. This article focuses first on exploring Oracle Solaris 11 without the need to install it, and then actually installing it on your system.

Exploring Networking, Services, and the New Image Packaging System in Oracle Solaris 11

Alexandre walks you through the new way Oracle Solaris 11 manages networking, services, and packages, compared to the way it managed them in Solaris 10.

Articles in Linux Brazil Magazine (Portuguese)

Columns in Linux Brazil Magazine (Portuguese)

More About ZFS and COMSTAR

About the Photograph

Photograph of San Rafael Swell taken in Utah by Rick Ramsey on the way to Java One.

- Rick

Follow me on:
Blog | Facebook | Twitter | YouTube | The Great Peruvian Novel

Wednesday Mar 05, 2014

Preserving Unpacked Software During a Package Uninstall

I love it when I can wriggle out of the unintended side effects created by an automated system designed to simplify my life.

Here's a side effect created by the very good Image Packaging System (IPS) in our beloved Oracle Solaris 11. If you use the IPS to uninstall all packaged content from a directory, it also removes the directory. Not good if you also kinda sorta loaded unpackaged content into that directory.

For instance, let's say you worked with a third-party IPS package that installed its software into /usr/local. After a pause to polish the chrome on your custom Softail Deluxe, you install a second application into /usr/local from a tar file. What happens to that second application when you use IPS to remove the third-party IPS package from the /usr/local directory? Yup. IPS dumps the directory on the asphalt and high-sides the unpackaged content all the way to /var/pkg/lost+found.

Thank goodness somebody watches out for those of us who don't follow directions. Alta Elstad, from the Solaris Documentation Team at Oracle, is one of them. Here's how she suggests you avoid this problem.

How to Preserve the Directory

To prevent the packaged directory from being removed along with its content, package the directory separately. Create an IPS package that delivers only the one directory or directory structure that you want. Then that directory structure will remain in place until you uninstall that specific package. Uninstalling a different package that delivers content to that directory will not remove the directory.

Here's a detailed example.

  1. Create the directory structure you want to deliver. This example shows /usr/local. You could easily expand this to include /usr/local/bin and other subdirectories if necessary.
    $ mkdir -p usrlocal/usr/local
  2. Create the initial package manifest.
    $ pkgsend generate usrlocal | pkgfmt > usrlocal.p5m.1
    $ cat usrlocal.p5m.1
    dir path=usr owner=root group=bin mode=0755
    dir path=usr/local owner=root group=bin mode=0755
  3. Create a pkgmogrify input file to add metadata and to exclude delivering /usr since that directory is already delivered by Oracle Solaris. You might also want to add transforms to change directory ownership or permissions.
    $ cat usrlocal.mog
    set name=pkg.fmri value=pkg://site/usrlocal@1.0
    set name=pkg.summary value="Create the /usr/local directory."
    set name=pkg.description value="This package installs the /usr/local \
    directory so that /usr/local remains available for unpackaged files."
    set name=variant.arch value=$(ARCH)
    <transform dir path=usr$->drop>
  4. Apply the changes to the initial manifest.
    $ pkgmogrify -DARCH=`uname -p` usrlocal.p5m.1 usrlocal.mog | 
      pkgfmt > usrlocal.p5m.2
    $ cat usrlocal.p5m.2
    set name=pkg.fmri value=pkg://site/usrlocal@1.0
    set name=pkg.summary value="Create the /usr/local directory."
    set name=pkg.description value="This package installs the /usr/local \
    directory so that /usr/local remains available for unpackaged files."
    set name=variant.arch value=$(ARCH)
    <transform dir path=usr$->drop> 
  5. Check your work.
    $ pkglint usrlocal.p5m.2
    Lint engine setup...
    Starting lint run...
  6. Publish the package to your repository.
    $ pkgsend -s yourlocalrepo publish -d usrlocal usrlocal.p5m.2
  7. Make sure you can see the new package that you want to install.
    $ pkg refresh site
    $ pkg list -a usrlocal
    usrlocal (site)       1.0          --- 
  8. Install the package.
    $ pkg install -v usrlocal
               Packages to install:         1
         Estimated space available:  20.66 GB
    Estimated space to be consumed: 454.42 MB
           Create boot environment:        No
    Create backup boot environment:        No
              Rebuild boot archive:        No
    Changed packages:
        None -> 1.0,5.11:20140303T180555Z
    PHASE                                          ITEMS
    Installing new actions                           5/5
    Updating package state database                 Done
    Updating package cache                           0/0
    Updating image state                            Done
    Creating fast lookup database                   Done
    Reading search index                            Done
    Updating search index                            1/1
  9. Make sure the package is installed.
    $ pkg list usrlocal
    usrlocal (site)       1.0          i-- 
    $ pkg info usrlocal
              Name: usrlocal
           Summary: Create the /usr/local directory.
       Description: This package installs the /usr/local directory so that
                    /usr/local remains available for unpackaged files.
             State: Installed
         Publisher: site
           Version: 1.0
     Build Release: 5.11
            Branch: None
    Packaging Date: March  3, 2014 06:05:55 PM
              Size: 0.00 B
              FMRI: pkg://site/usrlocal@1.0,5.11:20140303T180555Z
    $ ls -ld /usr/local
    drwxr-xr-x   2 root     bin            2 Mar  3 10:17 /usr/local/

For More Information

About the Photograph

Photograph of Vancouver's laughing statues courtesy of BMK via Wikipedia Commons Creative Commons License 2.0

- Rick

Follow me on:
Blog | Facebook | Twitter | YouTube | The Great Peruvian Novel


Logan Rosenstein
and members of the OTN community


« November 2015
Blogs We Like