[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 System Management Guide: Operating System and Devices

Major Differences between 4.3 BSD and AIX

This article summarizes the major differences between AIX and 4.3 BSD systems. For more detailed discussions of these topics, see the list of articles in the "AIX for BSD System Managers Overview".

Configuration Data Storage

4.3 BSD usually stores configuration data in ASCII files. Related pieces of information are kept on the same line and record processing (sorting and searching) can be done on the ASCII file itself. Records can vary in length and are terminated by a line feed. 4.3 BSD provides tools to convert some potentially large ASCII files to a database (dbm) format. Relevant library functions search the pair of dbm files if they exist, but search the original ASCII file if the dbm files are not found.

Some AIX configuration data is stored in ASCII files, but often in a stanza format. A stanza is a set of related pieces of information stored in a group of several lines. Each piece of information has a label to make the contents of the file more understandable.

AIX also supports dbm versions of password and user information. Furthermore, the /etc/passwd, /etc/group, and /etc/inittab files are examples of AIX files where the information is stored in traditional form rather than in stanza form.

Other AIX configuration data are stored in files maintained by the Object Data Manager (ODM). Web-based System Manager or the System Management Interface Tool (SMIT) can manipulate and display information in ODM files. Alternatively, you can use the ODM commands directly to view these files. To query the ODM files, use the following commands:

The following ODM commands alter ODM files:

Attention: Altering ODM files incorrectly may cause the system to fail, and may prevent you from successfully restarting the system. You should only use ODM commands directly on ODM files when task-specific commands, such as those generated by Web-based System Manager or SMIT, are unsuccessful.

Configuration Management

When an AIX system starts up, a set of configuration-specific commands are invoked by the Configuration Manager. These configuration-specific commands are called methods. Methods identify the devices on the system and update the appropriate ODM files in the /etc/objrepos directory.

Device special files in the /dev directly are not preinstalled. Some special files, such as those for hard disks, are created automatically during the start-up configuration process. Other special files, such as those for ASCII terminals, must be created by the system administrator by using the Web-based System Manager Devices application or the SMIT Devices menu. This information is retained in the ODM for later use by the system.

Disk Management

In AIX, disk drives are referred to as physical volumes. Partitions are referred to as logical volumes. As in 4.3 BSD, a single physical volume can have multiple logical volumes. However, unlike 4.3 BSD, a single volume in AIX can span multiple physical volumes. To do this, you must make several physical volumes into a volume group and create logical volumes on the volume group.

AIX commands used for file system and volume management include:

The following 4.3 BSD commands are also available:

Differences between the 4.3 BSD version and the AIX version of these commands are discussed in "File Systems".

4.3 BSD maintains a list of file systems in the /etc/fstab file. AIX maintains a stanza for each file system in the /etc/filesystems file.

The 4.3 BSD file system usually reads in large blocks of 8KB, but can store several small files in one block using fragments usually consisting of 1KB. The AIX file system does not support fragments and each file consumes at least one block. The block size is 4KB.

New Commands

To handle new configuration and disk management systems, AIX has about 150 new commands that are new to 4.3 BSD administrators. For more information, see "Commands for AIX System Administration".

Boot and Startup

AIX supports automatic identification and configuration of devices. Consequently, the boot and startup process is very different from 4.3 BSD systems. In addition to the kernel, an image of a boot file system and the previous base device configuration information is loaded to a RAM disk. In the first phase of startup, sufficient configuration information is loaded and checked to permit accessing logical volumes. The paging space device is identified to the kernel and the hard disk root file system is checked. At this time, AIX changes the root file system from the RAM disk to the hard disk and completes the startup procedure, including configuring other devices.

User Authorization

4.3 BSD, and versions of AT&T UNIX operating systems prior to SVR4, store all user authentication information, including encrypted passwords, in the /etc/passwd file. Traditionally, the /etc/passwd file could be read by all.

On SVR4 systems, encrypted passwords are removed from the /etc/passwd file and stored in the /etc/shadow file. Only users with root authority and trusted programs (such as the /bin/login program) can read the /etc/shadow file.

AIX stores encrypted passwords in the /etc/security/passwd file. Other files in the /etc/security directory are the user and limits files. These three files define the way a user is allowed to access the system (such as using the rlogin or telnet commands) and the user's resource limits (such as file size and address space).

Printing

Most 4.3 BSD printing commands are supported with minor differences. One difference is that the /etc/qconfig file is the configuration file in AIX.

The AIX line printing system can interoperate with the 4.3 BSD line printing system, both for submitting print jobs to 4.3 BSD systems and for printing jobs submitted from a 4.3 BSD system.

Shells

AIX supports the Bourne shell, C shell and Korn shell. The full path name for the Bourne shell program is /bin/bsh. The /bin/sh file is a hard link to the /bin/ksh file. This file may be changed by the administrator.

Notes:
  1. AIX has no shell scripts that rely on the /bin/sh. However, many shell scripts from other systems rely on /bin/sh being the Bourne shell.
  2. Although the Bourne shell and Korn shell are similar, the Korn shell is not a perfect superset of the Bourne shell.

[ Previous | Next | Contents | Glossary | Home | Search ]