Jan 27, 2015

Increase/ decrease space to file system/ mount in AIX

-- Increase/ decrease space to file system in AIX
-- Login to root

How to Increase the File System on AIX?

IBM's AIX UNIX operating system creates file systems on volume groups that can extend across multiple hard disk devices. Each file system has its own mount point at a directory and has a maximum total file size limit. You can use the chfs command to modify the file system's properties, including its size. The chfs command can increase the file system's size, allocating more of the volume group's space to the specified file system.

Instructions:

1. Log in to the AIX terminal with your username and password.
2. Type "su" at the AIX terminal and press "Enter" to become the root user.
3. Type the root user's password at the password prompt and press "Enter."
4. Type "chfs -a size=+10G /usr" into the terminal, replacing "10G" with the size you want to increase the file system by and "/usr" with the mount point of the file system you want to increase. For example, the command "chfs -a size=+500M /" would increase the size of the root file system by 500 megabytes. Use "G" instead of "M" for gigabytes.
5. Press "Enter" to run the command.

Tips & Warnings:

You can also omit the "+" sign to set an exact size for the file system. For example, the command "chfs -a size =50G /home" would increase the size of the file system mounted at /home to 50 gigabytes.


Examples:

# chfs -a size=+256M /var (increased by 256MB)
# chfs -a size=+1G /
# chfs -a size=-1GB /var     (reduce by 1GB)
# chfs -a size=+2G /tmp

No comments:

Post a Comment

Translate >>