Review:

After talking about device management and storage management on AIX, I’d like to talk about file systems. You should be familiar with the file system, and I will simply help you remember.

AIX Storage Management physical Volumes, Volume Groups, and Logical Volumes (1)

To know the new:

I. Overview of the file system

A file system is a collection of files, directories, and other data structures that record the location of directories and files. A file system is created on a logical volume. All directories and files of the file system are stored in this logical volume. Therefore, the size of the file system cannot exceed the size of the logical volume. A file system is a tree structure, so we can think of any file system as a tree. The root of the tree is the mount point of the logical volume. The directory is the branch of the tree, and each file in the directory is the leaf of the tree.

Root file system vs. non-root file system

When the system is successfully booted, a root file system (/) exists, and users can use any file or directory in the root file system at any time. Other file systems, except for the root file system is independent of the root file system, a user to access a is not the root file system must be installed in an empty directory on the root file system, or some other than the root file system (must be installed) on an empty directory, the user only through the empty directory can access it. The installation of a non-root file system links the root of a file system to an empty directory so that users can access any directory or file in the file system through this empty directory.

Special note: In general, the installation point must be an empty directory, and the installation point is the root of the installed file system. If the installation point is not an empty directory, after a file system is installed at the installation point, the files or directories originally located at the installation point are temporarily inaccessible until the file system is unmounted.

For this particular case, LET me give you an example:

1. Create a new directory /taiji in the root directory, create a folder “wenjian1” in this directory, and you can see this file.

2. Create a logical volume testlv and mount it to the /taiji directory to form a file system.

2.1 Logical volume Testlv has been created

2.2 Creating a File System

3. Check whether the file can be seen;

4. Check the file again after uninstalling the file system.

Common operations on file systems

You can perform the following operations to manage a file system: creating or deleting a file system, installing or uninstalling a file system, verifying a file system, backing up or restoring a file system, displaying a file system, and modifying file system properties. My favorite tool to use when doing this is smit.

Type in “smitty fs” and there are so many operations you can do.

 

So that’s all for today, and we’ll start talking about file systems tomorrow.