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.

Rick
Follow Orgad Kimchi:
Twitter
  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 (10.0.0.10):
  8. root@user-zone:~# ipadm create-addr -a local=10.0.0.10/24 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
4096
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
    pkg://site/usrlocal@1.0,5.11:20140303T180555Z
    PUBLISHED
    
    
    
  7. Make sure you can see the new package that you want to install.
    $ pkg refresh site
    $ pkg list -a usrlocal
    NAME (PUBLISHER)      VERSION      IFO
    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:
    site
      usrlocal
        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
    NAME (PUBLISHER)      VERSION      IFO
    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

Wednesday Feb 26, 2014

Oracle Solaris 11 Resources for the AIX Sysadmin

Start buttons belong on Tiger Wood's golf cart. Give me car keys that jangle when I insert them into a 1968 Dodge Charger. The music that engine makes ... it enters your body through your soul before your ear drums even register the vibration. And give me Save buttons on browser-based interfaces, too. This amorphous invisible background save that I'm supposed to trust is happening is the brainchild of developers who put posters of Joseph Stalin on their walls.

In spite of my Luddite tendencies, I do like new technologies. I also like a variety of them. If you ask my personal opinion, the more operating systems, the better. More jobs for sysadmins. More jobs for developers. More arm-wrestling matches in the server room. And more interesting problems. That's my idea of fun.

Unfortunately, it's not The Man's idea of fun. Forces I can't possibly understand and would never take for a joy ride in a stolen Dodge Charger push for consolidation and cost-cutting with the frenzy of a four barrel carburetor sucking air at wide open throttle (WOT). Even if, like me, you prefer a more genteel IT environment, you have to adapt. And so, we sometimes wave good-bye to our friends.

If you're facing a migration away from AIX, consider Oracle Solaris. Yeah, it's designed to handle the competitive pressures of today's IT environments...

  • Cloud-ready provisioning, security, and virtualization
  • Quick to reallocate compute, storage, and network resources
  • Zones, ZFS, Dynamic Tracing, Predictive Self Healing and Trusted Extensions reduce downtime and simplify the application deployment
  • Optimized to run on Oracle hardware, and to run Oracle applications
  • Automated migration tools plus assistance and education for DBAs and Power/AIX administrators migrating to Oracle Solaris.

... and yeah, because the Oracle stack is optimized to run best on Oracle Solaris (and Oracle Linux), it gives you some crazy good numbers compared to AIX ...

  • Up to 2.4x greater database performance
  • Up to 3.4x faster Java application server performance
  • Increased Oracle application performance : 1.9x faster for Siebel CRM (4) and 3x faster for JD Edwards

... but it's also got soul. And it doesn't have a dumb Start button.

Below is a link to a hands-on lab and some other resources to help you understand what's involved in migrating from AIX to Oracle Solaris.

Hands-On Lab: Oracle Solaris Administration for AIX Sysadmins

by Glynn Foster

Walks an AIX sysadmin through the basic administration of Oracle Solaris 11 and how it compares to IBM AIX Enterprise in areas including installation, software packaging, file systems, user management, services, networking, and virtualization. Even makes helps you navigate your way through documentation, man pages, and online how-to articles.

More Resources

About the Photograph

Photograph of '68 Dodge Charger courtesy of Kobac via Wikipedia Commons Creative Commons License 2.0

- Rick

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

Thursday Feb 13, 2014

Getting Your Hands Dirty with Load Balancing

What Does the Integrated Load Balancer Do?

According to the Oracle Solaris 11 documentation, the Integrated Load Balancer (ILB) intercepts incoming requests from clients, decides which back-end server should handle the request based on load-balancing rules, and then forwards the request to that server. By spreading one server's work load across multiple servers, ILB improves reliability, minimizes response time, and improves performance of the server.

The documentation describes features, components, how it works, and even the command line interface. The docs help you understand what your load balancing toolset is, but if you want to get your hands dirty, try this:

Hands-On Lab - Deploying the Integrated Load Balancer in 60 Minutes

by Amir Javanshir

This is a cool lab because it walks you through the steps that set up an environment that enables you to play with the load balancer. The steps consist more or less of:

  • Installing Solaris
  • Setting up the virtual switches and their VNICs
  • Configuring the zone for the load balancer, including its access to the VNICs
  • Cloning that zone into three other zones
  • Configuring each cloned zone to run Apache Tomcat
  • Installing the load balancer on the first zone

Once the environments are set up, the lab walks you through several exercises to help you become familiar with the different ways in with the load balancer monitors and manages traffic. This lab is a whole lot of fun.

More Hands-On Labs for Oracle Solaris 11

You can find all the hands-on labs for Oracle Solaris 11 here:

All Hands-On Labs for Oracle Solaris 11

- Rick

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

Monday Dec 16, 2013

Why I'm Going Straight to Hell

Article: Performance Analysis in a Multitenant Cloud Environment

by Orgad Kimchi

My little brother and I used to drive our Sainted Mother mad with this game at bed time. We'd wait till she was stressed out, then throw something big, like a softball, against the wall. Being a worry-wart, she'd come into the room to find out which one of us had fallen out of his bed and broken his arm. We both pretended to be fast asleep, of course, and had already recovered the soft ball.

Perplexed, she would return to the kitchen. A short while later, we would throw the bat against the wall. After the initial boom against the sheetrock, it would clatter on the ground, making a sound similar to a mother's precious child cracking his skull on the cement steps in front of the house. Quickly one of us would recover it, tuck it under the sheets, and then we'd both return to our previous sleeping positions.

Little did we know, as we pushed our mother closer to the edge of Insanity, that our techniques would be adopted by virtualized environments the world over. As Orgad explains in the article above, as each virtualization product abstracts computing resources for isolation or other purposes, it creates a little brother. If something goes boom in the night or, if your environment starts hanging, how do you figure out where the problem is?

It's a super article, and well worth your time. If Mom had read it, we would have woken up inside an anthill, with only our heads sticking out so she could listen to our screams while she sipped a cup of Darjeeling.

Article: Performance Analysis in a Multitenant Cloud Environment

Performance analysis in a virtualized multitenant cloud environment is difficult because of the abstraction layers. How do you find the physical system resources that are overloaded? Orgad Kimchi explores four examples that show how you how with the built-in Oracle Solaris 11 tools.

Other Content By Or About Orgad

- Rick

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

Tuesday Dec 03, 2013

Life Could Be A Dream (Hadoop Hadoop)

Hey nonny ding dong, alang alang alang
Boom ba-doh, ba-doo ba-doodle-ay

Oh, life could be a dream (hadoop)
If I could take you up in paradise up above (hadoop)
If you would tell me I'm the only one that you love
Life could be a dream, sweetheart
(Hello, hello again, hadoop and hopin' we'll meet again)

Tech Article: How to Set Up a Hadoop Cluster Using Oracle Solaris Zones

by Orgad Kimchi

Apache Hadoop helps you process large amounts of data on multiple computers that are clustered together. Oracle Solaris zones are easy to clone and manage as a cluster. Oracle Solaris 11 has great network virtualization capabilities. Orgad walks you through all the steps required to combine these three technologies into an easy to manage big data cluster.

Blog: How to Host a Hadoop Cluster on a SPARC T4-2 Server

by Jeff Taylor

After reading Orgad's paper (see above), Jeff Taylor decided to give Orgad's suggestion a try. He had to configure an Oracle SPARC T4-2 server to store and process two types of data. One type was critical and sensitive data that required ACID transactions and had to be stored in an Oracle Database. The other was high-volume/low-risk data that had to be processed using Apache Hadoop and stored in HDFS. In this blog post he details how he used Oracle Solaris zones.

Video Interview: Why Run Hadoop on Oracle Solaris?

with Orgad Kimchi

Orgad Kimchi provides three technical reasons why you should run Hadoop on Oracle Solaris. Taped at Oracle OpenWorld.

Lyrics to Hadoop Hadoop

by the Crew Cuts

Hey nonny ding dong, alang alang alang
Boom ba-doh, ba-doo ba-doodle-ay

Oh, life could be a dream (ha-doop)
If I could take you up in paradise up above (ha-doop)
If you would tell me I'm the only one that you love
Life could be a dream, sweetheart
(Hello, hello again, ha-doop and hopin' we'll meet again)

Oh, life could be a dream (ha-doop)
If only all my precious plans would come true (ha-doop)
If you would let me spend my whole life lovin' you
Life could be a dream, sweetheart

Now every time I look at you
Something is on my mind (dat-dat-dat-dat-dat-duh)
If you do what I want you to
Baby, we'd be so fine!

Oh, life could be a dream (ha-doop)
If I could take you up in paradise up above (ha-doop)
If you would tell me I'm the only one that you love
Life could be a dream, sweetheart

Ha-doop ha-doop Ya-da-da Da-da-da Da-da-da Da
Ha-doop ha-doop Ya-da-da Da-da-da Da-da-da Da
Ha-doop ha-doop Ya-da-da Da-da-da Da-da-da Da, ha-doop!

Ha-doop ha-doop Ya-da-da Da-da-da Da-da-da Da
Ha-doop ha-doop Ya-da-da Da-da-da Da-da-da Da
Ha-doop ha-doop Ya-da-da Da-da-da Da-da-da Da, ha-doop!

Every time I look at you
Somethin' is on my mind
If you do what I want you to
Baby, we'd be so fine!

Life could be a dream
If I could take you up in paradise up above
If you would tell me I'm the only one that you love
Life could be a dream, sweetheart
(Hello hello again, ha-doop and hopin' we'll meet again) doop ha-doop

Hey nonny ding dong, alang alang alang (ha-doop)
Ba-doh, ba-doo ba-doodle-ay
Life could be a dream
Life could be a dream, sweetheart!

Life could be a dream
If only all my precious plans would come true
If you would let me spend my whole life loving you
Life could be a dream, sweetheart

(dee-oody-ooh, ha-doop, ha-doop)
(dee-oody-ooh, ha-doop, ha-doop)
(dee-oody-ooh, ha-doop, ha-doop)
Sweetheart!!

See the Crew Cuts on YouTube

- Rick

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

Thursday Nov 21, 2013

How to Limit Upgrades Beyond a Prescribed Version of Oracle Solaris

by Bart Smaalders and Alta Elstad

The Oracle Solaris 11 Image Packaging System (IPS) provides various methods to control the operating system version to which a server can be upgraded. One method is to provide a custom incorporation package.

An incorporation package specifies the versions of other packages that can be installed. An incorporation package ensures that if you install an incorporate dependency package of that incorporation package, only the prescribed version of the dependent package can be installed. You can create your own custom incorporation package to specify the constraints you want. Using a custom incorporation to control the version of software that can be installed enables you to easily maintain different versions of Oracle Solaris on different machines without maintaining multiple package repositories. Each image can install a different version of the custom upgrade control incorporation package. All systems share the same package repository that contains all versions of software needed by any of the systems.

In the example in this article, a system has been newly installed with Oracle Solaris 11.1. The solaris publisher origin is the Oracle Solaris support repository, which includes many updates since Oracle Solaris 11.1 was released. The IT department in the example company has not yet qualified the most current support updates, and they want to limit administrators to upgrading to only the latest update that is qualified for their environments, not the latest update that is available from the package repository.

Create a Custom Incorporation Package

The versions of core operating system packages that can be installed in an image are controlled by the pkg:/entire incorporation package. To control system upgrades, create a package that specifies a particular version of the pkg:/entire package as an incorporate dependency.

The following example shows a manifest named upgradectrl.p5m for a custom incorporation package that controls the version of the pkg:/entire package that can be installed. Some of the settings in this manifest are described below.

set name=pkg.fmri value=upgradectrl@1.0
set name=pkg.summary value="Incorporation to constrain the version of the OS"
set name=pkg.description value="This package controls the version of \
pkg://solaris/entire that can be installed."
set name=info.classification value="org.opensolaris.category.2008:Meta Packages/Incorporations"
set name=pkg.depend.install-hold value=core-os
set name=variant.opensolaris.zone value=global value=nonglobal
set name=variant.arch value=sparc value=i386
depend fmri=feature/package/dependency/self type=parent variant.opensolaris.zone=nonglobal
depend fmri=pkg://solaris/entire type=require
depend fmri=pkg://solaris/entire@0.5.11,5.11-0.175.1.0 type=incorporate
  • pkg.depend.install-hold This setting ensures that if a user updates the upgradectrl package, the pkg:/entire package is automatically updated as well.

  • variant.opensolaris.zone This setting enables this package to be installed in both global and non-global zones. See also the description of the parent dependency.

  • variant.arch This setting enables this package to be installed on both SPARC and x86 systems.

  • parent dependency This package can be installed in a non-global zone only if it is already installed in the global zone.

  • require dependency The upgradectrl package can be installed only if the pkg://solaris/entire package is already installed or can be installed in this same operation.

  • incorporate dependency The pkg://solaris/entire package must be installed at the specified version. More than one version can satisfy an incorporate dependency, depending on how many places of accuracy are specified. In this example, 0.175.1.0 specifies Oracle Solaris 11.1 SRU 0. This upgrade control package will keep systems at the newly installed Oracle Solaris 11.1 version, no support updates. This upgrade control package will, however, allow packages that are not contrained by the pkg:/entire incorporation to be updated.

Publish the upgradectrl package to a local file-based repository. This repository is for developing and testing this new package. If you create a repository for general use, you should include additional steps such as creating a separate file system for the repository. For information about creating package repositories for general use, see Copying and Creating Package Repositories in Oracle Solaris 11.2.

Create a package development repository on your system. See the pkgrepo(1) man page for more information about the pkgrepo command.

$ pkgrepo create myrepo

Set the default publisher for this repository. The default publisher is the value of the publisher/prefix property of the repository.

$ pkgrepo -s myrepo set publisher/prefix=site

Publish the upgradectrl package to the development repository.

$ pkgsend -s myrepo publish upgradectrl.p5m
pkg://site/upgradectrl@1.0,5.11:20131120T010105Z
PUBLISHED

Notice that the repository default publisher has been applied to the package FMRI.

Examine the repository to confirm that the package was published.

$ pkgrepo -s myrepo list
PUBLISHER NAME                                       O VERSION
site      upgradectrl                                  1.0,5.11:20131120T010105Z
$ pkg list -vg myrepo
FMRI                                                                         IFO
pkg://site/upgradectrl@1.0,5.11:20131120T010105Z                             ---

Deliver the package to a local repository in a separate ZFS file system in a shared location.

$ pkgrecv -s myrepo -d /export/IPSpkgrepos/Solaris upgradectrl
Processing packages for publisher site ...
Retrieving and evaluating 1 package(s)...
PROCESS                                         ITEMS    GET (MB)   SEND (MB)
Completed                                         1/1     0.0/0.0     0.0/0.0

Verify the package in the repository and the version of pkg:/entire that it incorporates.

$ pkg info -g /export/IPSpkgrepos/Solaris upgradectrl
          Name: upgradectrl
       Summary: Incorporation to constrain the version of the OS
   Description: This package controls the version of pkg://solaris/entire that
                can be installed.
      Category: Meta Packages/Incorporations
         State: Not installed
     Publisher: site
       Version: 1.0
 Build Release: 5.11
        Branch: None
Packaging Date: November 20, 2013 01:01:05 AM 
          Size: 0.00 B
          FMRI: pkg://site/upgradectrl@1.0,5.11:20131120T010105Z
$ pkg contents -Hro fmri -t depend -a type=incorporate upgradectrl
pkg://solaris/entire@0.5.11,5.11-0.175.1.0

See “Creating and Publishing a Package” in Packaging and Delivering Software With the Image Packaging System in Oracle Solaris 11.2 for more detailed information about creating and delivering IPS packages.

Set the origin for the site publisher.

$ pkg set-publisher -g /export/IPSpkgrepos/Solaris site
$ pkg publisher
PUBLISHER              TYPE     STATUS P LOCATION
solaris                origin   online F https://pkg.oracle.com/solaris/support/
site                   origin   online F file:///export/IPSpkgrepos/Solaris/

Install the Upgrade Control Package

Install the upgrade control package. In this case, few changes should be made because the installed version of pkg:/entire is the same as the version incorporated by the upgrade control package.

$ pkg list -v entire
FMRI                                                                         IFO
pkg://solaris/entire@0.5.11,5.11-0.175.1.0.0.24.2:20120919T190135Z           i--
$ zoneadm list
global
z1
$ pkg install upgradectrl
           Packages to install:  1
       Create boot environment: No
Create backup boot environment: No

Planning linked: 0/1 done; 1 working: zone:z1
Planning linked: 1/1 done
Downloading linked: 0/1 done; 1 working: zone:z1
Downloading linked: 1/1 done
PHASE                                          ITEMS
Installing new actions                           9/9
Updating package state database                 Done 
Updating image state                            Done 
Creating fast lookup database                   Done 
Reading search index                            Done 
Updating search index                            1/1 
Executing linked: 0/1 done; 1 working: zone:z1
Executing linked: 1/1 done

The following commands show that versions of pkg:/entire that are newer than the installed version are available from the configured solaris publisher, but an attempt to upgrade is controlled by the newly-installed upgrade control package.

$ pkg list -af entire
NAME (PUBLISHER)                                  VERSION                    IFO
entire                                            0.5.11-0.175.1.13.0.6.0    ---
entire                                            0.5.11-0.175.1.12.0.5.0    ---
entire                                            0.5.11-0.175.1.11.0.4.0    ---
entire                                            0.5.11-0.175.1.10.0.6.0    ---
entire                                            0.5.11-0.175.1.10.0.5.0    ---
...
$ pkg update
pkg update: No solution was found to satisfy constraints
Plan Creation: Package solver has not found a solution to update to latest available versions.
This may indicate an overly constrained set of packages are installed.
latest incorporations:
...
Try specifying expected results to obtain more detailed error messages.
$ pkg update -nv entire@0.5.11-0.175.1.13.0.6.0
pkg update: No matching version of entire can be installed:
  Reject:  pkg://solaris/entire@0.5.11,5.11-0.175.1.13.0.6.0:20131108T211557Z
  Reason:  This version is excluded by installed incorporation pkg://site/upgradectrl@1.0,5.11:20131120T010105Z

Update the Upgrade Control Package

When you are ready to allow users to upgrade their systems to a new version, update the upgradectrl.p5m manifest, and republish and redeliver the new upgrade control package. In the following manifest, the version of the upgrade control package and the version of the pkg:/entire incorporation are updated. As an aid for users, the version of the upgrade control package matches the updated version of the pkg:/entire package.

set name=pkg.fmri value=upgradectrl@1.10
set name=pkg.summary value="Incorporation to constrain the version of the OS"
set name=pkg.description value="This package controls the version of \
pkg://solaris/entire that can be installed."
set name=info.classification value="org.opensolaris.category.2008:Meta Packages/Incorporations"
set name=pkg.depend.install-hold value=core-os
set name=variant.opensolaris.zone value=global value=nonglobal
set name=variant.arch value=sparc value=i386
depend fmri=feature/package/dependency/self type=parent variant.opensolaris.zone=nonglobal
depend fmri=pkg://solaris/entire type=require
depend fmri=pkg://solaris/entire@0.5.11,5.11-0.175.1.10 type=incorporate

The following commands republish and redeliver the upgrade control package:

$ pkgsend -s myrepo publish upgradectrl.p5m
pkg://site/upgradectrl@1.10,5.11:20131120T021902Z
PUBLISHED
$ pkgrepo -s myrepo list
PUBLISHER NAME                                      O VERSION
site      upgradectrl                                 1.10,5.11:20131120T021902Z
site      upgradectrl                                 1.0,5.11:20131120T010105Z
$ pkgrecv -s myrepo -d /export/IPSpkgrepos/Solaris upgradectrl
Processing packages for publisher site ...
Retrieving and evaluating 1 package(s)...
PROCESS                                         ITEMS    GET (MB)   SEND (MB)
Completed                                         1/1     0.0/0.0     0.0/0.0
$ pkg refresh site
$ pkg list -af pkg://site/upgradectrl
NAME (PUBLISHER)                                  VERSION                    IFO
upgradectrl (site)                                1.10                       ---
upgradectrl (site)                                1.0                        i--

Upgrade the Image

The following pkg update command updates all packages to the newest available versions allowed because no packages are specified. The command updates to the newest available version of the upgrade control package, which upgrades the image because the pkg.depend.install-hold setting in the upgradectrl package causes the pkg:/entire package to be updated when the upgradectrl package is updated. The image is upgraded to the version of the pkg:/entire incorporation that is specified in the new upgradectrl incorporation.

$ pkg update --be-name s11u1_10
            Packages to remove:   1
            Packages to update: 186
           Mediators to change:   1
       Create boot environment: Yes
Create backup boot environment:  No

Planning linked: 0/1 done; 1 working: zone:z1
Linked image 'zone:z1' output:
|  Packages to remove:  1
| Packages to install:  3
|  Packages to update: 73
| Mediators to change:  1
|  Services to change:  3
`
Planning linked: 1/1 done
DOWNLOAD                                PKGS         FILES    XFER (MB)   SPEED
Completed                            187/187   16139/16139  507.9/507.9  562k/s

Downloading linked: 0/1 done; 1 working: zone:z1
Downloading linked: 1/1 done
PHASE                                          ITEMS
Removing old actions                       1473/1473
Installing new actions                     3451/3451
Updating modified actions                16378/16378
Updating package state database                 Done 
Updating package cache                       187/187 
Updating image state                            Done 
Creating fast lookup database                   Done 
Reading search index                            Done 
Building new search index                    851/851 
Executing linked: 0/1 done; 1 working: zone:z1
Executing linked: 1/1 done

A clone of s11u1_0 exists and has been updated and activated.
On the next boot the Boot Environment s11u1_10 will be
mounted on '/'.  Reboot when ready to switch to this updated BE.
$ pkg list entire upgradectrl
NAME (PUBLISHER)                                  VERSION                    IFO
entire                                            0.5.11-0.175.1.0.0.24.2    i--
upgradectrl (site)                                1.0                        i--
$ pkg -R /mnt list entire upgradectrl
NAME (PUBLISHER)                                  VERSION                    IFO
entire                                            0.5.11-0.175.1.10.0.6.0    i--
upgradectrl (site)                                1.10                       i--
$ beadm unmount s11u1_10

See Also

Bart Smaalders’ blog

Packaging and Delivering Software With the Image Packaging System in Oracle Solaris 11.2

Copying and Creating Package Repositories in Oracle Solaris 11.2

About the Authors

Bart Smaalders is one of the senior engineers in the Oracle Solaris Core OS group, and led development of the IPS packaging system.

Alta Elstad is a technical writer supporting Oracle Solaris 11 packaging.

photograph of strange plants copyright Beth Ramsey

Follow OTN on:
Blog | Facebook | Twitter | YouTube

Monday Nov 04, 2013

Understanding Process Scheduling in Oracle Solaris

The process scheduler in the Oracle Solaris kernel allocates CPU resources to processes. By default, the scheduler tries to give every process relatively equal access to the available CPUs. However, you might want to specify that certain processes be given more resources than others. That's where classes come in. A process class defines a scheduling policy for a set of processes. These three resources will help you understand and manage it process classes:

Blog: Overview of Process Scheduling Classes in the Oracle Solaris Kernel

by Brian Bream

Timesharing, interactive, fair-share scheduler, fixed priority, system, and real time. What are these? Scheduling classes in the Solaris kernel. Brian Bream describes them and how the kernel manages them through context switching.

Blog: Process Scheduling at the Thread Level

by Brian Bream

The Fair Share Scheduler allows you to dispatch processes not just to a particular CPU, but to CPU threads. Brian Bream explains how to use and provides examples.

Docs: Overview of the Fair Share Scheduler

by Oracle Solaris Documentation Team

This official Oracle Solaris documentation set provides the nitty-gritty details for setting up classes and managing your processes. Covers:

  • Introduction to the Scheduler
  • CPU Share Definition
  • CPU Shares and Process State
  • CPU Share Versus Utilization
  • CPU Share Examples
  • FSS Configuration
  • FSS and Processor Sets
  • Combining FSS With Other Scheduling Classes
  • Setting the Scheduling Class for the System
  • Scheduling Class on a System with Zones Installed
  • Commands Used With FSS

-Rick

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

Thursday Oct 10, 2013

Who Is Right - the Hardware or the Software?

Michael Palmeter and Renato Ribeiro enjoy a good duel. Michael represents Oracle Solaris. Renato represents SPARC servers. Watch and listen as they argue their case on two questions of interest to sysadmins. Taped at Oracle OpenWorld 2013.

What Determines Performance - The Hardware or the Software?

Michael Palmeter vs Renato Ribeiro

Is the hardware or the software more important to the performance of a system? Oracle Solaris product director Michael Palmeter goes mic-to-mic with Renato Ribeiro, Oracle SPARC Director. Taped at Oracle OpenWorld 2013.

What Kind of Scalability is Better - Horizontal or Vertical?

Renato Ribeiro vs Michael Palmeter

Is Oracle's approach to large vertically scaled servers at odds with today's trend of combining lots and lots of small, low-cost servers systems with networking to build a cloud, or is it a better approach? Michael Palmeter, Director of Solaris Product Management, and Renato Ribeiro, Director Product Management for SPARC Servers, discuss.

photo of 2005 Fat Boy taken at Little Big Horn National Monument by Rick Ramsey

- Rick

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

Monday Sep 16, 2013

Cloud Building with Oracle Solaris 11

Three resources to help you build clouds with Oracle Solaris 11

Training Class - How to Build a Private Cloud with Oracle Solaris 11

by Oracle University

This training class combines multiple enterprise level technologies to demonstrate a full cloud infrastructure deployment using SPARC technology. Learn To:

  • Plan for and deploy a private Infrastructure as a Service cloud
  • Combine various Oracle technologies into a robust cloud infrastructure
  • Practice cloud component creation and configuration tasks by performing a series of guided hands-on labs
  • Perform the critical steps associated with the configuration of cloud and related facilities.

Tech Article - How to Build a Web-Based Storage Solution Using Oracle Solaris 11.1

by Suk Kim

Have you ever wanted to build a cloud just to see if you can? Turns out it's not that difficult. Install Oracle Solaris 11.1 on your laptop via VirtualBox, set up a little ZFS storage, a little access control, and configure AjaXplorer so you and your friends can manage your files. Don't neglect to drop phrases like "Download that from the cloud I just built" into casual conversation.

Tech Article - How to Put Oracle Solaris Zones on Shared Storage for Easy Cloning

We liked this blog so much when Jeff Victor first posted it, that we turned it into a bonafide OTN tech article. You might recognize it. It's about ZOSS: zones on shared storage. Why? When you configure a zone on shared storage, you can quickly clone it on any server that uses that storage. Jeff explains how.

Bonus! - Oracle VM Templates with Oracle Solaris 11

picture of cloud taken in Colorado, copyright Rick Ramsey

- Rick

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

Tuesday Jul 09, 2013

The Case for Running Oracle Database 12c on Oracle Solaris

You may have already seen some of these individually, but here are several resources that explain why Oracle Database 12c runs so well on Oracle Solaris and SPARC.

Oracle Solaris 11 + SPARC

Interviews with experts, videos, architectural papers, technical articles, and other resources to help you understand the optimizations between the OS and hardware layers that make Oracle Solaris and SPARC such a winning combination. link

Oracle Solaris 11 + Oracle Database 12c

A deeper dive into the optimizations and capabilities of Oracle Solaris that make it such a good platform for Oracle database 12c. link

Oracle Solaris 11 + Oracle Stack

A high-level overview of the optimizations in Oracle Solaris 11 that make it an excellent platform for the entire Oracle stack. link

Article: How Oracle Solaris 11 Makes Oracle Database So Fast

A technical explanation of the optimizations that make Oracle Database run so fast on Oracle Solaris 11. Memory, critical threads, kernel acceleration, virtualization and resource management, and much more. By Ginny Henningsen. link

Screencast: Outliers

In this screencast, Jon Haslam describes how the Oracle Database and Oracle Solaris engineering teams worked together to integrate DTrace and V$ Views to provide a top-to-bottom picture of a database transaction I/O -- from storage devices, through the Oracle Solaris kernel, up to Oracle Database 12c itself. With this end-to-end view, you can easily identify I/O outliers -- transactions that are taking an unusually long time to complete -- and use this comprehensive data to identify and mitigate storage system problems that were previously extremely hard to debug. link

And Don't Forget ...

WebCast: Introducing Oracle Database 12c

Oracle prez Mark Hurd and friends will be talking about the pluggable databases capability in Oracle Database 12c’s new multitenant architecture. No, they do not let you pause a running database with a cork, unfortunately, but they do make it easy to consolidate onto the cloud. Topics covered:

  • Simplify database consolidation
  • Automatically compress and tier data
  • Improve database and application continuity
  • Redact sensitive data
  • And as an added bonus, hear Tom Kyte’s “Top 12 Features of Oracle Database 12c.”

It's on Wednesday, July 10, 2013 at 9 a.m. PT / 12 p.m. ET. link .

Blogs with Solaris-related Content

- Rick

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

Friday Jun 21, 2013

How Oracle Solaris Makes the Database Scream

Few things are as satisfying as a screaming burnout (image removed from blog). When Oracle Database engineers team up with Oracle Solaris engineers, they do a lot of them. Here are a few of the reasons why.

Article: How the OS Makes the Database Fast - Oracle Solaris

For applications that rely on Oracle Database, a high-performance operating system translates into faster transactions, better scalability to support more users, and the ability to support larger capacity databases. When deployed in virtualized environments, multiple Oracle Database servers can be consolidated on the same physical server. Ginny Henningsen describes what Oracle Solaris does to make the Oracle database run faster.

Video Interview: Why Is The OS Still Relevant?

In a world of increasing virtualization and growing interest in cloud services, why is the OS still relevant? Michael Palmeter, senior director of Oracle Solaris, explains why it's not only relevant, but essential for data centers that care about performance.

Interview: An Engineer's Perspective: Why the OS Is Still Relevant

Sysadmins are handling hundreds or perhaps thousands of VM's. What is it about Solaris that makes it such a good platform for managing those VM's? Liane Praza, senior engineer in the Solaris core engineering group provides an engineer's perspective.

Interview in the Lab: How to Get the Performance Promised by Oracle's T5 SPARC Chips

If you want your applications to run on the new SPARC T5/M5 chips, how do you make sure they use all that new performance? Don Kretsch, Senior Director of Engineering, explains.

Interview: Why Oracle Database Engineering Uses Oracle Solaris Studio

The design priorities for Oracle Solaris Studio are performance, observability, and productivity. Why this is good for ISV's and developers, and why it's so important to the Oracle database engineering team. Taped in Oct 2012.

- Rick

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

Tuesday May 28, 2013

What If I Want to Update Just Java?

Sometimes all you want to update is Java, and not your entire Oracle Solaris environment. But Java is packaged as part of the Oracle Solaris systems software, and Oracle recommends that you update all the system software at once, since it was tested together.

What can you do?

How to Update Only Java in Your Oracle Solaris Environment

by Peter Dennis and Alta Elstad

This article describes how to update one piece of software that is constrained by an incorporation without altering any other software that is constrained by that incorporation, and still end up with a supported system. This article by Peter Dennis and Alta Elstad explains how to do that. It focuses on Java, but you can use the same technique for other software.

More Information About Oracle Solaris Packaging

- Rick

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

About

Contributors:
Rick Ramsey
Kemer Thomson
and members of the OTN community

Search

Archives
« February 2015
SunMonTueWedThuFriSat
1
2
3
4
6
7
8
9
10
11
12
14
15
16
17
18
20
21
22
23
24
25
26
27
28
       
       
Today
Blogs We Like