Changes attributes of a file system.
chfs [ -n NodeName ] [ -m NewMountPoint ] [ -u MountGroup ] [ -A { yes | no } ] [ -p { ro | rw } ] [ -t { yes | no } ] [ -a Attribute=Value ] [ -d Attribute ] FileSystem
The chfs command changes the attributes of a file system. The new mount point, automatic mounts, permissions, and file system size can be set or changed. The FileSystem parameter specifies the name of the file system, expressed as a mount point.
Some file system attributes are set at the time the file system is created and cannot be changed. For the Journaled File System (JFS), such attributes include the fragment size, block size, number of bytes per i-node, compression, and the minimum file system size.
You can use the Web-based System Manager File Systems application (wsm fs fast path) to run this command. You could also use the System Management Interface Tool (SMIT) smit chhfs fast path to run this command.
The following attribute/value pairs are specific to the Journaled File System (JFS):
The maximum size of a JFS file system is a function of its fragment size and the nbpi value. These values yield the following size restrictions:
nbpi | Fragment size in bytes | Maximum size in 512-byte blocks |
512 | 512, 1024, 2048, 4096 | 16777216 |
1024 | 512, 1024, 2048, 4096 | 33554432 |
2048 | 512, 1024, 2048, 4096 | 67108864 |
4096 | 512, 1024, 2048, 4096 | 134217728 |
The volume group in which the file system resides defines a maximum logical volume size and also limits the file system size.
chfs -a size=24576 /testThis command changes the size of the /test Journaled File System to 24576 512-byte blocks, or 12MB (provided it was previously no larger than this).
chfs -a size=+8192 /testThis command increases the size of the /test Journaled File System by 8192 512-byte blocks, or 4MB.
chfs -m /test2 /testThis command changes the mount point of a file system from /test to /test2 .
chfs -d account /homeThis command removes the accounting attribute from the /home file system. The accounting attribute is deleted from the /home: stanza of the /etc/filesystems file.
/etc/filesystems | Lists the known file systems and defines their characteristics. |
The crfs command, mkfs command, mklv command.
The Accounting Overview in AIX Version 4.3 System Management Guide: Operating System and Devices explains the file system accounting subsystem.
The File Systems Overview for System Management in AIX Version 4.3 System Management Guide: Operating System and Devices explains file system types, management, structure, and maintenance.
Setting up and running Web-based System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.
The System Management Interface Tool (SMIT): Overview in AIX Version 4.3 System Management Guide: Operating System and Devices explains SMIT structure, main menus, and tasks.