How to Reconfigure Solaris 11 Kernel Zone Resources

Learn how to configure Solaris 11 kernel zone (container) resources.  Oracle Certified Professional Solaris 11 Administrator Mick Hosegood demonstrates the commands and best practices in this free tutorial.

This free Solaris 11 training is segmented into several separate lessons:

  1. Tutorial Agenda and Review (2:34)
    In Lesson 1, Mick sets the tutorial agenda and provides a brief review of Part 1 “Configure and Install Solaris 11 Kernel Zones”.
  2. How to Determine Current Zone Resources (2:32) (click on video below)
    In lesson 2, Mick demonstrates how to determine what the current zone resources are. You’ll learn prsinfo, prtconf, dladm, zonestat, zonecfg and more.
  3. How to Update Solaris 11 Kernel Zone Resources (7:51)
    In this lesson, Mick demonstrates changing memory, network resources and more. You’ll see zonecfg, select capped memory, set physical, verify, add anet, dladm show-link.
  4. Memory Management Tips (1:34)
    In this lesson Oracle Certified Solaris 11 Administrator Mick Hosegood provides a memory management tip related to zone configuration.

 

Date: May 24, 2016

NOTE: Some corporate firewalls will not allow videos hosted by YouTube.

Transcript

How to Determine Current Zone Resources

>> Mick:  So let’s move on and have a look. How do we know what a kernel zone currently is using in terms of resources? There are a variety of ways. First of all, from the global zone we can do zonecfg -z the name of the zone and then export, and that will print on the screen the detailed configuration that is stored in the etc zones for the particular zone. Here we can see the amount of RAM, 4 gigs and the number of CPUs, 4. Very shortly we’re going to have a look at how that can be changed.

 

[pause]

 

We can also log into the zone.

 

[pause]

 

I’m just using the z login command. And as I’m running as root on my global zone, I get in without a password.

 

My zone is called woody, as you can see and I can use the normal commands such as psrinfo and I can see I’ve got four virtual CPUs assigned and I can do things like prtconf|gref Mem and I can see that I’ve got four gigabytes of RAM installed as well.

 

By the way, I’m also going to show you how to do networks in the zone where I can do dladm show-link and I can see that we currently have one network interface running. So very shortly I’m going to add another network interface to the zone and I’m going to make some changes to the memory and the CPUs as well.

 

[pause]

 

When zones are running, you can use the zone stat command to display information about zone resources, and you would do this within the global zone. And the example there on the left-hand side is running zone stat at an interval of every five seconds. I can show you quickly, if I exit from the zone, clear the screen and then run the zonestat 5. I’ll get some zone information coming out every five seconds.

 

There are other options to zonestat. For example, I can do zonestat -z and specify specific zone. Then that gives me a bit of a clue as to the resources that are currently being consumed.

Copyright SkillBuilders.com 2017

×
Free Online Registration Required

The tutorial session you want to view requires your registering with us.

It’s fast and easy, and totally FREE.

And best of all, once you are registered, you’ll also have access to all the other 100’s of FREE Video Tutorials we offer!

 

×