Solaris Transition Guide

Part I Transition Information for Users and System Administrators

You can use this part of the guide to help install Solaris 7 software and to understand changes to the local computing environment and to routine tasks.

Chapter 1 Introduction

The SolarisTM operating environment enhances your system's capabilities with powerful tools and features. This introduction discusses the benefits of migrating to the Solaris operating environment and summarizes the principal differences between SVR4 and the Solaris operating environment.

Advantages of Migrating to the Solaris Operating Environment

The UNIX® standard, SVR4, accommodates the leading UNIX variants (System V, BSD, SunOSTM, and XENIX), uniting the majority of the installed base of UNIX users. The Solaris operating environment, based on SVR4, gives software developers, system administrators, and end users the benefits of a standard operating system including broad compatibility, a growth path, and reduced time to market. It also delivers a functional and powerful product reflecting years of refinement. Among the many advantages the Solaris operating environment provides are portability, scalability, interoperability, and compatibility.

Although the foundation of the Solaris operating environment is based on SVR4, extensive functionality has been added in areas such as symmetric multiprocessing with multithreads, real-time functionality, increased security, and improved system administration.

The Solaris operating environment offers the following features:

Portability, Scalability, Interoperability, and Compatibility

The Solaris operating environment is portable, scalable, interoperable, and compatible.

Portability

The SunOS 5.7 product is portable across multiple vendor platforms. Software conforming to an application binary interface (ABI) runs as shrink-wrapped software on all vendor systems with the same microprocessor architecture. This enables application developers to reduce software development costs and bring products to market quickly, and enables users to upgrade hardware while retaining their software applications and minimizing conversion costs.

Scalability

Over time, applications become more widely used and require more powerful systems to support them. To operate in a growing environment, software must be able to run in a wide power range and must be able to take advantage of the additional processing power. The Solaris operating environment runs on machines of all sizes, from laptops to supercomputers.

Interoperability

Heterogenous computing environments are a reality today. Users purchase systems from many vendors to implement the solutions they need. Standardization and clear interfaces are critical to a heterogeneous environment, enabling users to develop strategies for communicating throughout their network.

Compatibility

Computing technology continues to advance rapidly, but the need to remain competitive requires vendors to minimize their costs and to maximize their investments. As new technology is introduced, there is a need for the existing software investment to be preserved.

Advantages for Large Organizations

The Solaris operating environment provides a number of sound business reasons for transitioning to an industry-standard-based UNIX operating system. Application development and maintenance costs are lower, and application portability is enhanced.

Comparison of SVR4 and the Solaris Operating Environment

This section describes the main differences between SVR4 and the Solaris operating environment. It points out features that the Solaris operating environment includes that are not available in SVR4 and a few SVR4 features that are not available in the Solaris operating environment.

Additional Features in the Solaris Operating Environment

The Solaris operating environment offers value-added components in addition to the SVR4-based operating system. These make computing easier and create new opportunities for users, system administrators, and developers.

In general, the merge of established UNIX variants into SVR4 and the Solaris operating environment was done by consolidating the existing functionality while maintaining compatibility for existing applications. As a result, features and commands were added or withdrawn in some cases.

Features for the User

For users, the Solaris operating environment incorporates a suite of powerful DeskSetTM applications to enhance personal productivity. All DeskSet applications rely on the drag-and-drop metaphor, enabling users to carry out complex UNIX commands with a mouse. Some of the features are:

Features for the System Administrator

For system administrators, the Solaris operating environment offers a variety of new tools to simplify the administration of a distributed computing environment. These include:

Features for the Developer

For application developers, the Solaris operating environment includes a variety of toolkits and features to simplify the development of complex applications with graphical user interfaces.

SVR4 Features Excluded From the Solaris Environment

In a few instances, features in SVR4 were not include in the Solaris operating environment. These features are specific to AT&T hardware, or features included primarily for backward compatibility with SVR3 features and are, therefore, of little value to SunOS users.

The Solaris operating environment does not include the System V file system and associated utilities because of their limitations compared to the UNIX file system. The SVR4 boot file system was not included because of its maintenance burden when compared to the SunOS traditional boot model.

The generic AT&T SVR4 model for device auto-configuration and for rebuilding kernels was replaced with a fully dynamically configurable kernel better suited to the needs of present and future users of SPARC systems.

Because there is no installed base of SPARC XENIX programs, the SPARC release of the Solaris operating environment does not include compatibility for XENIX applications.

The Solaris operating environment does not include the AT&T SVR4 sysadm utility. Because the sysadm menu utility was designed primarily for use with terminal devices on freestanding systems, GUI tools are used instead to simplify administration of distributed systems across a network. The Solaris operating environment provides the utilities and configuration directories that underlie the SVR4 sysadm utility but not the sysadm utility itself.

Chapter 2 Overview of Major Changes

As you work in the SunOS release 5.7 environment, you will find similarities to SunOS release 4. However, you will also notice some differences. The rest of this guide focuses on procedures, tools, commands, and concepts that have changed between releases.

This chapter is an overview of some of the principal changes. It provides background information for topics in subsequent chapters. Some topics receive sufficient coverage here, while others require more in-depth technical background. In the latter case, the text directs you to a chapter that more fully describes the changes.

Software Packages and Clusters

Solaris 7 system software is delivered in units known as packages. A package is a collection of files and directories required for a software product. A cluster is a collection of packages.

The list below describes four clusters. Note that as you progress through the list, each cluster contains the software of the preceding cluster plus additional software.

For more information about this section's topics, see System Administration Guide, Volume I.

Package Administration

Software package management simplifies installing and updating software. Administration is simplified because the method for managing system software and third party applications is now consistent. The tools for creating software packages are in an application packaging tools library.

There are two tools you can use to install and remove packages:

Graphical User Interface (admintool)

You can install software on your local system or on a remote system with Admintool (started with the admintool command). The default location for the installation is the local system.

Use Admintool to:

If you want to install or remove the software, you must run Admintool as superuser or as a user in the sysadmin group (group 14). You do not need to be superuser to look at the software packages that are already installed on a system.

Command-Line Utilities

You can use command-line utilities to install, remove, and check the installation of software packages. The commands are:

Patch Administration

The patchadd(1M) and patchrm(1M) commands are used to install and remove patches from a Solaris 2 system. You can add one or more patches to a system, client, service, or net install image.

See patchadd(1M) and patchrm(1M) for more information.

Disk Slices (or Partitions)

A single range of contiguous blocks or a physical subset of a disk is known as a disk partition in the SunOS release 4 software. In the SunOS release 5 software, a physical subset of a disk is known as a disk slice. Before you can create a file system on a disk, you must format and divide it into slices. This is usually done when the Solaris release is installed using the Solaris 2 installation program. See System Administration Guide, Volume I if you need to install and format a disk after installation.


Note -

In some Solaris documentation, Solaris slices are still referred to as "partitions". The Solaris 2 documentation distinguishes between fdisk partitions (for Intel systems) and the divisions within an fdisk partition, referred to interchangeably as slices or partitions.


See System Administration Guide, Volume I for information about Solaris fdisk partitions.

A slice can be used as a raw device for swap space or to hold one and only one UFS file system, unless you are using a product like Solstice DiskSuiteTM. Table 2-1 describes how disk slices can be set up on each Solaris 2 platform.

Table 2-1 Slice Differences on Platforms

SPARC 

Intel-based 

The whole disk is devoted to the Solaris operating environment. 

The disk is divided into four fdisk partitions, one per operating environment.

The disk is divided into eight slices, numbered 0-7. 

The Solaris fdisk partition is divided into 10 slices, numbered 0-9. Only 0-7 can be used to store user data.

See System Administration Guide, Volume I for a description of customary disk slice assignments for each platform.

Cylinder Groups

A UFS file system is created on a disk slice, which is divided into one or more areas called cylinder groups. A cylinder group is composed of one or more consecutive disk cylinders (the set of tracks on a group of platters that have the same radial distance from the center of the platter). See System Administration Guide, Volume I for a complete description of disk geometry.

A cylinder group map is created for each cylinder group. The cylinder group map records the block usage and available blocks.

Figure 2-1 shows the relationship between disk slices and cylinder groups.

Figure 2-1 Disk Slices and Cylinder Groups

Graphic

Device Naming

SunOS release 5.7 device names make it easier to infer certain device characteristics from a device name. SunOS release 4 systems convey type rather than device attributes, which makes it difficult for programs and scripts to derive necessary information about devices. SunOS release 5.7 conventions are slightly different from AT&T SVR4 device names because SunOS release 5.7 allows only eight user-configurable slices on a disk.

In addition, special device files are now stored in the hierarchical /devices directory, with symbolic links to the hierarchical /dev directory, which is used by administrators and users to access devices. The /dev directory contains subdirectories, such as /dev/dsk/*, used to access disk devices, and /dev/rdsk/*, used to access raw disk devices. For more information, see "Device Naming Conventions". For discussions on device naming conventions, see "Device Naming From a Developer's Perspective".

File Systems

SunOS release 5.7 and SunOS release 4 file systems are similar, but there are changes in the locations and names of system directories and files. There are also new file systems, new pseudo file systems, and one directory is not used.

"File System Changes", describes file system changes. System Administration Guide, Volume I describes file system concepts and administration in detail.

Changes to File System Locations and Names

Some of the changes to file system locations and names are:

Pseudo File Systems

Pseudo file system types are logical groupings of files that reside in disk-based systems. The TFS pseudo file system is not included in the SunOS release 5.7 software.

The SunOS release 5.7 pseudo file systems are:

Added File Systems

The following file systems are included in the SunOS release 5.7 directory structure:

Removed File Systems

Support for the RFS file system type has been removed.

Kernel Configuration

Unlike in the SunOS release 4 software, the SunOS release 5.7 kernel is dynamically configured. This means that you no longer need to rebuild it manually when you make changes to the system configuration.

Starting with release 5.5 of the SunOS software, the kernel and its modules were separated into platform-independent and platform-dependent objects. The platform-independent kernel consists of a small static core, called /kernel/genunix, and its dynamically loadable kernel modules are stored in the /kernel and /usr/kernel directories if they are platform independent, and /platform and /usr/platform if they are platform independent. See System Administration Guide, Volume I for a description of the platform-dependent directories and their contents.

Drivers, file systems, the STREAMS module, and other modules are loaded automatically as needed, either at boot time or at run time. These modules are unloaded when they are no longer in use. The modinfo(1M) command provides information about the modules currently loaded on a system.

The modload(1M) and modunload(1M) commands are still available in this release but they perform differently. These commands have more limited usage, and are no longer sufficient to correctly install a loadable driver onto the system. The modunload(1M) command is similar to the SunOS release 4 command, but it includes the capability to unload all unloadable (and not busy) modules, as the following example illustrates.

# modunload -i 0

Chapter 18, System and Device Configuration, discusses these topics in more detail.

Kernel Layout

The contents of the kernel, which were formerly in a single file, /vmunix, are now contained in modules in a platform-independent and platform-dependent directory hierarchy. By default, the directory hierarchy is:

The directory search path for modules can be set by the moddir variable in the /etc/system file. Typically, /kernel/genunix is the first portion of the kernel to be loaded. See system(4) and kernel(1M) for more information.

Automounting

A new version of the automounter, called AutoFS, has been included. In the SunOS release 4 releases, the automounter mounted everything under /tmp_mnt and used symbolic links to redirect the lookups. AutoFS allows for file systems to be mounted in place (for instance, /home).

In SunOS release 4, the maps for the automounter were named auto.master and auto.home. For Solaris 7, these maps have been renamed to auto_master, auto_home, and so on. The NIS+ name service, which is included with the release, requires this change. A default copy of these maps is included in the release, so that the AutoFS service is started when the system is booted. The SunOS release 4 releases did not include the maps, so additional installation steps were required.

The Solaris 7 release provides the ability to select the name service that is being used through /etc/nsswitch.conf. The automount entry can be changed to select local files, NIS+, NIS, or some combination of these.

Earlier releases supported a home directory naming convention like: /home/server/login. With the AutoFS maps it is much easier to use /home/login for each entry. This new naming convention also provides for location independence. The old convention can still be used, but once a transition to using the AutoFS maps has been made, it will be easier to administer the shorter paths.

The following paths were reserved for use by AutoFS:

On home directory servers, the actual home directories should be moved to /export/home rather than /home, so that they do not conflict with the automounter directory structure. This also means that you cannot mount file systems on /home while the automounter is running.

The AutoFS software now has two programs. The first program is automount that runs at boot time to establish AutoFS mount points. This command can also be run anytime by superuser to change the mount points. The second command is automountd, which is a stateless daemon that answers AutoFS file system mount and unmount requests. These two programs replace the SunOS release 4 automount daemon.

The automount daemon is now fully multi-threaded. Multiple automatic mount requests can be serviced concurrently, which makes AutoFS more reliable. In short, one mount request could block connecting to a slow server, while a second request is processed without waiting.

The Solaris 7 release supports browsability of indirect AutoFS maps. All mountable entries under an AutoFS mount point (for example, /home) are now visible without the overhead of mounting them first.

Also provided is improved on-demand automounting of hierarchically related file systems. Previous releases would automount an entire set of file systems if they were hierarchically related (for example, /net/server) even if only one of the file systems was referenced. The file system that is referenced is dynamically mounted without mounting all of the other file systems in the hierarchy. Other file systems are mounted when they are individually referenced.

See "Mounting File Systems and autofs" for more detailed information. Also, NFS Administration Guide describes how to use AutoFS.

Mail Administration

The version of sendmail that is included on the release is Version 8 compatible. The new version fixes some security holes and includes several improvements to Version 5. Several extensions to the standard BSD release have been added, including name service switch and NIS+ support.

To further support NIS+, a new command, aliasadm, has been included. The command aids in the administration of NIS+ alias lists.

The mailbox spooling directory has been moved from /var/spool/mail to /var/mail. A new directory, /var/mail/:saved, is used for creating locks and temporary files by the mailx program. Also, the mail configuration files are now all located in /etc/mail. The new directory includes the aliases and the sendmail.cf files.

The mailbox locking mechanism has been enhanced so that Solaris 7 clients can safely mount mailboxes from both Solaris 2 and SunOS release 4 mail servers. This enhancement eases administration of mail, especially in large sites.

In the Solaris 7 release, /usr/bin/mailx supersedes /usr/ucb/mail. The mailx program has been enhanced to behave the same way as the SunOS release 4 version of /usr/ucb/mail. The /usr/ucb/mail file is now a symbolic link to /usr/bin/mailx.

In SunOS release 4 releases, a program called sendmail.mx was used in DNS sites to access mail exchange records. The new version of sendmail includes the needed functionality and can be configured through /etc/nsswitch.conf.

Mail Administration Guide describes the administration of sendmail.

Admintool

One of the major differences between SunOS release 4 and SunOS release 5.7 that affects system administration is the availability of Admintool to perform basic system administration tasks. This tool employs a graphical user interface to simplify tasks, such as managing users, hosts, printers, and serial devices, on local desktop systems.

Admintool applications enable you to manage the following tasks on a local system:

Using a graphical user interface (GUI) like Admintool to perform administration tasks has the following benefits:


Note -

You do not need to be root to start Admintool but you do need to be a member in the sysadmin group (GID=14). Use the groups(1) command to display your group membership.


To display Admintool, type the following command in any window.

$ admintool &

Network Information Service Plus (NIS+)

NIS+ is the preferred network information service for Solaris networks. Solaris networks can also use NIS either as an alternative to NIS+ or as a supplement to NIS+.

NIS+ is a name service built on top of the ONC transport-independent remote procedure call (RPC) interface. NIS+ has significant benefits compared to NIS in the areas of security, performance, scalability, and administration. Some of the advantages of using NIS+ are:

See Chapter 13, Using Name Services, in this guide and NIS+ Transition Guide and NFS Administration Guide for more information.

Print Subsystem

Starting with the Solaris 2.6 release, the printing software provides a centralized environment for setting up and managing client access to printers on a network. The Solaris printing software contains these components:

See Chapter 11, Managing Printers, Terminals, and Modems, and System Administration Guide, Volume II for more information.

Users can accomplish the same basic tasks using PrintTool or commands in a Shell Tool window.

PrintTool

PrintTool is a software tool available in the Solaris 7 user environment. It provides a graphical user interface within OpenWindows or CDE through which a user can monitor printers and monitor and cancel print jobs.

Command Changes

The following list summarizes command changes:

The lp service consists of several daemons, or processes, that monitor system work, a hierarchy of configuration files in the /etc/lp directory, and a set of administrative commands.

Service Access Facility

The Service Access Facility (SAF) is the tool used for administering terminals, modems, and other network devices. In particular, the SAF enables you to:

The SAF is an open systems solution that controls access to system and network resources through TTY devices and local-area networks (LANs). The SAF offers well-defined interfaces so you can easily add new features and configure existing ones.

The SAF is not a program. It is a hierarchy of background processes and administrative commands. The top-level SAF program is the SAC. The SAC controls port monitors that you administer through the sacadm command. Each port monitor can manage one or more ports.

You administer the services associated with ports through the pmadm command. While services provided through SAC may differ from network to network, SAC and the administrative programs sacadm and pmadm are not tailored to network types.

Table 2-2 illustrates the SAF control hierarchy. The sacadm command is used to administer the SAC, which controls the ttymon and listen port monitors.

Table 2-2 SAF Functions and Associated Programs

Function 

Program 

Description 

Overall administration 

sacadm

Command for adding and removing port monitors 

Service Access Controller 

sac

SAF's master program

Port monitors

ttymon

listen

Monitors serial port login requests 

Monitors requests for network  

services 

Port monitor service

administrator 

pmadm

Controls port monitor services 

Services

logins, remote  

procedure  

calls, and so on 

Services to which SAF provides  

access 

The services of ttymon and listen are in turn controlled by pmadm. One instance of ttymon can service multiple ports and one instance of listen can provide multiple services on a network interface.

See Chapter 11, Managing Printers, Terminals, and Modems for more information.

Volume Management

Beginning with the Solaris 2.2 software, a new layer of software manages CD-ROM and diskette devices: Volume Management. This software automates the interaction between you and your CDs and diskettes.

CDE OpenWindows File Manager has been modified to use Volume Management to provide immediate user access to CDs and diskettes with file systems on them. See OpenWindows User's Guide for more information on File Manager's new features.

There are also several new commands to help you administer Volume Management on your system.

For more information, see "Using Volume Management".

Chapter 3 Converting a SunOS Release 4 System to the Solaris 7 Environment

Converting a SunOS release 4 system to the Solaris 7 environment is a three-phase process that includes pre-installation (backing up data), installing the Solaris environment, and post-installation (restoring data).

This chapter provides information about the pre-installation and post-installation phases for a single system or an entire network. See Chapter 10, Setting Up a Solaris 7 Server to Support SunOS Release 4 Diskless Clients, for information about creating an environment that serves both Solaris 7 and SunOS release 4 clients.

What's New About Installing

The Solaris 7 environment introduces a number of changes in the way you install software on systems, which makes it different than installing the SunOS release 4 software. These include:

What to Do Before You Install Solaris Software

Converting a SunOS release 4 system to the Solaris 7 software involves more than just running the Solaris installation program and loading the software. Usually, there is data on the SunOS release 4 system that needs to be transferred to a Solaris 7 system. This data may be full file systems, such as /home, or locally customized system files, such as /etc/hosts or /etc/passwd.

No matter how you plan to handle the data transfer, you should back up all disk partitions by doing full dumps before you begin the installation process. Because the device naming conventions are different in the Solaris 7 operating environment, you might inadvertently choose the wrong disk when you install the Solaris 7 software. Backing up the file systems before you begin the installation procedure offers some protection should this occur. For information about device naming conventions, see "Device Naming Conventions".

Note about file system formats:

Saving Disk Partition Information

Before you begin the installation process, you should print a copy of the system's existing disk partitions. It can serve as a reference for many decisions that are made about configuring the Solaris 7 system. The following procedure is one way to obtain the disk partition information.

  1. Obtain the names of the disks attached to the system.

    To obtain the names of the disks attached to the system, use the format(8) command.

  2. Save the disk partition information.

    To obtain the partition information encoded on each disk, use the dkinfo(8) command. You can pipe the output to a printer or to a file that you can save to another system.


    Note -

    Using the previous command provides you with information only on the configured partitions. All nonconfigured partitions are displayed with the message: "No such device or address."


Saving File System Information

The mappings between file system names (for example, /usr, /home) and device names (for example, /dev/sd0g) reside in the configuration file /etc/fstab. Before proceeding, you should make a printed copy of the /etc/fstab file to help you construct the Solaris 7 file.

Saving Metadevice Configuration Information

Use this section only if you are upgrading a system running the SPARCserverTM Manager or Solstice DiskSuite unbundled products. (These products are used to mirror, concatenate, or stripe multiple disks.)

To upgrade your system without this product, you have to modify your multiple-partition configurations to use single partitions. In particular, a concatenated or striped file system must be reorganized onto a single disk, and partitions and mirrors can no longer be used.

If the system is running SPARCserver Manager or Solstice DiskSuite utilities, you should save the metadevice configuration information before installing Solaris 7 software. This enables you to recover the state of the metadevices when you install Solaris 7 software, and serves as a reference as you construct the list of disks attached to your system.

  1. Use the metastat(8) command to save information, as in the following example.


    # /etc/metastat -p | lpr
  2. Save the output of the metadb(8) command.

    For example.


    # /etc/metadb -i | lpr

    The output of metadb tells you the state of the database configuration information. This information is necessary to reconstruct the state databases if you reinstall the Solstice DiskSuite product.

Determining What To Back Up

You should create a list of the SunOS release 4 files and file systems that you want to back up and restore after installing Solaris 7 software.

Making a List of System Components to Back Up

Make a list of all the system components in the existing SunOS release 4 environment and decide which are critical to the user's system. Consider:

Making a List of Files and File Systems to Back Up

Use the following guidelines to make the list of file systems to save:

Making a List of SunOS System Configuration Files to Back Up

There are a number of SunOS release 4 system configuration files that can be merged or converted for the Solaris platform. Use the example list that follows to help select the system configuration files you want to back up.


Note -

The list contains suggestions. You should study the items in the list carefully and add or delete files depending on the configuration at your site. For example, if you have special files in directories from third-party software vendors, you may need to save them.


If the system is a NIS master server, you should save all the files that reside in the NIS master directory (for example, /etc). Additionally, save any other master files that you added to NIS. Examples of files to back up include:

Determining Disk Space Requirements

Make a list of how much disk space each file system that you want to move to the Solaris 7 upgrade uses. Refer to this list when installing the Solaris 7 software, since you can partition disk space for your SunOS release 4 file systems when running the Solaris 7 installation program.

Deciding the Order of Installation for Networks

If you are converting a network of SunOS release 4 systems to the Solaris 7 software, decide the order of the systems to convert so that you do not inconvenience for the users. For example, you might want to convert all client systems before you convert any servers. The first system you convert should be a standalone system with a locally attached CD-ROM drive.

For a while, you will probably manage a network consisting of both SunOS release 4 and Solaris 7 systems, and part of your planning should involve determining priorities. For example, you may want to convert one domain and use it for system administration testing and for porting internally developed applications before you convert the entire network environment.

Backing Up Files and File Systems Before You Install

Once you decide which files or file systems you need to back up from the SunOS release 4, you can use the standard commands and procedures given in the SunOS release 4 documentation to do backups. The command you use depends on whether the tape drive is local or remote. No matter how you plan to handle the data transfer, it is still a good idea to back up all disk partitions by doing full dumps before you begin the installation process.

Installing Solaris Software

Install the Solaris 7 software on the server or standalone system using the software installation procedures given in Solaris 7 (SPARC Platform Edition) Installation Library or Solaris 7 (Intel Platform Edition) Installation Library. These are also known as the Start Here cards.

Preserve Option

The Solaris 7 Interactive Installation program has a preserve screen that enables you to preserve existing file systems during installation. This is a good way to preserve any SunOS release 4 file systems so you do not have to restore them.

If you cannot preserve a SunOS release 4 file system or you choose not to (because you want to change how the system's disks are partitioned), you should create new file systems with sufficient disk space for the SunOS release 4 file system that you want to restore (using the disk space requirements you recorded earlier). Then you can restore the SunOS release 4 file systems into the new file systems after Solaris is installed.

Restoring Files and File Systems After You Install

This section describes issues related to restoring SunOS release 4 files and file systems you backed up before installing the Solaris 7 software.

Restoring SunOS Release 4 File Systems and User Files

You can restore the SunOS release 4 file systems that you could not, or chose not to, preserve into the new file systems you created during the Solaris 7 installation. For information about backup and restore procedures, see System Administration Guide, Volume I.


Note -

Before proceeding make sure that the target slice is large enough to accommodate the file system being restored.


Restore any SunOS release 4 user files that you backed up and copy them to the new system.

Restoring SunOS Release 4 System Configuration Files

First, you must restore the SunOS release 4 system configuration files to a temporary directory on the Solaris 7 system. After the information is back on the system in the temporary directory, you need to make it available in the Solaris 7 operating environment. Some of the data can be merged into the files, while some types of data must be converted to new formats.

The system's configuration defines which files you need to work with. Complete the restore by merging or converting files as follows:

Files to Merge

To make data from any of the following files available, merge the changes into the Solaris 7 version of the same file. Note, however, that not all of these files were modified on the SunOS release 4 system. Identify files that were changed on the SunOS release 4 system and merge these only. As you read the list, note that some of the file names are slightly different. For example, /etc/auto.* files are now /etc/auto_*.

The following is an example list of the SunOS release 4 files backed up using the instructions in the first part of this chapter. These files are candidates for merging into the Solaris 7 operating environment. See Appendix D, System Files Reference Table, to examine SunOS release 4 files for changes.

Files to Convert

Many system files, such as the /etc/fstab file, have been replaced and do not exist under the Solaris 7 operating environment. Information from these files must be extracted and manually converted in the Solaris 7 environment. See Appendix D, System Files Reference Table, to examine SunOS release 4 files for changes.


Caution - Caution -

Do not restore operating system executable files (such as system commands in /usr/bin) from the SunOS release 4 system to your system after installing the Solaris 7 software.


You must change the following files before merging the data onto the Solaris 7 system:

share -F fstype -o options -d "text" pathname resource

See the dfstab(4) man page for additional information.

dev raw_dev mnt_pt fs_type fsck_pass auto_mnt mnt_option

Refer to the vfstab(4) man page for additional information.

Chapter 4 Using the Compatibility Packages

The SunOS release 5.7 software is neither source nor binary compatible with the SunOS release 4 software. This means that SunOS release 4 programs and user applications based on those releases may not run correctly under the Solaris 7 operating environment. Compatibility packages make it possible for these programs to run on a Solaris 7 system.

This chapter discusses porting your applications, then describes the SunOS/BSD Source Compatibility Package and the Binary Compatibility Package. These packages make the transition easier by enabling you to use SunOS release 4 commands and applications while your environment and applications migrate to the Solaris 7 operating environment.

Some SunOS release 4 commands are not available in the Solaris 7 operating environment. Others exist but have changed. For information about changes to SunOS release 4 commands in the Solaris 7 operating environment, see Appendix A, Commands Reference Table.

Why Port Applications?

Although the SunOS Binary Compatibility Package and the SunOS/BSD Source Compatibility Package allow you to use applications as they are, you should port applications as soon as possible. Long-term reliance on the compatibility packages is not advised for the following reasons:

SunOS/BSD Source Compatibility Package

The SunOS BSD/Source Compatibility Package is an optional package available with the Solaris 7 operating environment. The package contains a collection of SunOS release 4 and BSD commands, library routines, and header files otherwise not available with the Solaris 7 operating environment. The Binary Compatibility Package must be installed in order to use the SunOS/BSD Source Compatibility Package.

The interfaces in the SunOS/BSD Source Compatibility Package are installed in the /usr/ucb directory, thereby avoiding conflicts with existing SunOS release 5.7 interfaces. These interfaces provide a familiar SunOS environment while your environment and applications are migrating to the SunOS release 5.7 software. To use these interfaces, you must either specify the full path name or modify your PATH environment variable. When modifying your PATH environment variable, note that /usr/ucb should precede /usr/bin.

For detailed information about the Source Compatibility Package, see Source Compatibility Guide

Binary Compatibility Package

The Binary Compatibility Package is an optional package available with the Solaris 7 operating environment. The package allows existing SunOS release 4 applications, both statically and dynamically linked, to run under the Solaris 7 operating environment without modification or recompilation. It handles most binary interface discrepancies between the two releases transparently. This results in a Solaris 7 operating environment where SunOS release 4 applications can run properly.

See Binary Compatibility Guide for procedures about setting up your environment to access this package. This guide also details the limitations of the Binary Compatibility Package.

Using the Binary Compatibility Package to SunOS Release 4 Applications

The Binary Compatibility Package allows most applications to run under the Solaris 7 operating environment, making them available for use before they are ported to SunOS release 5.7. With this package, well-behaved application binaries based on SunOS release 4 system software will run under the SunOS release 5.7 software without modifications or recompilation.

The Binary Compatibility Package is intended for end-user environments, not for use as a development environment. All SunOS release 5.7 application development should be done under the base SunOS release 5.7 environment.

Chapter 5 Security

Security for the Solaris 7 operating environment combines several features from SunOS release 4 and AT&T SVR4 with capabilities added specifically for the new environment. There are also changes in the packaging of some SunOS release 4 security programs.

This chapter describes major differences between SunOS release 4 and Solaris 7 operating environment security, and points out how those changes may affect system administration procedures. System Administration Guide, Volume II describes the administration and use of these features more fully.

Solaris 7 Security Features

Most of the security features from SunOS release 4 systems are also available in the Solaris 7 operating environment. These include:

RPC has been modified based on the GSS-API. This increases security integrity and confidentiality, and NFS services are no longer tied to a specific or a single security mechanism. Also, NIS+ security is enhanced by increasing the authentication key length from 192 bits to 640 bits.

NFS Administration Guide describes secure NFS and the .rhosts files. TCP/IP and Data Communications Administration Guide describes administering Internet security.

Security for local SunOS release 5.7 systems includes storing encrypted passwords in a separate file, controlling login defaults, and restricted shells. Equivalent NIS+ security, described in NIS+ Transition Guide and NFS Administration Guide, controls network-wide access to systems.

The following subsections summarize security features under local system control.

/etc/passwd and /etc/shadow Files

The SunOS release 5.7 passwd command stores encrypted versions of passwords in a separate file, /etc/shadow, and allows only root access to it. This prevents general access to the encrypted passwords that formerly appeared in the /etc/passwd file, which anyone could read.

The /etc/shadow file also includes entries that force password aging for individual user login accounts. The mechanism for changing entries to the passwd and shadow files is described in System Administration Guide, Volume II.

/etc/default Files

Several files that control default system access are stored in the /etc/default directory. These files limit access to specific systems on a network. Table 5-1 summarizes the files in the /etc/default directory.

Table 5-1 Files in /etc/default Directory

/etc/default/login

Controls system login policies, including root access. The default is to limit root access to the console. 

/etc/default/passwd

Controls default policy on password aging 

/etc/default/su

Controls which root (su) access to the system will be logged and where it will be displayed

Restricted Shells

System administrators can use restricted versions of the Korn shell (rksh) and Bourne shell (rsh) to limit the operations allowed for a particular user account.

Restricted shells do not allow the following operations:

See the ksh and sh man pages for a description of these shells.

Note that the restricted shell and the remote shell have the same command name (rsh) with different path names:

Password Aging Changes

The SunOS release 5.7 system features password aging. This feature assigns a limited lifetime to each user password to maintain password secrecy. As a password reaches the end of its life, the password owner is notified and prompted to select a new one.

You can implement password aging using one of the following methods:

A system administrator can also set up password aging.

You can change a user password in one of two ways:

For more information on passwd and nispasswd, see the command tables in Appendix D, System Files Reference Table.

Access Control Lists (ACLs)

Access control lists (ACLs), supported in both UFS and NFS, provide greater flexibility in managing file permissions than traditional UNIX file protection. The traditional UNIX file protection provides read, write, and execute permissions for three user classes: owner, group, and other.

Using ACLs allows you to define file permissions for the owner, owner's group, others, specific users and groups, and default permissions for each of those categories. For example, you can set up an ACL that defines read permission to a group of users and write permission to only one user in the group. You could not do this with standard UNIX file permissions.

The setfacl(1) command sets, adds, modifies, and deletes ACL entries, and the getfacl(1) command displays ACL entries.

See System Administration Guide, Volume II for more information about using ACLs.

Automated Security Enhancement Tool (ASET)

The Automated Security Enhancement Tool (ASET), available as a separate option with SunOS release 4 systems, is included with the Solaris 7 operating environment. ASET enables you to specify an overall system security level (low, medium, or high) and automatically maintain systems at those levels. This tool can be set up to run on a server and all its clients or on individual clients.

ASET performs these tasks:

System Administration Guide, Volume II describes ASET setup and monitoring in detail.

Security Options

Currently available bundled security options are Kerberos security, the SunSHIELDTM package, and Pluggable Authentication Module (PAM).

Kerberos 4.0 Security

The Solaris 7 operating environment includes support for Kerberos V4 authentication for secure RPC. (Kerberos source code and administrative utilities are available from MIT.) Included in this release are:

System Administration Guide, Volume II describes the client-side utilities included in the release. NFS Administration Guide describes the use of Kerberos with the NFS application.

SunSHIELD Package

The Solaris 7 release includes the SunSHIELD Basic Security Module (BSM) package. This product provides the security features defined as C2 in the Trusted Computer System Evaluation Criteria (TCSEC). The features provided by the BSM are a security auditing subsystem and a device allocation mechanism. C2 discretionary access control and identification and authentication features are provided in the operating system.

The administration of BSM is included in SunSHIELD Basic Security Module Guide.

PAM

The Pluggable Authentication Module (PAM) framework enables new authentication technologies to be "plugged-in" without changing commands, such as login, ftp, telnet and so on. The framework enables a system administrator to choose any combination of services to provide authentication. Mechanisms for account, session, and password management can also be "plugged-in" using this framework.

System Administration Guide, Volume II describes the administration of PAM.

Chapter 6 User Environment Administration

This chapter describes differences in tasks you may perform to set up the local user environment after installing the Solaris 7 software.

Selecting a Default Shell

The login shell is the command interpreter that runs when you are logged in. The Solaris 7 operating environment offers three shells:

If you use the shell often, you may prefer to use the C shell or the Korn shell because of their interactive capabilities. Table 6-1 lists the features of all three shells.

Table 6-1 Basic Features of the Bourne, C, and Korn Shells

Feature 

Bourne 

Korn 

Syntax compatible with sh

Yes 

No 

Yes 

Job control 

Yes 

Yes 

Yes 

History list 

No 

Yes 

Yes 

Command-line editing 

No 

Yes 

Yes 

Aliases 

No 

Yes 

Yes 

Single-character abbreviation for login directory 

No 

Yes 

Yes 

Protect files from overwriting (noclobber) 

No 

Yes 

Yes 

Ignore Control-D (ignoreeof)

No 

Yes 

Yes 

Enhanced cd

No 

Yes 

Yes 

Initialization file separate from .profile

No 

Yes 

Yes 

Logout file 

No 

Yes 

No 

To change from one shell to another, use one of the following methods:

After you change to a new shell, log out and log in again to activate the shell.

Customizing User Environments

This section describes how to determine which initialization files you can edit to customize the local environment based on your choice of login shell, and where to find them in the SunOS release 5.7 file systems. Set up your environment by editing the variables in the initialization files. The default shell determines which files you need to edit: .profile, .login, or .cshrc. Table 6-2 shows the initialization files for the Bourne, C, and Korn shells.

Table 6-2 Initialization Files for Bourne, C, and Korn Shells

Shell 

Initialization File 

Purpose 

Bourne

/etc/profile

Defines system profile at login 

 

$HOME/.profile

Defines user's profile at login 

C

/etc/.login

Defines system environment at login 

 

$HOME/.cshrc

Defines user's environment at login 

 

$HOME/.login

Defines user's profile at login 

Korn 

/etc/profile

Defines system profile at login 

 

$HOME/.profile

Defines user's profile at login 

 

$HOME/ksh_env

Defines user's environment at login in the file specified by the ksh_env variable

In this release, the shell initialization-file templates have moved to the /etc/skel directory from /usr/lib, where they were in the SunOS release 4 software. The template file locations are shown in Table 6-3. Copy the template file (or files) for the appropriate default shell to your home directory before you modify it.

Table 6-3 Default Home Directory Startup Files

Shell 

File 

Bourne

/etc/skel/local.profile

C

/etc/skel/local.login

/etc/skel/local.cshrc

Korn

/etc/skel/local.profile

For information on setting up initialization files, see System Administration Guide, Volume I.

Using the SunOS Release 4 Work Environment With the Solaris Software

The SunOS release 5.7 software can use the old SunOS release 4 system files and initialization files such as .login, .cshrc, and.profile to re-create the look and feel of the SunOS release 4 work environment. Many of these SunOS release 4 files can be converted, or used as they are, and executed easily.

The installation process in Chapter 3, Converting a SunOS Release 4 System to the Solaris 7 Environment, explains how to re-create the SunOS release 4 environment within the Solaris 7 operating environment.

Window Systems

The Common Desktop Environment (CDE) is the default Solaris 7 windowing environment and offers a simple and intuitive interface. See Chapter 14, Solaris Common Desktop Environment, for more information about CDE.

The OpenWindows 3.1 software can also be used as your preferred desktop with the Solaris 7 environment. If you have been using the OpenWindows 2.0 environment, you will notice that the OpenWindows 3.1 icons have changed and some applications are not compatible with the OpenWindows 3.1 platform.

The OpenWindows Developer's Guide File Chooser (gfm) regular-expression file-pattern matching code (filter_pat) is slightly different from the regular-expression file-pattern matching code in the XView File Chooser object. This could result in the same regular expression matching slightly different sets of files in the two different choosers. The XView File Chooser uses /usr/include/reexp.h in the SunOS release 5.7 software and its usage is correct.

SunView software is not part of the Solaris 7 operating environment. SunView applications are incompatible with the OpenWindows environment and must be converted.

See OpenWindows Version 3.1 User's Guide for information about:

User and Group Administration

This section describes your options for performing user and group administration.

User and Group Administration Choices

You can add, modify, and remove users and groups through the command-line interface using useradd, userdel, and usermod. Although these commands are not as robust as Admintool, they do enable you to do most of the tasks supported by Admintool from the command line without running the OpenWindows or CDE software.

The useradd, userdel, and usermod commands are similar to editing the /etc files in that they also affect only the local system. These commands cannot be used to change any information in the network naming service. However, you can use useradd to verify the uniqueness of the user name and user ID and the existence of group names in the network naming service.

Adding User Accounts

This section describes changes to the general procedure for adding user accounts.

The general procedure for adding new users to a SunOS release 4 system was:

  1. Edit the /etc/passwd file and add an entry for the new user.

  2. Create a home directory and set the permissions for the new user.

  3. Set up skeletal files for the new user (.cshrc, .login, .profile, and so on).

  4. Add the new user to the naming service (NIS).

In the Solaris 7 operating environment, there are three ways to add (and maintain) user accounts:


Note -

Because the SunOS release 5.7 software uses a shadow password file, simply editing the /etc/passwd file is no longer sufficient. You should not attempt this method unless you have ample experience with this type of administration.


System Administration Guide, Volume I describes in detail the policy decisions you should consider before you begin to set up accounts. It also explains security considerations for controlling user access to systems and networks.

Using Mail

The SunOS release 4 mail programs are different in the Solaris 7 operating environment; however, procedures for setting up mail are still the same. The SunOS release 4 version of mail is included in the SunOS/BSD Source Compatibility Package. Its user interface is different from the Solaris 7 operating environment's version of mail. Additionally, some useful mail facilities are included for compatibility.

In the Solaris 7 operating environment, there are three programs for sending and retrieving your mail. All three are backward compatible and can be used to read your SunOS release 4 mail. They are:

For a complete discussion of all Solaris 7 mail programs, see Mail Administration Guide.

Using Document Tools

This section outlines the main differences in document tools used in SunOS release 4 and the Solaris 7 operating environment.

Man Page Organization Differences

Man page organization has changed to be compatible with SVR4 organization. As a result, some sections have been renamed. For example, man(8) is now man(1M).

Table 6-4 shows SunOS release 5.7 man page directories.

Table 6-4 SunOS release 5.7 man Page Directories

/man Directory

Contents 

Suffixes 

man1

User commands 

1B - SunOS/BSD compatibility commands 

 

 

1C - Communication commands 

 

 

1F - FMLI commands 

 

 

1S - SunOS commands 

man1M

System administration commands 

 

man2

System calls 

 

man3

Library functions 

3B - SunOS/BSD compatibility libraries 

 

 

3C - C library functions 

 

 

3E - ELF library functions 

 

 

3G - C library functions 

 

 

3I - Wide Character functions 

 

 

3K - Kernel VM library functions 

 

 

3M - Math library 

 

 

3N - Network functions 

 

 

3R - RPC services library 

 

 

3S - Standard I/O functions 

 

 

3T - Threads library functions 

 

 

3X - Miscellaneous library functions 

man4

File formats 

4B - SunOS/BSD compatibility file formats 

man5

Headers, tables, and macros 

 

man7

Special files 

 

man9

DDI/DKI 

 

man9E

DDI/DKI entry points 

 

man9F

DDI/DKI kernel functions 

 

man9S

DDI/DKI data structures 

Customizing the man Command Search Path

Unlike the SunOS release 4 software, which searched the individual man directories according to a predetermined order, the SunOS release 5.7 software lets you determine the search path. The man command uses the path set in the man page configuration file, man.cf.

Each component of the MANPATH environment variable can contain a different man.cf file. You can modify man.cf to change the order of the search; for example, to search 3b before 3c. The configuration file for the /usr/share/man directory follows.

#
# Default configuration file for the on-line manual pages.
#

MANSECTS=1,1m,1c,1f,1s,1b,2,3,3c,3s,3x,3i,3t,3r,3n,3m,3k,3g, \
3e,3b,9f,9s,9e,9,4,5,7,4b,6,l,n

The arguments to MANSECTS are derived from the man subdirectories available. The number of subdirectories has increased dramatically in this release because each subsection has its own directory. This new structure improves the performance of the man command and gives you finer control over the search path. The next two figures compare the man directories for the two releases.

sunos4.1% ls /usr/share/man
man1/   man2/   man3/   man4/   man5/   man6/   man7/   man8/  
manl/   mann/

sunos5.6% ls /usr/share/man
man.cf  man1f/  man3/   man3g/  man3n/  man3x/  man6/   man9f/
man1/   man1m/  man3b/  man3i/  man3r/  man4/   man7/   man9s/
man1b/  man1s/  man3c/  man3k/  man3s/  man4b/  man9/   manl/
man1c/  man2/   man3e/  man3m/  man3t/  man5/   man9e/  mann/

whatis and windex Databases

The SunOS release 4 man page table of contents and keyword database is called whatis. In the SunOS release 5.7 software, this information is in the windex file. In both releases, the database is created by the catman command, and is used by the man, apropos, and whatis commands.

The windex file also has a slightly different format than the whatis file, as you can see from the following comparison of the two release versions.

sunos4.1% man -k tset
tset, reset (1)    - establish or restore terminal characteristics

sunos5.6% man -k tset
reset  tset (1b)   - establish or restore terminal characteristics
tset   tset (1b)   - establish or restore terminal characteristics

Using the man Command

Table 6-5 shows that SunOS release 5.7 version of the man command has additional search options.

Table 6-5 New man Command Options

Option 

Description 

-a

Displays all man pages that match file name. The pages are displayed sequentially in the order they are found.

-l

Lists all man pages that match file name. You can use the output of this command to specify a section number with the -s option.

-s section-number

Searches section-number for file name. In the SunOS release 4 software, the man command accepted the section number as an option; in this release, the section number must be preceded by -s.

-F

Forces the man command to search all directories until file name is found. This option overrides the windex database and the man.cf file.

See the man(1) man page for a complete description of the SunOS release 5.7 man command.

Chapter 7 Device Administration

This chapter explains SunOS release 5.7 device naming conventions and discusses changes to device-related tasks such as getting information about disks, adding devices to a system, and using Volume Management.

Device Naming Conventions

Device naming conventions have changed between the SunOS release 4 and SunOS release 5.7 platforms. In addition, the /dev directory, which contains the special device names, has been changed from a flat directory to a hierarchical one, with a separate subdirectory for each category of device. For example, the location of disk device files is /dev/dsk, while raw disks are located in /dev/rdsk.

SunOS release 5.7 commands that take device names as arguments must use the SunOS release 5.7 device naming conventions. However, you can still use and recognize the SunOS release 4 device names if you install the SunOS/BSD Source Compatibility Package. See Source Compatibility Guide for additional information.

Convention for Disks

The disk partition slice numbers (0 through 7) correspond to partitions a through h of previous SunOS releases.

Graphic
Note -

Most SCSI disks have embedded controllers. This means that the drive number will always be 0 but the target number varies. For example, if an external disk drive has its rear switch set to 2, the device name for the first slice is /dev/dsk/c0t2d0s0, not /dev/dsk/c0t0d2s0.


Because the names for SCSI targets 0 and 3 were reversed on some sun4c systems, device naming can be confusing. Under the SunOS 4.1.x software, SCSI target 3 was called sd0(), but it is now properly named c0t3d0. SCSI target 0 was called sd3(), but it is now named c0t0d0. Other SCSI disk names translate normally. For example, in the SunOS release 5.7 software, sd2a is c0t2d0s0 and sd2b is c0t2d0s1.

Convention for Tape Drives

Graphic

Table 7-1 provides some examples that compare the SunOS release 4 and SunOS release 5.7 device naming conventions.

Table 7-1 SunOS release 4 and SunOS Release 5.7 Device Names

Device Description 

SunOS Release 4 Device Name 

SunOS Release 5.7 Device Name

Disk devices

/dev/sd0g

/dev/dsk/c0t3d0s6

 

/dev/rsd3b

/dev/rdsk/c0t0d0s1

 

/dev/rsd3a

/dev/rdsk/c0t0d0s0

Magnetic tape devices 

/dev/nrmt8

/dev/rmt/8hn

 

/dev/rst0

/dev/rmt/0

CD-ROM device

/dev/sr0

/dev/dsk/c0t6d0s2

Obtaining Disk Information

The commands that report disk information in the SunOS release 5.7 software have changed. df(1M) and du(1M) are still available, but have changed. dkinfo(8), and devinfo(1M) are replaced by prtvtoc and sysdef -d. This section provides an overview of these changes.

If you have installed the compatibility packages, SunOS release 4 command versions can be found under /usr/ucb/df and /usr/ucb/du.

df Command

The df command has been changed to support the VFS architecture. As with the other VFS commands, there are generic and file-system versions of the command. The syntax in the SunOS release 5.7 command differs significantly from that used in the SunOS release 4 version (see Appendix A, Commands Reference Table, for more information). For more information on VFS, see "Virtual File System Architecture".

The df command now reports disk space in 512-byte blocks instead of kilobytes, but the -k option can be used to report disk space in kilobytes. Also, the -t option behaves differently; formerly, it restricted the output to file systems of a specified type (for example, "nfs" or "4.2"). The SunOS release 5.7 version produces a full listing with totals.

Finally, use the SunOS release 5.7 device naming conventions when specifying special device names to this command. See "Device Naming Conventions" for details.

du Command

Like df, the du command reports disk usage in 512-byte blocks instead of kilobytes. There's also a -r option that causes the normally "silent" command to generate messages when it has difficulty reading a directory or opening a file.

dkinfo Command

The SunOS release 4 dkinfo command is no longer available. To print device information, use prtvtoc(1M) instead of dkinfo.

The prtvtoc command reports the important information stored on a disk's label, including information on the disk's partitions. For more information about prtvtoc, see System Administration Guide, Volume I.

The following screen shows sample output for the SunOS release 5.7 prtvtoc command.


# prtvtoc /dev/rdsk/c0t2d0s2 
* /dev/rdsk/c0t2d0s2 partition map 
* 
* Dimensions: 
*     512 bytes/sector 
*      36 sectors/track 
*       9 tracks/cylinder 
*     324 sectors/cylinder 
*    1272 cylinders 
*    1254 accessible cylinders 
* 
* Flags: 
*   1: unmountable 
*  10: read-only 
*                         First   Sector      Last       Mount
*  Partition  Tag  Flags  Sector   Count    Sector   Directory
        0       0     00       0   32724    32723       / 
        1       0     00   32724   65448    98171
        2       0     00       0  406296   406295
        6       0     00   98172  308124   406295       /usr

devinfo Command

The SunOS release 4 version of devinfo is incompatible with the SunOS release 5.7 version. To produce output similar to the SunOS release 4 version, use prtconf with the -v option.

Adding Devices to the System

When you boot the system, it does a self-test and checks for all attached devices that are attached. After you add a new device to the system, use boot -r to activate dynamic reconfiguration of the kernel. A reconfiguration script is run to load all the device drivers listed in the module's directories and to create the corresponding hardware nodes. See the kernel(1M) man page for more information.

You can also use boot -a to interactively add drivers or modules to the system, but if you do, you will be asked to provide other boot parameters, including what to boot and where the root file system is.

Paths to the system files and kernel modules are stored in /etc/system. When the system boots, it reads the information in /etc/system to determine which modules to load. You can specify a different path by using the MODDIR syntax of the system(4) file or by using boot -a.

For more information about boot(1m) or about adding devices and drivers, see System Administration Guide, Volume I.

Dynamic Reconfiguration

Dynamic reconfiguration, available on certain SPARC servers with the Solaris 7 release, allows a service provider to remove or replace hot-pluggable system I/O boards in a running system, eliminating the time lost in rebooting. Also, if a replacement board is not immediately available, the system administrator can use dynamic reconfiguration to shut down a failing board while allowing the system to continue operation.

See your hardware manufacturer's documentation for information about whether dynamic reconfiguration is supported on your server.

Using Volume Management

Beginning with the Solaris 2.2 release, a new layer of software manages CD-ROM and diskette devices -- Volume Management. This software automates the interaction between you and your CDs and diskettes.

The OpenWindows and CDE File Manager applications have been modified to use Volume Management to provide immediate user access to CDs and diskettes with file systems. See OpenWindows User's Guide for more information on File Manager's new features.

There are also several new commands to help you administer Volume Management on your system.

Volume Management automatically mounts CD and diskette file systems when removable media is inserted into the devices. Any CD or diskette file system will be automatically mounted in the locations described in Table 7-2.

Table 7-2 Location of CD-ROM and Diskette With a File System

Media 

Location 

CD

/cdrom/cdrom_name

Diskette

/floppy/floppy_name

If the CD or diskette does not contain a file system, it will be accessible in the locations described in Table 7-3.

Table 7-3 Location of CD-ROM and Diskette Without a File System

Media 

Location 

CD

/vol/dev/aliases/cdrom0

Diskette

/vol/dev/aliases/floppy0

For security reasons, these file systems are mounted setuid. See the mount(1M) man page for a description of this and other mount options.

For more information on configuring Volume Management and on using diskettes and CDs, see System Administration Guide, Volume I.

Man pages for Volume Management components are also available. See rmmount(1), rmmount.conf(4), volcancel(1), volcheck(1), vold(1M), volmgt(3), vold.conf(4), volfs(7), and volmissing(1).


Note -

Volume Management now controls these CD-ROM paths: /dev/dsk/c0t6d0s0 and /dev/rdsk/c0t6d0s0; and these diskette paths: /dev/diskette and /dev/rdiskette. Attempts to mount or access a CD or diskette using these paths will result in an error message.


There are several new commands to help you administer Volume Management on your system, as described in Table 7-4.

Table 7-4 Volume Management Commands

Command 

Description  

rmmount(1)

Removable media mounter. Used by vold to automatically mount /cdrom and /floppy when a CD or diskette is installed.

volcancel(1)

Cancels a user's request to access a particular CD-ROM or diskette file system 

volcheck(1)

Checks drive for installed media. By default, checks drive pointed to by /dev/diskette.

volmissing(1)

Notifies user when an attempt is made to access a CD or diskette that is no longer in the drive 

vold(1)

Volume Management daemon, controlled by /etc/vold.conf

There are also two configuration files to define Volume Management's actions: /etc/vold.conf and /etc/rmmount.conf. See the vold.conf(4) and rmmount.conf(4) man pages for descriptions of these files, and see System Administration Guide, Volume I for information on managing CD-ROM and diskette devices.

Chapter 8 Startup and Shutdown

This chapter describes changes to procedures for booting and shutting down a system.

See System Administration Guide, Volume I for detailed descriptions of boot procedures.

Booting

The Solaris 7 boot process makes system administration easier. Some of the major changes include:

In the Solaris 7 operating environment, the shutdown and init commands are the preferred way to halt, shut down, or reboot your system. While the reboot command is available in the Solaris 7 operating environment, it brings the system down quickly without shutting down services in an orderly way. Table 8-1 shows the SunOS release 5.7 commands that replace SunOS release 4 commands.

Table 8-1 SunOS release 5.7 Replacements for reboot and fastboot

SunOS Release 4Command 

SunOS Release 5.7 Command Replacement 

reboot

shutdown -i 6, init 6

fastboot

boot, init 6

boot Command Changes

The SunOS release 5.7 software has these additional options for the boot command:

Booting From the PROM

Be aware of these changes when booting from the PROM:

Summary of Boot Differences

Table 8-2 summarizes booting differences.

Table 8-2 Booting Differences

SunOS release 4 

SunOS release 5.7 

Feature 

bootsd

bootblk

Now loads ufsboot from disk

boot program

ufsboot

Now loads unix from disk

/vmunix

/kernel/genunix

Bootable kernel image 

boot.sun4c.sunos.4.1

inetboot

Mounts and copies unix from network

rc.boot rc.single

/etc/rcS

Mounts /usr and checks file systems

rc.local

/etc/rc2 /etc/rc3

System config scripts 

/etc/config

modload /etc/system

Customizes system kernel, loads modules as needed 

PROM monitor, single user, multiuser 

Run states 0 - 6, and S 

System run levels 

/dev/sd1g

/dev/dsk/c0t1d0s6

More descriptive logical device names. See "Device Naming Conventions".

MAKEDEV

boot -r,

add_drv

Makes device nodes

Using the init Command

The init(1M) command replaces the SunOS release 4 fasthalt command in the SunOS release 5.7 software. Use it to shut down a single-user system. You can use init to place the system in a power-down state (init 0) or into single-user state (init 1).

init Command Changes

Note the following changes to the init command:

System Administration Guide, Volume I describes this command in detail.

Changing System Run Levels

The SunOS release 5.7 init command enables you to control the run level (initialization state) of your system and move easily between various modes of operation. The SunOS release 5.7 /sbin/rc scripts control each individual run level instead of putting all system states into one file. This enables you to make changes in a unique file if you create new scripts or modify existing ones. SunOS release 4 systems controlled run levels using /etc/rc, /etc/rc.boot, and /etc/rc.local files.

The SunOS release 4 software had three run levels: PROM monitor, single user, and multiuser. These correspond to run levels 0, 1, and 3 in the SunOS release 5.7 software.

Table 8-3 gives an overview of what each run level's /sbin/rc script does.

Table 8-3 SunOS Release 5.7 System Initialization Run Levels

Run Level 

Default SunOS Release 5.7 Function 

Shuts down the system so it is safe to turn off power. Stops system services and daemons. Terminates all running processes. Unmounts all file systems. 

Single-user (system administrator) state for tasks that allow only one user on the system. Stops system services and daemons. Terminates all running processes. Unmounts all file systems. 

Normal multiuser operation without NFS file systems shared. Sets the timezone variable. Mounts the /usr file system. Cleans up the /tmp and /var/tmp directories. Loads the network interfaces and starts processes. Starts the cron daemon. Cleans up the uucp tmp files. Starts the lp system. Starts the sendmail daemon.

Normal multiuser operation of a file server with NFS systems shared. Completes all of the tasks in run level 2. Starts the NFS system daemons. 

Alternative multiuser state (not used). 

Shut down the system so that it is safe to remove power. If possible, automatically turn off system power on systems that support this feature. 

S,s

Single-user state, running with some file systems mounted and accessible.

Shutting Down

Use the shutdown(1M) command when shutting down a system with multiple users. The command sends a warning to all logged-in users and, after 60 seconds, shuts the system down to single-user state.

See System Administration Guide, Volume I for detailed descriptions of shutdown procedures.

In the SunOS release 5.7 software, the shutdown command is the preferred way to halt or shut down a system. shutdown and init use rc scripts to kill running processes. While the halt command is available in the SunOS release 5.7 software, it stops the system quickly without shutting down services in an orderly way. Table 8-4 shows the SunOS release 5.7 commands that replace those in the SunOS release 4 system.

Table 8-4 SunOS Release 5.7 Replacements for halt and fasthalt

SunOS Release 4 Command 

SunOS Release 5.7 Command Replacement 

halt

shutdown -i 0, init 0

fasthalt

shutdown -i 0, init 0

The shutdown and init commands accept a numerical "run-level" argument that controls the shutdown sequence. See the shutdown and init man pages for information about the run-level numbers.

Changes to the shutdown Command

The SunOS release 5.7 shutdown command includes only the options in Table 8-5. This command and its options are described in System Administration Guide, Volume I.

Table 8-5 SunOS Release 5.7 shutdown Command Options

Option 

Description 

-g

Selects "grace" period before shutdown begins.

-i [init state]

Specifies an initial run level (see Table 8-3).

-y

Runs shutdown without asking confirmation questions.

Assumes a "yes" response to all questions. 

-message

Specifies user-supported message. If more than one word, use quotes around the message. 

By default, the SunOS release 5.7 shutdown command asks you to confirm before an actual shutdown begins. You can use the -y option to run it without operator intervention.

The shutdown options are available only in BSD source compatibility mode on Solaris 7 systems.

See Appendix A, Commands Reference Table, for a summary of changes. See shutdown(1M) for information about how the command works.

Using the fasthalt and fastboot Commands

The SunOS release 4 fastboot and fasthalt commands are available if you are running the SunOS/BSD Source Compatibility Package on Solaris 7 systems. The file-system checking features of these commands are not appropriate to a Solaris 7 system.

Using the halt and reboot Commands

The halt and reboot commands do not run the rc scripts in /sbin, so they are not recommended. Since the halt and reboot commands in SunOS release 5.7 systems are not available on other AT&T SVR4 systems, both commands have shutdown and init equivalents.

Chapter 9 File System Administration

This chapter familiarizes you with changes to file systems, virtual file systems, directories, and files. The chapter also describes changes to file system administration including:

For more information on understanding and managing file systems, see System Administration Guide, Volume I.

File System Changes

SunOS release 5.7 and SunOS release 4 file systems are similar, but there are changes in the locations and names of system directories and files. There are also new file systems and new pseudo file systems, and one directory was removed.

Some of the changes to file system locations and names are:

Pseudo File Systems

The TFS pseudo file system is not included in the SunOS release 5.7 software.

Following are the pseudo file system systems that are included:

Added File Systems

The following file systems are included in the SunOS release 5.7 directory structure:

Default File Systems and Directories

The SunOS release 5.7 file system is hierarchical. Figure 9-1 graphically depicts SunOS release 5.7 default directories and file systems (indicated by dotted lines). Subdirectories shown are just a sample of what the directory or file system actually holds. Table 9-1 gives a brief description of each.

Figure 9-1 Solaris 7 Default File Systems and Directory Hierarchy

Graphic

The Solaris 7 software contains a default set of file systems and directories, and uses a set of conventions to group similar types of files together. Table 9-1 lists the default file systems and directories with a brief description.

Table 9-1 Solaris 7 File Systems and Directories

File System or Directory 

Type 

Description 

/

File system 

The top of the hierarchical file tree. The root directory contains the directories and files critical for system operation, such as the kernel (/kernel/unix), the device drivers, and the programs used to boot the system. It also contains the mount point directories where local and remote file systems can be attached to the file tree.

/etc

Directory 

Contains system files used in system administration. 

/usr

File system 

Contains architecture-dependent and -independent sharable files. Files such as man pages that can be used on all types of systems are in /usr/share.

/home

File system 

The mount point for the users' home directories, which store users' work files. By default, /home is now an automounted file system.

/var

Directory 

Contains system files and directories that are likely to change or grow over the life of the local system. These include system logs, vi and ex backup files, and uucp files.

/opt

File system 

Mount point for optional third-party software. On some systems /opt may be a UFS file system on a local disk partition.

/tmp

File system 

Temporary files, cleared each time the system is booted or /tmp is unmounted

/vol

File system 

Contains directories for removable media, managed by vold(1M)

/proc

File system 

Contains a list of active system processes, by number. Does not use any disk space. 

/sbin

Directory 

Essential executables used in the booting process and in manual system recovery

Virtual File System Architecture

The SunOS release 5.7 software features a virtual file system (VFS) architecture that simplifies file system management for systems that support multiple file systems.

Over the years, several different UNIX file systems were developed, each with its own set of commands for file system management. Learning all the variations can be confusing and difficult. The SunOS release 5.7 software addresses this issue with a set of generic commands for file system management. These commands are a part of a common VFS interface that makes differences between file systems transparent with respect to maintenance. The subsections below provide a summary of supported file systems and the generic file system commands.

Supported File System Types

Most file system types included in the SunOS release 4 software are also included in the SunOS release 5.7 software. There is one exception: The translucent file system (TFS) type has been withdrawn from the SunOS release 5.7 software. Table 9-2 summarizes file-system type availability in the SunOS release 4 and SunOS release 5.7 environment.

Table 9-2 Summary of File System Types

Category 

Name 

Description 

SunOS release 4 

SunOS release 5.7 

Disk-based 

UFS

UNIX file system 

Yes 

Yes 

HSFS

CD-ROM file system 

Yes 

Yes 

PCFS

PC file system 

Yes 

Yes 

Network-based

NFS

Sun's distributed computing file system 

Yes 

Yes 

Pseudo

SPECFS

Device special file system 

Yes 

Yes 

TMPFS

/tmp temporary file system

Yes 

Yes 

LOFS

Loopback file system 

Yes 

Yes 

TFS

Translucent file system 

Yes 

No 

 

PROCFS

Process access file system 

No 

Yes 

 

FDFS

File descriptor file system 

No  

Yes 

 

FIFOFS

FIFO/Pipe file system 

No  

Yes 

 

NAMEFS

Name file system 

No 

Yes 

 

SWAPFS

Swap file system 

No 

Yes 

 

CACHEFS

Cache file system 

No 

Yes

For more information on file systems, see the proc(4) and fd(4) man pages and System Administration Guide, Volume I.

Cache File System (CACHEFS)

The Cache File System can be used to improve performance of remote file systems or slow devices such as CD-ROMs. When a file system is cached, the data read from the remote file system or CD-ROM is stored in a cache on the local system.

Swap File Changes

In the SunOS release 5.7 software, SWAPFS is the default swap device when the system boots or you create additional swap space. This swap device uses physical memory as swap space, but also requires physical swap space on a disk.

In SunOS release 4 systems, the default physical swap device depends on the system configuration. Standalone systems default to sd0b and diskless systems get their swap files from the bootparam server. The SunOS release 5.7 software uses the swap file as the default dump device instead of specifying a file on disk.

Unsupported SVR4 File System Types

Table 9-3 shows SVR4 file system types that are not supported in the SunOS release 5.7 software.

Table 9-3 Unsupported SVR4 File System Types

Name 

Description 

BFS

Boot file system 

S5

System V file system 

xnamefs

XENIX semaphore file system

Generic File System Commands

Most file system administration commands have a generic and a file system component. Use the generic commands, which call the file system component. Table 9-4 lists the generic file-system administrative commands, which are located in the /usr/bin directory.

Table 9-4 Generic File-System Administrative Commands

Command 

Description 

clri(1M)

Clears inodes 

df(1M)

Reports the number of free disk blocks and files 

ff(1M)

Lists file names and statistics for a file system 

fsck(1M)

Checks the integrity of a file system and repairs any damage found 

fsdb(1M)

File system debugger 

fstyp(1M)

Determines the file-system type 

labelit(1M)

Lists or provides labels for file systems when copied to tape (for use by the volcopy command only)

mkfs(1M)

Makes a new file system 

mount(1M)

Mounts file systems and remote resources 

mountall(1M)

Mounts all file systems specified in a file-system table 

ncheck(1M)

Generates a list of path names with their i-numbers 

umount(1M)

Unmounts file systems and remote resources 

umountall(1M)

Unmounts all file systems specified in a file-system table 

volcopy(1M)

Makes an image copy of a file system

Most of these commands also have a file system counterpart.


Caution - Caution -

Do not use the file system commands directly. If you specify an operation on a file system that does not support it, the generic command displays this error message: command: Operation not applicable for FSType type.


Syntax of Generic Commands

Most of these commands use this syntax:

command [-F type] [-V] [generic-options] [-o specific-options] [special|mount-point] [operands] 

The options and arguments to the generic commands are:

-F type

Specifies the type of file system. If you do not use this option, the command looks for an entry that matches special or mount point in the /etc/vfstab file. Otherwise, the default is taken from the file /etc/default/fs for local file systems and from the file /etc/dfs/fstypes for remote file systems.

-V

Echoes the completed command line. The echoed line may include additional information derived from /etc/vfstab. Use this option to verify and validate the command line. The command is not run.

generic-options

Options common to different types of file systems.

-o specific-options

A list of options specific to the type of file system. The list must have the following format: -o followed by a space, followed by a series of keyword [=value] pairs separated by commas with no intervening spaces.

special|mount-point

Identifies the file system. The name must be either the mount point or the special device file for the slice holding the file system. For some commands, the special file must be the raw (character) device; for other commands it must be the block device. In some cases, this argument is used as a key to search the file /etc/vfstab for a matching entry from which to obtain other information. In most cases, this argument is required and must come immediately after specific-options. However, the argument is not required when you want a command to act on all the file systems (optionally limited by type) listed in the /etc/vfstab file.

operands

Arguments specific to a type of file system. See the specific man page of the command (for example, mkfs_ufs(4) for a detailed description.

System-wide Default File System Type

The default remote file system type is /etc/dfs/fstype. The default local file system type is /etc/default/fs. See the default_fs(4) man page for more information.

Command Locations

In previous SunOS releases, all file system commands were located in the /etc directory. In the SunOS release 5.7 software, file system commands are organized into separate hierarchies for convenience. All of the file system commands are included in /usr/lib/fs/fstype. Commands needed before /usr is mounted are duplicated in /etc/fs/fstype.

The generic commands are located in /usr/sbin. The commands needed before /usr is mounted are duplicated in /sbin.

Table 9-5 lists the locations of the file-system commands.

Table 9-5 Locations of File System Commands

Type 

Location of Primary Version 

Location of Duplicate Version (root)

Generic 

/usr/sbin

/sbin

Specific 

/usr/lib/fs

/etc/fs

New UFS Mount Option

To ignore access time updates on files, you can specify the o noatime option when mounting a UFS file system. This option reduces disk activity on file systems where access times are unimportant (for example, a Usenet news spool).

Directory and File Changes

This section describes the changes to directories and files between the SunOS release 4 and SunOS release 5.7 environment.

/dev Directory

The /dev directory has changed from a flat directory to a hierarchical one. Table 9-6 describes the subdirectories that have been added.

Table 9-6 Additions to the /dev Directory

Subdirectory 

Description 

/dev/dsk

Contains block disk devices 

/dev/rdsk

Contains raw disk devices 

/dev/pts

Contains pseudo terminal (pty) slave devices

/dev/rmt

Contains raw tape devices 

/dev/sad

Contains entry points for the STREAMS Administrative Driver 

/dev/term

Contains terminal devices 

/etc Directory

The /etc directory contains system configuration information. Several files and subdirectories have been added, removed, or changed.

Table 9-7 Initialization Scripts and Their Run Control Files

Scripts 

Run Control Files 

/etc/rc0.d

/sbin/rc0

/etc/rc1.d

/sbin/rc1

/etc/rc2.d

/sbin/rc2

/etc/rc3.d

/sbin/rc3

/etc/rc4.d

/sbin/rc4

/etc/rc5.d

/sbin/rc5

/etc/rc6.d

/sbin/rc6

/etc/rcS.d

/sbin/rcS

Table 9-8 Additions to the /etc Directory

Subdirectory 

Description 

/etc/default

Defines default system configuration 

/etc/inet

Defines Internet services configuration 

/etc/lp

Defines LP system configuration 

/etc/opt

Defines installed optional software 

/etc/rcn.d

Defines run-state transition operations 

/etc/saf

Defines Service Access Facility (SAF) configuration 

/etc/vfstab File

In the SunOS release 5.7 software, the virtual file system file /etc/vfstab replaces the /etc/fstab file. In the virtual file system architecture, the /etc/vfstab file provides default file system parameters used by the generic commands for file system management. For information about these commands, see "Generic File System Commands".

In addition to the name change, the /etc/vfstab file is different from the /etc/fstab file in the following ways:

Table 9-9 /etc/vfstab File Field Names and Content

Field Name 

Content 

device to mount

The entry in this field may be any of the following: 

The block special device for local UFS file systems (for example, /dev/dsk/c0t0d0s0)

The resource name for remote file systems (for example, myserver:/export/home for an NFS system)

The name of the slice on which to swap (for example, /dev/dsk/c0t3d0s1)

The /proc directory and proc file system type

CD-ROM as hsfs file system type

/dev/diskette as pcfs or ufs file system type

This field is also used to specify swap file systems. For more information on remote file systems, see NFS Administration Guide .

device to fsck

The raw (character) special device that corresponds to the file system identified by the device to mount field (for example, /dev/rdsk/c0t0d0s0). This field determines the raw interface that is used by fsck. Use a dash (-) when there is no applicable device, such as for a read-only file system or a network-based file system.

mount point

The default mount-point directory (for example, /usr for /dev/dsk/c0t0d0s6).

FS type

The type of file system identified by the device to mount field.

fsck pass

The pass number used by fsck to determine whether to check a file system. When the field contains a dash (-), the file system is not checked. When the field contains a value of 1 or more, the file system is checked; non-UFS file systems with a 0 fsck pass are checked. For UFS file systems only, when the field contains a 0, the file system is not checked. When fsck is run on multiple UFS file systems that have fsck pass values greater than 1 and the preen option (-o p) is used, fsck automatically checks the file systems on different disks in parallel to maximize efficiency. When the field contains a value of 1, the file system is checked sequentially. Otherwise, the value of the pass number does not have any effect. In SunOS 5.6 system software, the fsck pass field does not explicitly specify the order in which file systems are checked.

automount?

yes or no for whether the file system should be automatically mounted by mountall when the system is booted. An auto in the fourth column of your SunOS release 4 /etc/fstab would translate to a "yes" in this column; a noauto, a "no." Note that this field has nothing to do with the automount program.

mount options

A list of comma-separated options (with no spaces) that are used in mounting the file system. Use a dash (-) to show no options. See the mount(1M) man page for a list of the available options.

For detailed information about the /etc/vfstab file, see System Administration Guide, Volume I.

/etc/shadow File

The SunOS release 5.7 software contains an /etc/shadow file, which includes entries that force password aging for individual user login accounts. The /etc/shadow file also contains encrypted passwords. The /etc/shadow file does not have general read permissions. This prevents general access to the encrypted passwords that formerly appeared in the /etc/passwd file.

/sbin Directory

The SunOS release 5.7 /sbin directory contains the rc scripts used to alter system run levels as well as the rcs script used to initialize the system prior to mounting file systems. See the rc man pages and "Changing System Run Levels" for a description of the scripts.

/usr Directory

The SunOS release 5.7 /usr directory contains sharable files and executables provided by the system. Table 9-10 describes the subdirectories that have been added to the SunOS release 5.7 /usr directory.

Table 9-10 Additions to the /usr Directory

Subdirectory 

Description 

/usr/ccs

C compilation systems 

/usr/snadm

Executables and other files used by admintool

Table 9-11 shows files that were in the SunOS release 4 /usr directory but have been moved in the SunOS release 5.7 software.

Table 9-11 Files Changed in the /usr Directory

SunOS release 4 Location 

SunOS release 5.7 Location 

/usr/5bin

/usr/bin

/usr/5include

/usr/include

/usr/5lib

/usr/lib

/usr/etc

/usr/sbin

/usr/old

Contents removed  

/usr/xpg2bin

/usr/bin

/usr/xpg2lib

/usr/lib

/usr/xpg2include

/usr/include

Appendix E, / and /usr File Systems Changes, contains tables with detailed information about the directories and files in each of these file systems.

/var Directory

The /var directory contains files that change sizes during normal operation. Several files and subdirectories in the /var directory have been added, removed, or changed.

/kernel Directory

The SunOS release 5.7 /kernel directory contains the operating system kernel and kernel-level object modules that were in the SunOS release 4 /sys directory. Table 9-12 describes the subdirectories that have been added to the /kernel directory.

Table 9-12 Additions to the /kernel Directory

Subdirectory 

Description 

/kernel/drv

Device driver and pseudo-device driver modules 

/kernel/exec

Kernel modules to run ELF or a.out executable files

/kernel/fs

Kernel modules that implement file systems such as ufs, nfs, proc, fifo, and so on

/kernel/misc

Miscellaneous modules 

/kernel/sched

Modules containing scheduling classes and corresponding dispatch tables 

/kernel/strmod

STREAMS modules 

/kernel/sys

Loadable system calls such as system accounting and semaphore operations 

/kernel/unix

Operating system kernel, loaded at boot time 

/opt Directory

The SunOS release 5.7 /opt directory contains optional add-on application software packages. These packages were installed in the SunOS release 4 /usr directory.

/sys Directory

The /sys directory has been retired. Its files, used to reconfigure the kernel, have been made obsolete by the dynamic kernel.

Using File System Administration Commands

The file system administration commands that have changed in the SunOS release 5.7 software include:

Mounting File Systems and autofs

The biggest change to the mounting capability is automatic mounting or autofs. The autofs program automatically mounts directories when you access them using, for example cd(1) or ls(1). This capability includes file hierarchies, CD-ROM, and diskette file systems.

autofs starts automatically when the system enters run level 3, or you can invoke it from a shell command line.

autofs works with the file systems specified in maps. These maps can be maintained as NIS, NIS+, or local files. The autofs maps can specify several remote locations for a particular file. This way, if one of the servers is down, autofs can try to mount from another system. You can specify in the maps which servers are preferred for each resource by assigning each server a weighting factor.

Mounting some file hierarchies with autofs does not exclude the ability to mount others with the mount command. A diskless system must have entries for / (root), /usr, and /usr/kvm in the /etc/vfstab file. Because shared file systems should always remain available, do not use autofs to mount /usr/share.

The following example shows how to manually mount a file system listed in the /etc/vfstab file using the mount command.

  1. Change to the directory in which you want to create the mount point.

  2. Create the mount-point directory.

  3. Specify either the mount point or the block device.

    Specifying the mount point is usually easier. The rest of the information is read from /etc/vfstab.

  4. Become root and type the mount command, specifying either the mount point or the block device.

    Specifying the mount point is usually easier. The rest of the information is read from /etc/vfstab.


    # mount mount-point
    

    The file system is now mounted.

    For instructions showing how to mount different types of file systems using mount with or without options, see System Administration Guide, Volume I.

Changes to the mount Command

Some of the names and forms of the mount commands are different, as listed in Table 9-13.

Table 9-13 mount Command Differences

SunOS release 4 

SunOS release 5.7 

mount

mount

mount -a

mountall

umount

umount

umount -a

umountall

exportfs

share

exportfs -u

unshare

showmount -a

dfmounts

showmount -e

dfshares

See Appendix A, Commands Reference Table, for more information on changes to these commands.

Automatic Mounting of /cdrom and /floppy

In this release, the CD-ROM and diskette file systems are automatically mounted in /cdrom and /floppy when removable media are inserted into these drives. Since these file systems are now managed by the Volume Management daemon, vold(1M), you cannot mount these devices yourself. See "Using Volume Management" for more information.

Specifying File Systems in the /etc/vfstab File

In the SunOS release 5.7 system, you need to list file systems that you want mounted at system startup in your /etc/vfstab, instead of in the /etc/fstab file. The format of /etc/vfstab differs from that of /etc/fstab. For a discussion of the /etc/vfstab file, see "/etc/vfstab File ".

Monitoring File Systems

Table 9-14 shows the file and directory monitoring commands and changes.

Table 9-14 File and Directory Monitoring Commands

Command 

Information Provided 

Change (if applicable) 

ls

Size, age, permissions, owner of files 

None 

du

Total size of directories and their contents 

None 

df

Disk space occupied by file systems, directories, or mounted resources; used and available disk space 

The SunOS release 4 version of this command provides a different output format containing somewhat different output than the SunOS release 5.7 df command. The SunOS release 5.7 -k option provides output formats similar to those in the SunOS release 4 command. The SunOS release 4 df -t filesystem type reports on files of the specified type, whereas the SunOS release 5.7 df-t command prints full listings with totals.

quot

Number of blocks owned by users 

None 

find

Names of files meeting search criteria 

The -n cpio-device SunOS release 4 option is not available in the SunOS release 5.7 command.

Write the current file on device in cpio -c format.

Sharing File Systems

File systems were "exported" in the SunOS release 4 software to make them available to other systems. This was done through the /etc/exports file and the exportfs command. However, only NFS systems could be exported.

In the SunOS release 5.7 software, this same concept is referred to as "sharing resources," and it has been expanded to include more file systems. File systems are shared with the share(1M) and shareall(1M) commands. The share command is similar to the exportfs pathname command, while shareall is similar to the exportfs -a command.

The share -F fstype option specifies the type of file system to be shared. If the -F option is not specified, share uses the first file-system type listed in the /etc/dfs/dfstab file.

File systems that you want to be shared automatically should have share command entries in the /etc/dfs/dfstab file (which replaces the /etc/export file). The commands specified in this file are run automatically when the system enters run level 3 (multiuser mode with network file sharing).

Example of /etc/dfs/dfstab File Entries

The following entry gives clients on mercury, venus, and mars read-write access to /export/home1; the second entry gives clients on saturn and jupiter read-only access to /export/news.

share -F nfs -o rw=mercury:venus:mars -d "Home Dir" /export/home1
share -F nfs -o ro=saturn:jupiter -d "News Postings" /export/news

When the system is running in multiuser mode, these file systems are available to the clients listed. The share command displays all resources shared by the local system.

% share
-               /export/home1   rw=mercury:venus:mars   "Home Dir"
-               /export/news    ro=saturn:jupiter   "News Postings"

Creating New File Systems

You define, specify, and create a new file system using either the newfs(1M) or the mkfs(1M) command. The following sections highlight changes in the newfs and mkfs commands.

newfs Command

The SunOS release 5.7 newfs command is a convenient front end to the mkfs command. The newfs command does not support the virtual file-system architecture; it is intended for creating UFS-type file systems only. When you use newfs, it calls and passes arguments to mkfs, which does the real work when creating a ufs file system.

The newfs command accepts only names that conform to the SunOS release 5.7 device naming conventions (see "Device Naming Conventions").

mkfs Command

The SunOS release 5.7 mkfs command differs significantly from the SunOS release 4 version of the command. The SunOS release 5.7 version provides for different file system types, and its command syntax is entirely different (see "Generic File System Commands"). Like newfs, mkfs accepts only names conforming to the SunOS release 5.7 device naming conventions.

Although mkfs now supports different types of file systems, in practice it is almost always used to create ufs file systems. However, mkfs isn't usually run directly; it is usually called by the newfs command.

See mkfs(1) man pages for additional details.

Checking File Systems

The SunOS release 5.7 fsck(1M) command differs significantly from the SunOS release 4 version of the command. In keeping with the virtual file-system (VFS) architecture, the fsck file-checking utility has two parts:

Backing Up and Restoring Files

This section discusses the changes to backup and restore commands and SunOS release 5.7 and describes how to use the ufsdump, ufsrestore, dd, tar, and cpio commands.

The SunOS release 4 software supported several utilities for backing up and restoring files: dump, restore, tar, cpio, dd, and bar, as well as the unbundled Backup CoPilot program. This release supports all of these utilities except bar and Backup Copilot. SunOS release 4 bar files can be restored on a SunOS release 5.7 system but you cannot create new bar files. The dump(8) and restore(8) commands were renamed ufsdump(1M) and ufsrestore(1M). Files created with the SunOS release 4 dump command can be restored on a SunOS release 5.7 system with ufsrestore.

The SunOS release 5.7 software has two additional utilities for copying file systems: volcopy(1M) and labelit(1M).

ufsdump Command

The ufsdump command accepts the same command syntax as the SunOS release 4 dump command. ufsdump also accepts options listed in Table 9-15.

Table 9-15 ufsdump Command Options Not Available With the dump Command

Option 

Function 

-l

Autoload. When reaching the end of a tape (before completing the dump), take the drive offline and wait up to two minutes for the tape drive to be ready again. This gives autoloading (stackloader) tape drives a chance to load a new tape. If the drive is ready within two minutes, continue. If it is not ready after two minutes, prompt an operator to load another tape and wait. 

-o

Offline. After completing the dump or reaching the end of a tape or diskette, take the drive offline and rewind the tape or eject the diskette. This prevents another process from using the drive and overwriting your data. 

-S

Estimate size of dump. Determine the amount of space that is needed to perform the dump and output a single number indicating the estimated size of the dump in bytes. This is most useful for incremental backups. 

Unlike dump, ufsdump can detect the end of medium, so you no longer have to use the -s size option to force dump programs to move to the next tape before reaching the end. Nevertheless, to ensure compatibility with older versions of the restore command, the -s option has been retained in ufsdump.

Even though ufsdump now can detect the end of medium, it has no way to predict the number of diskettes or tapes needed for a dump--unless you specify the medium size with the -s option. Therefore, the messages displayed at the start of a backup do not indicate the number of diskettes or tapes required unless you have specified the medium size.

The -w and -W options behave a little differently in the SunOS release 5.7 software. In the SunOS release 4 software, these options list all file systems that are scheduled for backup according to the backup frequencies specified in the /etc/fstab file. Since the SunOS release 5.7 equivalent file, /etc/vfstab, has no provision for specifying backup frequencies, these options now assume that each file system will be backed up daily. Therefore, they now list any file systems that have not been backed up within a day.

When performing backups across the network (backing up local file systems to a remote tape drive), use the device naming convention that is appropriate for the system with the tape drive. If the system with the tape drive is a SunOS release 5.7 system, use the device naming convention to identify the tape drive; otherwise, use the SunOS release 4 convention.

ufsrestore Command

The ufsrestore command in the SunOS release 5.7 software is similar to the restore command in the SunOS release 4 software. You will be able to restore backups made with the SunOS release 4 dump command with one exception: you cannot restore multivolume backups from diskette. If you have backup scripts that invoke restore, change them to invoke ufsrestore instead.

dd Command

In the SunOS release 4 version of the dd command, the size suffix -w (words) denotes a size unit of 4 bytes. In the SunOS release 5.7 version, -w denotes a unit of 2 bytes. In addition, the SunOS release 5.7 version now supports the -unblock and -block conversion options.

tar and cpio Commands

Because they use a nonbinary format, the tar and cpio commands are the only utilities to successfully interchange data between SVR4 implementations. Other backup utilities, such as ufsdump and dd, are unique to the vendor and are not guaranteed to work successfully from one SVR4 implementation to another.

The tar command is unchanged in this release; it accepts the same options and command syntax as the SunOS release 4 command. However, since the device naming scheme has changed in the SunOS release 5.7 software, the tarfile (or device) argument is affected. When using the -f function modifier, specify the device argument as /dev/rmt/unit, where unit is a tape drive number and density. Table 9-16 shows the tape drive density characters in tape device names.

Table 9-16 Tape Drive Density Characters in Tape Device Names

Density 

Description 

Null 

Default "preferred" (highest) density 

Low 

Medium 

High 

Compressed 

Ultra 

The tar command no longer uses /dev/rmt8 as its default output device. When the -f modifier is not used and the TAPE environment variable is not set, the tar command uses the defaults set in the /etc/default/tar file.

The SunOS release 5.7 cpio command supports the SunOS release 4 options and command syntax. cpio has been expanded to include many new options, as listed in Table 9-17.

Table 9-17 Additional cpio Options

Option 

Command Available With Option 

Description 

-A

cpio -o

Appends files to an archive. 

-k

cpio -i

Attempts to skip corrupt file headers and I/O errors encountered. This option lets you copy files from a medium that is corrupted or out of sequence. 

-L

cpio -o or cpio -p

Follows symbolic links. 

-V

cpio -i, cpio -o, or cpio -p

Special verbose. Prints a dot for each file read or written. This option assures you that cpio is working, without printing all file names.

-C bufsize

cpio -i or cpio -o

Blocks I/O bufsize bytes to the record, where bufsize is a positive integer. When neither -C nor -B is specified, the default buffer size is 512 bytes.

-E filename

cpio -i

Specifies and inputs file containing a list of file names to be extracted from the archive. 

-H header

cpio -i or cpio -o

Reads or writes header information in header format. header can be one of:

bar (read only), crc, CRC, odc, tar, TAR, ustar, or USTAR.

-I filename

cpio -i

Reads filename as an input archive.

-M message

cpio -i -I filename or

cpio -o -O filename

Defines a message to use when switching media. 

-O filename

cpio -o

Directs the output to filename.

-R userid

cpio -i or cpio -p

Reassigns ownership and group information for each file to userid.


Note -

cpio requires one of three mutually exclusive options to specify the action to take: -i (copy in), -o (copy out), or -p (pass).


UFS Logging

The Solaris 7 release provides UFS logging, the process of storing transactions (changes that make up a complete UFS operation) into a log before the transactions are applied to the UFS file system. Once a transaction is stored, the transaction can be applied to the file system later.

UFS logging provides two advantages. It prevents file systems from becoming inconsistent, therefore eliminating the need to run fsck(1M). And, because fsck can be bypassed, UFS logging reduces the time required to reboot a system if it crashes, or after an unclean halt.

UFS logging is not enabled by default. To enable UFS logging, you must specify the -o logging option with the mount(1M) command when mounting the file system. Also, the fsdb(1M) command has been updated with new debugging commands to support UFS logging.

See System Administration Guide, Volume I, for more information.

Chapter 10 Setting Up a Solaris 7 Server to Support SunOS Release 4 Diskless Clients

This chapter discusses the set up of a Solaris 7 server to support SunOS release 4 diskless clients.

The following sections describe programs included in the SUNWhinst package used to configure the Solaris 7 server.


Note -

The SUNWhinst package is available on the Solaris Easy Access Server 2.0 software CD in the AdminSuite_2.3+AutoClient_2.1/4.x directory.


Adding SunOS Release 4 Support to a Solaris 7 Server

This section explains how to prepare a Solaris 7 system to serve SunOS release 4 diskless client.


Note -

Ensure that all system data has been restored before you use the commands in this procedure. The /export file system is particularly important because it contains client information. See Chapter 3, Converting a SunOS Release 4 System to the Solaris 7 Environment.


Some sites continue to use SunOS release 4 clients systems after a server has been upgraded with Solaris 7 software.

Systems such as Sun-3TM machines, for example, cannot be upgraded with Solaris 2.2 or Solaris 7 software. For those systems and other SunOS release 4 clients on a Solaris 7 network, you can add the SUNWhinst package to the /export partition on the server to establish the multiple OS operation required for SunOS release 4 clients.

The SUNWhinst package includes three programs you run to configure the /export directory on a Solaris 7 server. The three programs are:

Before beginning any of these installation procedures, ensure that the SUNWhinst package is properly loaded. Use the pkginfo(1) command to generate a list of installed packages and then check the list to ensure that all necessary packages were installed, including the SUNWhinst package.

For details on adding and removing packages, see System Administration Guide, Volume I.

Running discover4x

discover4x analyzes the support that remains for SunOS release 4 clients after the server has migrated to the Solaris 7 operating environment.

As superuser, type the following.

# discover4x

The discover4x program runs from 1 - 60 seconds, depending on the amount of software examined.

discover4x may report messages such as the following.

Setting up proto root for sun4c arch

Updating server databases to include sun4c sunos 4.1.2 support

Support for sun4c clients must be added using install4x, if \

           sun4c clients are served by this machine.

If your site has completed a custom Solaris 7 installation that changed the location of the /export directory, discover4x examines that directory if you invoke it with the directory name as a single argument. For instance, if the /export software is stored in /clients directory, use the following command.

# discover4x /clients

Setting Up the CD-ROM Drive for install4x

Run the install4x program on a server with the Solaris 7 operating environment using one of the three procedures listed in the following section.

Insert the SunOS release 4 CD into the CD-ROM drive before you proceed.

Using a Local CD-ROM Drive

If you are running install4x on a system with a local CD-ROM drive, Volume Management automatically mounts the CD directory on /cdrom/volume1/s0 after you install the CD into the drive.

Using a Remote CD-ROM Drive (Solaris 7 Software)

If install4x is to use a CD-ROM drive on a remote system running the Solaris 7 operating environment, Volume Management automatically mounts the CD directory on /cdrom/volume1/s0. Then type the following command after you install the CD into the drive.

# share -F nfs -o ro /cdrom/volume1/s0 

If you are not sharing other NFS systems at boot time, you need to invoke the mountd(1M) and nfsd(1M) daemons.

Type the following commands on the local system.

# mkdir /cdrom

# mount -F nfs -o ro cd-host:/cdrom/volume1/s0 /cdrom 

Using a Remote CD-ROM Drive (SunOS Release 4 Software)

If install4x is to use a CD-ROM drive on a remote system that is running the SunOS release 4 software, type the following as superuser on the remote system.

# mkdir /cdrom

# mount -t hsfs -r /dev/sr0 /cdrom 

Once you have typed the previous commands, edit the /etc/exports and insert the following line.

/cdrom -ro

Then type the following command on the remote system.

# exportfs /cdrom 

Type the following commands on the local system.

# mkdir /cdrom

# mount -F nfs -o ro cd-host:/cdrom /cdrom

Running install4x

After you use one of the previous procedures, the CD is mounted on /cdrom. Invoke install4x by typing the following command.

# /usr/sbin/install4x -m /cdrom/volume1/s0 -e /export

If the -m option is not specified, the following prompt is displayed.

Enter name of directory where the 4.1* cd is mounted [/cdrom]: 

If the -e option is not specified, the following prompt is displayed.

Enter name of export directory [/export]: 

As before, if your site has customized the location of the /export directory, you can direct install4x to load software to a different directory by specifying additional arguments, as in the following command.

# /usr/sbin/install4x -m /cdrom -e /clients

Choosing Software to Load

install4x displays the Install Main Menu shown here.


         *** 4.1* Install Main Menu ***

Choose an Architecture (then select modules to load):
                
                                       Modules

                               Selected         Loaded

[a] sun4.sun4c.sunos.4.1.2         8               0
[b] sun4.sun4.sunos.4.1.2          8               0
[c] sun4.sun4m.sunos.4.1.2         7               0

or begin the loading process for all selected modules:

   [L] Load selected module            +----------------------+
                                       |  Disk Usage:         |
or abort without loading any modules   |     0K Selected      |
                                       |   53634K Free        |
   [Q] Quit without loading            +----------------------+
 
Type any bracketed letter to select that function.

Type ? for help.

The Install Main Menu screen presents several options. The first set (labeled here as a, b, and c) is used to specify the architecture for which software is to be loaded. Other options enable the user to direct software loading to begin (L), quit the program (Q), or ask for help (?).

After you choose each appropriate architecture, the program displays the Module Selection.


Select sun4.sun4c.sunos.4.1.2 modules:
+[a] R proto root......240K  |  [o]   User_Diag...........6352K
+[a] R proto root......240K  |  [o]   User_Diag...........6352K
+[b] R usr...........26240K  |  [p]   Manual..............7456K
+[c] R Kvm............4832K  | +[q] D TLI...................48K
+[d] R Install.........936K  |  [r] D RFS..................912K
 [e] D Networking.....1040K  |  [s] D Debugging...........2928K
 [f] D System_V.......4008K  |  [t]   SunView_Programmers.1840K
 [g] D Sys............5288K  |  [u]   Shlib_Custom........1376K
 [h] C SunView_Users..2664K  |  [v]   Graphics............1784K
 [i]   SunView_Demo....512K  | +[w]   uucp.................608K
+[j]   Text............712K  | +[x]   Games...............3136K
 [k]   Demo...........4264K  |  [y]   Versatec............5960K
 [l] C OpenWin_Users.25936K  |  [z]   Security.............312K
 [m] C OpenWin_Demo...4288K  |  [A]   OpenWindows_Progr..10200K
 [n] C OpenWin_Fonts..7840K  |

Module     + = already loaded        R = Required    C= Common
Legend:   ** = selected for loading  D = Desirable   Others opt

Select [a-A] or a Quick-Pick Option:      +-------------------+
 [1] All Req'd Modules [4] All Opt Moduls | Disk Usage:       |
 [2] All Desr'ble  Mod  [5] All Modules   |    0K Selected    |
 [3] All Common Modules                   |   53634K Free     |
or [D] (done) to return to the main scrn  +-------------------+ 

Packages already loaded are shown on the Module Selection screen with a plus sign (+) before the selection letter (that is, in the previous screen the packages associated with letters a, b, c, d, j, q, w, and x are already loaded). Note that loading packages for one architecture may cause those packages to show as being loaded for other architectures since many packages are shared.

Select modules to load by typing the associated character that is shown in brackets. Pressing the key associated with a module toggles the selection status (that is, the module is selected or deselected). Modules selected to be loaded have asterisks (**) displayed before the selection character. You can reload modules already present by answering Y or y when asked to confirm the apparent redundancy.

The software you must be load in order for a release to operate normally is shown with an R to the right of the selection letter. Software that commonly loaded is shown as with a C, and software it is desirable to load is shown with a D.

The Module Selection screen enables you to pick groups of modules to be loaded. When you enter a 1, it marks all required modules for loading. When you enter a 2, it marks all recommended modules. When you enter a 3, it marks all commonly loaded modules. When you enter a 4, it marks all optional modules. When you enter a 5, it marks all modules shown on the Module Selection screen.

Return to the Install Main Menu by typing D.


            *** 4.1* Install Main Menu ***

 Choose an Architecture (then select modules to load):

                                 Modules
                           Loaded      Selected

[a] sun4.sun4c.sunos.4.1.2    8           0
[b] sun4.sun4.sunos.4.1.2     8           0
[c] sun4.sun4m.sunos.4.1.2    7           0

or begin the loading process for all selected modules:

 [L] Load selected modules                   +-------------------+
                                             |  Disk Usage:      |
or abort without loading any modules:        |    0K Selected    |
                                             |   53634K Free     |
[Q] Quit without loading                     +-------------------+

Type any bracketed letter to select that function.
Type ? for help.

By typing L on the Install Main Menu, you can load all selected modules. Output similar to the following is displayed.


Installing module `proto root' [size: 248K]
        in directory /export/exec/proto.root.sunos.4.1.2 ...

Updating server databases ...

Press any key to continue:

Running convert4x

convert4x updates the Solaris 7 server with information about all SunOS release 4 clients. The following files and directories are updated when you run convert4x:

Before running convert4x, make certain that the Ethernet addresses are entered in the /etc/ethers file for the clients you are converting. This is necessary because convert4x invokes the rpc.rarpd(1m) daemon.

As superuser, run convert4x by typing the following command.

# /usr/sbin/convert4x 

Optionally, you can specify a single fully qualified path to the location to an alternate client hierarchy. By default, convert4x looks in /export.

As convert4x runs, it displays information on the screen about the actions taken by the script. It warns you if there are any discrepancies in client information. If there is insufficient information for a given client, convert4x reports the error and exits.

If convert4x is successful for existing clients, you do not have to add clients again using Solstice Host Manager.

Chapter 11 Managing Printers, Terminals, and Modems

This chapter describes how to manage printing, and the differences in print commands, in the Solaris 7 environment. It also describes serial port management (which enables terminal and modem connections) through Admintool or the Service Access Facility (SAF).

Printing

This section describes how to set up and administer printers after you install Solaris 7 software. This chapter also describes the changes to printer commands that have taken place between the SunOS release 4 and the Solaris 7 release environments.

Summary of Printing Differences

The SunOS release 5.7 LP print service replaces the SunOS release 4 printing facilities, which were provided by the lpd daemon and lpr, lpq, lprm, and lpc commands. Admintool enables youto set up and administer printers through a graphical user interface. You can also use a command-line interface for the LP print service to administer SunOS release 5.7 printers. For detailed information about Admintool and the command-line interface to the LP service, see System Administration Guide, Volume II.

The services provided by the /etc/printcap file in the SunOS release 4 software are handled in the Solaris 7 operating environment by the terminfo database and by the files in the /etc/lp directory.

Print Commands and the Compatibility Package

You can still use many SunOS release 4 print commands if the system is running the SunOS/BSD Source Compatibility Package. Compatibility mode uses SunOS release 4 command names as an interface to underlying Solaris 7 LP print services and does not actually run them the way a SunOS release 4 system would. When a user types SunOS release 4 commands to set up printing or to print files from a Solaris 7 system, the commands create message files that are handled by the SunOS release 5.7 LP print service scheduler.

Solaris 7 printing provides additional capabilities not available in SunOS release 4 systems. These capabilities enable you to control forms, print wheels, and interface programs, and to set up network print services.

Using Printer Commands

As discussed in a previous section, you can continue to use SunOS release 4 print commands if you have the SunOS/BSD Source Compatibility Package. Table 11-1 shows the basic user print command equivalents.

Table 11-1 User Print Command Equivalents

SunOS release 4 

SunOS release 5.7 

Function 

lpr filename

 

lp filename

Print a file to the default printer 

lpr -P printer filename

lp -d printer file

Print a file to a specific printer 

lpq

lpstat -o printer

Look at a list of the files waiting to print on the default printer 

Check /etc/printcap

lpstat -d

Determine which is the default printer 

Check /etc/printcap

 

lpstat -a

Determine which printers are available 

lprm jobnumber

 

cancel jobid

 

Cancel a print job on the default printer 

Using SunOS Release 5.7 Printer Administration Commands

This section describes differences between printer setup and administration on SunOS release 4 and Solaris 7 systems. All the underlying system services described are available only in the Solaris 7 operating environment. The SunOS release 4 counterparts are not available even in compatibility mode.

You must use the System V printer administration commands lpadmin(1M) and lpsystem(1M) , the terminfo database, and the configuration files in the /etc/lp directory. See System Administration Guide, Volume II for details.

Table 11-2 shows the command equivalents for setting up printing.

Table 11-2 Printer Administration, Setup, and File Equivalents

SunOS release 4 

SunOS release 5.7 

Function 

lpc

lpadmin

Control line printer functions 

/etc/printcap

terminfo database and

/etc/lp/printers/printername/*

File that defines printer functions 

/var/spool

 

/var/spool/lp

Directory where printing system stores spool and lock files 

Not available 

lpmove

Move print queues between printers 

lpc down

reject

Stop queueing to a printer 

Printing troff

In the SunOS release 4 software, you need the following command to send a troff file to the default printer.

% troff filename

In the Solaris 7 operating environment, you must specify that you want the file printed by piping (|) the output to the lp command. Table 11-3 shows the SunOS release 5.7 troff commands.

Table 11-3 SunOS release 5.7 troff Commands

SunOS release 5.7 Command  

Function 

troff file | /usr/lib/lp/postscript/dpost|lp

Sends to default printer that supports troff jobs 

troff file| /usr/lib/lp/postscript/dpost|lp -d printer

Sends to a particular printer 

troff file | lp-Ttroff

Sends to any printer that supports troff jobs

Serial Port Management

This section describes serial port management (which enables terminal and modem connections) through Admintool or the Service Access Facility (SAF).

System Administration Guide, Volume II describes the details of Solaris 7 setup and installation procedures for serial devices.

Terminal and Modem Management

Admintool enables you to set up and modify serial port software for terminals and modems.

Admintool provides:

This tool provides the capabilities of the Service Access Facility's pmadm command.

Service Access Facility (SAF)

Using SAF, you can manage access to all services in a similar way, whether they are on the network or attached only to local systems. SAF uses Service Access Control (SAC) commands to set up and manage services. It provides uniform access to system services, such as:

In previous versions of SunOS operating systems, the method for controlling devices depended both on the device providing the access and on the location of that device. Managing user access involved editing many device files.

SAF helps isolate the system administrator from these device dependencies and provides a common interface for managing a range of services, including the ability to:

SAF's common interface consists primarily of two commands: sacadm and pmadm. The sacadm command controls daemons called port monitors. The pmadm command controls the services associated with the port monitors.

Controlling Port Monitors

SAF's common interface helps control services called port monitors. A port monitor is a program that continuously monitors for requests to log in or requests to access printers or files.

Once a port monitor detects a request, it sets whatever parameters are required to establish communication between the operating system and the device requesting service. Then the port monitor transfers control to other processes (for example, the login program) that provide the services needed.

There are two types of port monitors included in the Solaris 7 operating environment: ttymon and listen. The listen port monitor controls access to network services and handles remote print and file system requests. The ttymon port monitor provides access to the login services needed by modems and alphanumeric terminals.

SAF Functions and Related Programs

SAF's common interface consists primarily of two commands: sacadm and pmadm. The sacadm command controls the port monitors. The pmadm command controls the services associated with the port monitors.

The sacadm command enables you to add and remove port monitors. You can also use the sacadm command to list the status of a port monitor, and to administer configuration scripts for customizing port monitors.

Using the pmadm command, you can add or remove a service, and enable or disable a service. You can, for example, disable all remote logins with one pmadm command. You can also install or replace per-service configuration scripts, or display information about a service.

Using only the sacadm and pmadm commands, a system administrator has complete control over access to resources. However, these two commands are only the interface to the SAF suite of programs and processes that make the integrated management environment possible. The functions and associated programs are:

The service access control, sac, is the most important program in the SAF suite. It is launched by the init program when a machine is first started. In turn, sac starts all the port monitors listed in its administrative file.

For more information on the SAF in general, or on the different ways to use the sacadm and pmadm commands, see System Administration Guide, Volume II.

Chapter 12 Network Service Administration

This chapter outlines changes to the network facilities, TCP/IP and UUCP.

Changes to TCP/IP

The user interface to TCP/IP is virtually the same as in previous releases of the Solaris software, but the administration of NIS+ maps is handled through AdminTool, which is different from the process in the SunOS release 4 software and traditional AT&T SVR4.

The NIS+ maps administered by AdminTool include:

When you are ready to configure SunOS release 5.7 TCP/IP facilities, see TCP/IP and Data Communications Administration Guide for information about setting up TCP/IP.

Also, Solaris 7 software bundles the popular traceroute utility. The traceroute utility is used to trace the route an IP packet follows to an Internet host. It is especially useful for determining routing misconfiguration and routing path failures.

TCP With SACK

TCP selective acknowledgment (TCP SACK) provides the support described in RFC 2018 to solve the problems related to congestion and multiple packet drops, especially in applications using TCP large windows (RFC 1323) over satellite links or transcontinental links.

Changes to NFS

The Solaris 7 operating environment simplifies resource sharing with a new set of commands and files to administer NFS resources. Specifically, exportfs and /etc/exports have been replaced by share, shareall, and /etc/dfs/dfstab.This new command set was designed to allow for future distributed file system types.

Several of the daemons associated with NFS have been renamed. rpc.statd, rpc.lockd, and rpc.mountd are now simply called statd, lockd, and mountd.

Unlike the SunOS release 4 environment, there are no client side block I/O daemons (biods) in the Solaris 7 release. They have been superceded by kernel threads. Also, the NFS daemon, nfsd, has been altered so that it does not spawn multiple copies to handle concurrent requests.

Other features included in this release:

All these features are described in NFS Administration Guide.

PPP

PPP for Solaris 7 systems is an asynchronous implementation of the standard data link-level, point-to-point protocol (PPP) included in the internet protocol suite. PPP enables a network administrator to create a communications link using modems and telephone lines. See TCP/IP and Data Communications Administration Guide for detailed information about expanding your network with PPP.

LDAP

The Lightweight Directory Access Protocol (LDAP) is an open-standard, platform-independent, access protocol based on the X.500 informational model. It is designed to run over TCP/IP and uses simple string encodings. LDAP applications are client-server applications and the client library included in this release enables developers to write LDAP applications and users to run LDAP enabled applications.

IIIMP

Solaris 7 software implements the Internet Intranet Input Method Protocol (IIIMP) to enable seamless interoperability between the input methods provided in Solaris, Java, and non-X Windows applications.

UUCP

The Solaris 7 UNIX-to-UNIX Copy (UUCP) is similar to the HoneyDanBer UUCP available with SunOS release 4 systems. It uses the same set of configuration files, scripts, and commands, so you should be able to restore most changes you made in SunOS release 4 files and scripts to run with this release. However, the spool directory is organized differently in Solaris 7 due to job grades, a mechanism to help sort and prioritize the work load.

Table 12-1 describes the new files and commands offered with Solaris 7 UUCP that were not part of the SunOS release 4 implementation. Table 12-2 describes the log files added to Solaris 7 UUCP.

Table 12-1 New SunOS release 5.7 UUCP Files and Commands

Command or File 

Description 

D. data files

P. data files

These data files are created when a UUCP command line specifies copying the source file to a spool directory. 

All data files have this format: systmxxxxyyy.

systm are the first five characters in the name of the remote system.

xxxx is a four-digit job sequence number assigned by UUCP.

yyy is a subsequence number used to distinguish between several D. files created for a work (C.) file.

/etc/uucp/Grades

Maps text grade names to system names. 

/etc/uucp/Limits

Specifies the number of concurrent UUCP sessions that can occur. Replaces Maxuuscheds and Maxuuxqts files in previous versions.

/etc/uucp/Config

Contains information to override UUCP parameters that can be tuned. Currently, the only parameter of this type is Protocol, so system administrators normally will not have to modify this file.

uuglist

Prints the list of service grades available on the system to use with the -g option of uucp(1C) and uux(1C).

Solaris 7 UUCP includes a few additional features that can affect system administration:

The following sections describe the system administration differences made by each of these additions.

Checkpoint Restart

When communication link failures interrupt UUCP transmissions between SunOS release 4 systems, the transmission starts again from the beginning of the file as soon as communication resumes. Communication between two systems running Solaris 7 UUCP resumes where it was interrupted instead of returning to the beginning. This makes better throughput possible, especially on erratic or noisy transmission lines.

The systems use two new files to store sent and received data and to compare the sizes of the files to determine where to restart transmission. The systems use.P files to store received data and.D files to store transmitted data. These files replace the TM. files of previous UUCP versions. If only one system is running SunOS release 5.7 UUCP, no comparison can take place and transmission restarts from the beginning.

User Job Grades

Job grading enables administrators to divide jobs into work loads that compete against others of similar size, type, priority, or all three. You can sort work loads using any one or a combination of these factors. You can also set access permissions allowing users and groups to obtain each grade of UUCP service.

In the SunOS release 4 software, the user has to choose the grade when the job is submitted. Grades are a single letter, not a name, as they are in the Solaris 7 operating environment. Solaris 7 systems enable administrators to define job grades for an entire site.

Limits File

The /etc/uucp/Limits file specifies the maximum number of concurrent uucico, uuxqt, and uusched processes permitted on a system. This single file replaces the Maxuusched and Maxuuxqt parameters on previous releases.

Config File

The /etc/uucp/Config file contains information to override UUCP parameters that can be tuned. Currently the only parameter available is Protocol and it normally should not be altered by system administrators.

Log Files

Solaris 7 UUCP provides four log files in addition to the four supplied in previous versions. These files record accounting, command, performance, and security information. The command and security log files are created if they do not exist. The accounting and performance log files are written only if they already exist.

Table 12-2 Additional SunOS Release 5.7 UUCP Log Files

File Name 

Function 

/var/uucp/.Admin/account

Records account information for billing 

/var/uucp/.Admin/perflog

Records statistics on uucico operations

/var/uucp/.Admin/security

Records attempted security violations 

/var/uucp/.Admin/command

Records information on commands issued by users or administrators 

When you are ready to set up and use SunOS release 5.7 UUCP, see TCP/IP and Data Communications Administration Guide for complete information.

Chapter 13 Using Name Services

The network information service (NIS), which is part of the SunOS release 4 environment, is gradually being replaced with the network information service plus (NIS+). NIS+, introduced with the SunOS 5.0 system, is a completely redesigned name service that takes into account changes in customer client/server environments. DNS ( domain name system) is an existing, complementary name service used for intercompany Internet communication. This chapter discusses NIS+ and compares it to NIS and DNS.

For more information about planning an NIS+ upgrade and installing NIS+, see NIS+ Transition Guide and Solaris Naming Setup and Configuration Guide.


Note -

The system administration documentation set for the Solaris 7 operating environment emphasizes a system that is using NIS+.


Name Service Switch

The Solaris 7 operating environment uses standard naming interfaces (for example, gethostbyname) to support multiple naming services (such as NIS, NIS+, and DNS, among others), thereby allowing applications to access data transparently from different services. One instance of this is the Name Service Switch capability in the Solaris 7 operating environment, which allows applications to use a UNIX standard naming interface (for example, getxxbyyy interfaces). See the nsswitch.conf(4) man page for more information.

NIS+

NIS+ is a name service built on top of the ONC transport-independent remote procedure call (TI-RPC) interface. NIS+ has significant advantages over NIS in the areas of security, performance, scalability, and administration.

DNS

DNS supports the model of a hierarchical name space with autonomously administered name servers. Although NIS+ uses a similar hierarchical naming model, it focuses on supporting changing system administration data and other requirements of enterprise networks.

DNS and NIS+, therefore, are complementary name services:

DNS and NIS+ Comparison

Table 13-1 shows the features and benefits of DNS compared to NIS+.

Table 13-1 DNS and NIS+ Features and Benefits Compared

Feature 

DNS 

NIS+ 

Security 

Unrestricted access to data 

All operations can be authenticated 

 

 

Administrator designates access rights for objects and entries 

API and human interface  

Allows read-only access to name service 

Allows read-write access to name service. Provides: 

- Efficient support of changing network environment 

- API support of administrative operations 

- Support of administrative and other distributed applications 

Updating  

By transfer of zone master files 

By incremental data transfer 

- Fast support of changing network environments 

- Stronger consistency 

Compatibility with NIS 

Not applicable 

Existing NIS applications can migrate smoothly 

Data support 

ASCII data only with packet size restriction 

Binary and ASCII data. Provides: 

- Support of variable information 

- Support of larger objects 

The main strength of DNS is in supporting hierarchical database partitions and replicas containing entries of relatively static information (such as host name and IP address). DNS enables you to access the Internet.

NIS+, in contrast, is a secure repository of changing administrative information (such as email aliases, Ethernet addresses, RPC program numbers) for enterprise networks.

NIS and NIS+ Comparison

Table 13-2 summarizes several major enhancements in NIS+ compared to NIS.

Table 13-2 NIS and NIS+ Features Compared

Feature  

NIS 

NIS+  

Name space 

Has a flat on-hierarchical organization; centralized flat file database for each independent network domain  

Has a hierarchical organization; partitioned into directories to support each network subset or autonomous domain 

Data Storage Scheme 

Multiple bicolumn "maps" (files) having key-value pairs 

Multicolumn database with multiple, searchable columns 

Resource Access Across Domains 

Not supported 

Permitted for authorized users 

Privileges for  

Updating 

Updates require superuser privileges on master server 

Updates can be performed remotely by authorized users  

Update Process 

Updates require using make files on master servers 

Updates are performed easily through command-line interface 

Update  

Propagation 

Is administrator initiated and requires transfer of whole maps 

Automatic and high-performance updating via incremental transfer  

Security 

Database not secure 

Fine-grained access control to NIS+ directories, table column, and entries 

Commands and Functions Prefixes 

Prefixed by the letters yp, as in ypmatch(1) and ypcat(1)

Prefixed by the letters nis, as in nismatch(1) and nischown(1)

NIS+ includes features that enable NIS sites to migrate to the new name service in a smooth, phased manner. NIS sites that migrate to NIS+ will gain the following benefits:

Planning NIS+ Upgrade

NIS+ supports the following combinations of operating environments:

Chapter 14 Solaris Common Desktop Environment

The Solaris Common Desktop Environment (CDE), compatible among various workstation manufacturers, provides users with a desktop graphical interface on a Sun Workstation running Solaris 7 software or compatible version. This window environment helps you organize and manage your work. The desktop provides windows, workspaces, controls, and menu. When you login to your windows environment the first time, you have a choice of using either OpenWindows or Solaris CDE as your default desktop.

What Is the Solaris Common Desktop Environment?

The Common Desktop Environment (CDE) is one of two desktops packaged with the Solaris 7 environment (the other is the OpenWindows desktop). CDE is designed to be used as the standard desktop for Sun, Hewlett-Packard, IBM, Novell and many others in the UNIX workstation market. With the release of Solaris 7, Sun has enhanced CDE with many new desktop features not included in the previous versions of CDE. Some of these new features are described later in this chapter.

Solaris CDE includes a desktop server, a Session Manager, a Window Manager (based on Hewlett-Packard's Visual User Environment), and numerous desktop utilities.

To learn how to use Solaris CDE, see Solaris Common Desktop Environment: User's Guide.

Developers, End Users, and CDE

Because CDE provides a consistent computing environment across major UNIX platforms, end users can easily move between different machines. CDE also aids application development by supplying a single, standard set of programming interfaces for any conforming Sun, HP, IBM, or Novell platform. A single API enables developers to create applications that are consistent in appearance and behavior across CDE-compliant systems.

The CDE development environment is based on the X11R5 server and produces applications with a look and feel based on the Open Software Foundation's Motif 1.2 specification.

Overview of the Desktop

Some of the features of the Solaris CDE desktop include:

Front Panel

The Front Panel is a special window at the bottom of the display. It provides controls, indicators, and subpanels to access the tools you need in your everyday work. The Front Panel also provides the workspace switch for selecting a workspace.

Many controls in the Front Panel, such as the File Manager control, start applications when you click them. Some controls, like the Printer control, are also drop zones. You can drag a file icon from File Manager and drop it on the Printer control to be printed.

Arrow buttons over Front Panel controls identify subpanels--click an arrow button to open a subpanel.

Figure 14-1 Front Panel Controls

Graphic

In the Front Panel illustration, the arrow button above the Mail icon has been clicked, displaying the Mailer subpanel. Clicking the Clock Icon starts your default web browser.

Style Manager

Graphic

Click the icon:

The Style Manager to menu appears. Use it to customize elements of the desktop including:

File Manager

Graphic

Click the File Manager icon from the Front Panel:

The File Manager panel appears. Use it to administer files, folders, and applications on your system.

Moving From the OpenWindows Environment to CDE

With the Solaris 7 software you can log in to either the OpenWindows or the CDE desktop from your login screen. For more information on logging in, refer to the Login Manager Help or Chapter 2, "Starting a Desktop Session," in Solaris Common Desktop Environment: User's Guide.

Desktop Services

Some of the desktop services you are used to using in the OpenWindows environment are located in different places in Solaris CDE. Table 14-1 highlights some of the differences.

Table 14-1 Location of Desktop Services

Desktop Service 

OpenWindows 

CDE 

Logout 

Workspace menu 

Front Panel 

LockScreen 

Utilities menu 

Front Panel 

Customize Workspace 

Workspace menu 

Style Manager 

Save Workspace 

Utilities menu 

Style Manager 

Refresh 

Utilities menu 

Front Panel 

Properties 

Workspace menu 

Style Manager 

Help 

Workspace menu 

Front Panel, Application Manager, Workspace menu 

Using Windows, Menus, Buttons, and the Mouse in CDE

Windows, menus, buttons, and the mouse are used slightly differently in Solaris CDE than in the OpenWindows environment. For complete information on using the window, menus, buttons, and the mouse, refer to Chapter 1, "Basic Skills," in Solaris Common Desktop Environment: User's Guide.

Accessing the Workspace Applications Menu

In the OpenWindows environment, the main way to start an application is through the Workspace menu. A Workspace menu still exists in Solaris CDE, however, the main access point for workspace functionality is the Front Panel.

The applications available through the Workspace menu include the items on the Front Panel and also a subset of the applications available to you within Application Manager. Refer to Chapter 6, "Running Applications from the Desktop," in Solaris Common Desktop Environment: User's Guide for complete information on Application Manager.

Style Manager and Customizing the Workspace

The items available through Style Manager in CDE are: Color, Font, Backdrop, Keyboard, Mouse, Audio, Screen, Window, and Startup. These items replace options in the Workspace Properties window in OpenWindows. For complete information on Style Manager, refer to Chapter 7, "Customizing the Desktop Environment," in Solaris Common Desktop Environment: User's Guide.

Running OpenWindows Applications in CDE

A folder in CDE Application Manager, titled OpenWindows, contains your OpenWindow applications.

If you run OpenWindows applications from the command line, you can run them the same way from the terminal emulator (Terminal application) in Solaris CDE. Refer to Chapter 6, "Running Applications from the Desktop," in Solaris Common Desktop Environment: User's Guide for complete information on Application Manager.

Application Settings and Properties

In the OpenWindows, application-wide settings are set using the Properties dialog box, accessed from the Edit menu. In CDE, application-wide settings are set using the Options areas. Options choices are generally located in the application's File menu or the separate menu item, Options.

CDE Global options are like the properties you set from the Workspace menu in the OpenWindows environment. You set these properties in CDE using the Style Manager application. See Chapter 7, "Customizing the Desktop Environment," in Solaris Common Desktop Environment: User's Guide.

Changing Keyboard Defaults

If you did not change your keyboard defaults in the OpenWindows environment they should stay the same within CDE. If you want to change your defaults, use the Style Manager Keyboard dialog box. See Chapter 7, "Customizing the Desktop Environment," in Solaris Common Desktop Environment: User's Guide. If you need to make changes to your UNIX keyboard bindings, refer to Chapter 10, "Using Text Editor," in Solaris Common Desktop Environment: User's Guide.

Changing Mouse Defaults

If you did not change your mouse defaults in the OpenWindows environment they should stay the same within CDE. If you want to change your defaults, use the Style Manager Mouse dialog box. Some of the names have been changed for the functions: You still have double-click, acceleration, and threshold. Mouse button order in CDE is called "handedness". See Chapter 1, "Basic Skills," in Solaris Common Desktop Environment: User's Guide.