Reader small image

You're reading from  Oracle Solaris 11: First Look

Product typeBook
Published inJan 2013
Reading LevelBeginner
PublisherPackt
ISBN-139781849688307
Edition1st Edition
Languages
Right arrow
Author (1)
Philip P. Brown
Philip P. Brown
author image
Philip P. Brown

Philip P. Brown was introduced to computers at the early age of 10, by a Science teacher at St. Edmund's College, Ware, UK. He was awestruck by the phenomenal power of the ZX81's 3 MHz, Z80 CPU, and 1 K of RAM, showcasing the glory of 64 x 48 monochrome block graphics! The impressionable lad promptly went out and spent his life savings to acquire one of his very own, and then spent many hours keying in small BASIC programs such as "Ark Royal", a game where you land a block pretending to be an aircraft, on a bunch of lower blocks pretending to be an aircraft carrier. Heady stuff! When birthday money allowed expanding the ZX81 to an unbelievable 16 K of RAM, he also felt the need to acquire a patch cable to allow him to actually save programs to audio cassettes. Once this was deployed to the family cassette recorder, he was not seen or heard from for many months that followed. Phil's first exposure to Sun Microsystems was at U.C. Berkeley in 1989, as part of standard computer science classwork. Students were expected to do their classwork on diskless Sun 3/50 workstations running SunOS 4.1.1. During this time, he wrote his first serious freeware program, "kdrill", which at one time was part of the official X11 distribution, and remains in some Linux distros to this day. He eventually acquired a Sun workstation for personal use (with a disk and quarter-inch tape drive) and continued his home explorations, eventually transitioning from SunOS to Solaris, around Solaris 2.5.1. The principles of the original, pre-GPL freeware licenses prevalent in 1989 inspired Phil the most. Led by their example, he has contributed to an assortment of free software projects along the way. A little-known fact is that he is responsible for "MesaGL" morphing into the modern GLX/OpenGL implementation it is known for today. At the time, MesaGL was primarily an OpenGL workalike with a separate, non-X11 API, as author Brian Paul did not believe that it could function in a speed-effective way. In 2003, Phil wrote the first GLX integration proof-of-concept code, which convinced Brian to eventually commit to true GLX extension support. In 2002, Phil created pkg-get, inspired by Debian's apt-get utility, and started off CSW packaging. This, at last, brought the era of network-installed packages to Solaris. All major public Solaris package repositories prior to Solaris 11 still use pkg-get format catalogs for their software. In reality, Phil also had an impact on the existence of Solaris itself. In 2002, Sun Microsystems was on the road to canceling Solaris x86 as a product line. The community was outraged, and a vote in the old "solarisonintel" Yahoo! group resulted in six community representatives making the case for x86 to Sun. Phil was one of those six who eventually flew to Sun HQ to meet the head honchos and banish the forces of evil for a while. Phil's current hobbies include writing (both articles and code), riding motorcycles, reading historical fiction, and keeping his children amused. The Solaris-specific part of his website is http://www.bolthole.com/solaris. Most of his writing until this point has been done online, for free. His website has a particular wealth of Solaris information, and includes a mix of script writing, driver code, and Solaris sysadmin resources. As far as books go, he was only a prepublication reviewer for Solaris Systems Programming, Rich Teer. However, the first time any of his articles got published was in Rainbow magazine (a publication for the Tandy Color Computer) on page 138 of the May 1989 issue, under a column named Tools for Programming BASIC09 (http://ia700809.us.archive.org/26/items/rainbowmagazine-1989-05/The_Rainbow_Magazine_05_1989_text.pdf).
Read more about Philip P. Brown

Right arrow

Chapter 3. Sysadmin Configuration Differences

Solaris 11 has significant changes in the way sysadmins interact with it, even in areas that have not changed since Solaris was first released, or even back to SunOS days. This chapter will get you oriented for the new basic day-to-day ways of doing things.

Welcome to the new normal


The OS configuration has moved further towards the *adm tools and away from the traditional "edit a text file" approach. The three areas of configuration difference that a sysadmin will mostly notice are mentioned in this chapter:

  • Host identity

  • Driver configuration

  • Network configuration

There are also a handful of other minor changes mentioned in the Miscellaneous differences in system-level configuration section at the end of this chapter.

Host identity: the sysconfig command


Earlier, if a sysadmin didn't feel like editing the handful of host identity-related files manually, there was the sys-unconfig command.

The new, more modern replacement is sysconfig, which contains three modes:

  • configure

  • unconfigure

  • create-profile

sysconfig configure

This mode essentially brings up a standard Solaris 11 initial, manual installation screen. It prompts you for the usual things, such as hostname, network configuration, and also root account information. Once the information is validated, it reconfigures the system.

Tip

Warnings

  • Your only chance to back out of host-level changes is when the initial "Do you want to continue?" type prompt appears. If you do proceed, it will unconfigure various things on the live system before asking you your preferences for the hostname and so on.

  • Regardless of where you start the program, it will start a new process to ask configuration questions on the system console.

The program claims to create /system/volatile...

Driver configuration: /etc/driver/drv


Right from the start of Solaris' first release, the kernel driver configuration was handled in an odd location. The driver.conf files were edited under variations of /kernel/drv or /usr/kernel/drv, rather than under the usual /etc tree.

In Solaris 11, the location has finally been standardized to join the rest of the file-based configuration, under /etc. The new official location for the sysadmin-tuned kernel.conf files is in /etc/driver/drv.

It should be noted that most of the default versions of the driver.conf files are still provided in /kernel/drv; however, if you choose to modify them, you should place the modified versions under /etc/driver/drv.

There are two things to note about this new layout that are of benefit:

  1. The original and new .conf files are merged. Therefore, you only need to add changes rather than duplicating the whole file.

  2. This preserves your system tuning across driver patches and upgrades more cleanly.

In contrast, something that...

Network address configuration: ipadm and dladm


IP address configuration is now primarily handled by /usr/sbin/ipadm. Oracle is trying to consolidate all IP administration into this tool. Manual configuration above the basic physical interface is almost exclusively handled by ipadm, which controls both IP address assignments, as well as TCP and IP tunables, in a consistent and persistent fashion.

Solaris 11 has attempted to virtualize and automate a bundle of assorted sysadmin tasks, one of which is network configuration. It provides a pair of tools named netadm and netcfg, which follow rule sets for automatically and dynamically managing IP addresses. For now, please ignore the commands that we just mentioned. This section primarily addresses the manual configuration of IP addresses via ipadm.

If your host is currently under automatic network address control and you wish to manually set your network information, you will need to use netadm to change your host to manual network mode (which...

Wireless configuration: Stick to the GUI if you can


In the unlikely event that you are configuring a wireless networking device manually, you will need to use ipadm in conjunction with another adm tool: dladm (Data Link Administration).

Normally, if you are using wireless networking, you would be on a laptop. If so, you would be better off using the automatic network configuration tools, aka NWAM, via the GNOME network GUI. It has a very functional Wi-Fi configuration tool built in, similar to what you will experience on a laptop running Red Hat and GNOME. However, for completeness' sake, and possibly to aid in debugging, here we will configure wireless networking manually on Solaris 11 using the dladm and ipadm commands.

Unfortunately, this is one area where the new generic naming of interfaces does not normally come into play. Because of this, the first step is to find the name of your wireless network interface. Whenever we wish to deal with physical network device names, we will usually...

Miscellaneous differences in system-level configuration


Certain things that used to be in files have been moved into the SMF repository of properties and services.

Some have specialized tools to assist in administration. However, some rely only on the basic SMF property tools, such as svcprop and svccfg.

Name service related

The following is a table of "name service" related, legacy file-based information and the corresponding SMF location:

Filename

SMF location

/etc/nsswitch.conf

svc:/system/name-service/switch:default

/etc/nscd.conf

svc:/system/name-service/cache:default

/etc/resolv.conf

svc:/network/dns/client:default

/etc/defaultdomain

svc:/network/nis/domain:default

/var/ldap/*

svc:/network/ldap/client:default

Each of the old-style file's information in the left column can be imported manually into SMF via the nscfg command. It is also possible to do one-shot exports of the information. The sample usage of each action is as follows:

nscfg import -f svc:...

Summary


This chapter attempts to address some of the more common system administration changes that a sysadmin might encounter and that have new interfaces in Solaris 11. The network-level coverage here is more of a tactical level, rather than an architectural one. For a more in-depth view of the Solaris 11 network tools, and a better understanding of the new network kernel architecture in general, be sure to read Chapter 4, Networking Nuts and Bolts.

One thing that is not mentioned, is the day-to-day type operations dealing with ZFS. If you are not already familiar with it, you should also be sure to read Chapter 6, ZFS – Now You Can't Ignore It! carefully.

Most other daily sysadmin chores that are not mentioned in this chapter have not changed since Solaris 10.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Oracle Solaris 11: First Look
Published in: Jan 2013Publisher: PacktISBN-13: 9781849688307
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
Philip P. Brown

Philip P. Brown was introduced to computers at the early age of 10, by a Science teacher at St. Edmund's College, Ware, UK. He was awestruck by the phenomenal power of the ZX81's 3 MHz, Z80 CPU, and 1 K of RAM, showcasing the glory of 64 x 48 monochrome block graphics! The impressionable lad promptly went out and spent his life savings to acquire one of his very own, and then spent many hours keying in small BASIC programs such as "Ark Royal", a game where you land a block pretending to be an aircraft, on a bunch of lower blocks pretending to be an aircraft carrier. Heady stuff! When birthday money allowed expanding the ZX81 to an unbelievable 16 K of RAM, he also felt the need to acquire a patch cable to allow him to actually save programs to audio cassettes. Once this was deployed to the family cassette recorder, he was not seen or heard from for many months that followed. Phil's first exposure to Sun Microsystems was at U.C. Berkeley in 1989, as part of standard computer science classwork. Students were expected to do their classwork on diskless Sun 3/50 workstations running SunOS 4.1.1. During this time, he wrote his first serious freeware program, "kdrill", which at one time was part of the official X11 distribution, and remains in some Linux distros to this day. He eventually acquired a Sun workstation for personal use (with a disk and quarter-inch tape drive) and continued his home explorations, eventually transitioning from SunOS to Solaris, around Solaris 2.5.1. The principles of the original, pre-GPL freeware licenses prevalent in 1989 inspired Phil the most. Led by their example, he has contributed to an assortment of free software projects along the way. A little-known fact is that he is responsible for "MesaGL" morphing into the modern GLX/OpenGL implementation it is known for today. At the time, MesaGL was primarily an OpenGL workalike with a separate, non-X11 API, as author Brian Paul did not believe that it could function in a speed-effective way. In 2003, Phil wrote the first GLX integration proof-of-concept code, which convinced Brian to eventually commit to true GLX extension support. In 2002, Phil created pkg-get, inspired by Debian's apt-get utility, and started off CSW packaging. This, at last, brought the era of network-installed packages to Solaris. All major public Solaris package repositories prior to Solaris 11 still use pkg-get format catalogs for their software. In reality, Phil also had an impact on the existence of Solaris itself. In 2002, Sun Microsystems was on the road to canceling Solaris x86 as a product line. The community was outraged, and a vote in the old "solarisonintel" Yahoo! group resulted in six community representatives making the case for x86 to Sun. Phil was one of those six who eventually flew to Sun HQ to meet the head honchos and banish the forces of evil for a while. Phil's current hobbies include writing (both articles and code), riding motorcycles, reading historical fiction, and keeping his children amused. The Solaris-specific part of his website is http://www.bolthole.com/solaris. Most of his writing until this point has been done online, for free. His website has a particular wealth of Solaris information, and includes a mix of script writing, driver code, and Solaris sysadmin resources. As far as books go, he was only a prepublication reviewer for Solaris Systems Programming, Rich Teer. However, the first time any of his articles got published was in Rainbow magazine (a publication for the Tandy Color Computer) on page 138 of the May 1989 issue, under a column named Tools for Programming BASIC09 (http://ia700809.us.archive.org/26/items/rainbowmagazine-1989-05/The_Rainbow_Magazine_05_1989_text.pdf).
Read more about Philip P. Brown