Previous Table of Contents Next

Restoring Files to the File System (ufsrestore)

Restore the contents of the latest full backup, and then restore subsequent incremental backups from lowest to highest level (ufsrestore), by following these steps:

1.  Type cd /mnt and press Return. You have changed to the mount point directory.
2.  Write-protect the tapes for safety.
3.  Insert the first volume of the level 0 tape into the tape drive.
4.  Type ufsrestore rvf /dev/rmt/unit and press Return. If this is a multivolume restore, when prompted, remove the first tape and insert the last tape in the tape drive. Follow instructions about the order of the rest of the tapes. The level 0 tape is restored.
5.  Remove the tape and load the next lowest level tape in the drive. Always restore tapes starting with 0 and continuing until you reach the highest level.
6.  Type ufsrestore rvf /dev/rmt/unit and press Return. The next level tape is restored.
7.  Repeat steps 5 and 6 for each additional tape.
8.  Type ls and press Return.
9.  A list of files in the directory is displayed. Check the listing to verify that all the files are restored.
10.  Type rm restoresymtable and press Return. The restoresymtable created by ufsrestore is removed.

Unmounting the File System from Its Temporary Mount Point (umount)

Follow these steps to unmount the file system from its temporary mount point:

1.  Type cd / and press Return.
2.  Type umount /mnt and press Return. The file system is unmounted from the temporary mount point.

Checking the File System for Inconsistencies (fsck)

Type fsck /dev/rdsk/cntndnsn and press Return. The file system is checked for consistency.

Performing a Level 0 Backup of the Restored File System (ufsdump)

You always should do an immediate backup of a newly created file system because ufsrestore repositions the files and changes the inode allocation.

Follow these steps to perform a level 0 backup of the restored file system:

1.  Remove the last tape and insert a new write-enabled tape in the tape drive.
2.  Type ufsdump 0uf /dev/rmt/unit /dev/rdsk/cntndnsn and press Return.

Mounting the File System at Its Permanent Mount Point (mount)

Type mount /dev/dsk/cntndnsn and press Return. The restored file system is mounted and available for use.

Understanding the Service Access Facility

The SunOS 5.x system software uses the Service Access Facility (SAF) to register and monitor port activity for modems, terminals, and printers. SAF is new with the SunOS 5.x system software. The SAF controls the resources that let users:

  Log in (either locally or remotely)
  Access printers across the network
  Access files across the network

The SAF is a complex hierarchy of background processes and administrative commands. Explaining the SAF in depth is beyond the scope of this book. The following sections provide a brief introduction to the elements of the SAF. For complete information about SAF, see the Solaris Advanced System Administrator's Guide available from Sun Microsystems Press and Macmillan Technical Publishing.

Admintool GUI for SAF Functionality

Starting with the Solaris 2.3 release, Admintool provides a graphical user interface to work with printers, monitors, and modems.

Starting Admintool

Follow these steps to access the Admintool: Serial Ports windows:

1.  In a terminal window, type admintool& and press Return. The Admintool: Users window is displayed.
2.  From the Browse menu, choose Serial Ports as shown in Figure 3-11.

Figure 3-11  The Admintool Browse menu.

The Admintool: Serial Ports window is displayed, as shown in Figure 3-12.

Figure 3-12  The Admintool: Serial Ports window.

Click on one of the ports to highlight it, and choose Modify from the Edit menu. The Admintool: Modify Serial Port window is displayed, as shown in Figure 3-13.

Figure 3-13  The Admintool: Modify Serial Port window.

This window shows information at three different levels: Basic, More, and Expert. Figure 3-14 shows the Expert options.

Figure 3-14  The Admintool: Modify Serial Port window with Expert options.

Port Monitors and Service Access

A port monitor is a program that continuously watches out for requests to log in or requests to access printers or files. When a port monitor detects a request, it sets the parameters that are needed to establish communication between the operating system and the device that is requesting service. Then the port monitor transfers control to other processes that provide the services needed.

The SunOS 5.x system software provides two types of port monitors: listen and ttymon. The listen port monitor controls access to network services, fielding remote print and file system requests. The ttymon port monitor controls access to login services. You will need to set up a ttymon port monitor (using SAF ) to process login requests from modems.

NOTE:  The ttymon port monitor replaces the SunOS 4.x getty port monitor. A single ttymon can replace multiple getties.

Previous Table of Contents Next