Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Saturday, 19 October 2019

How to shrink AIX file system



Scenario:

df -gt /oracle
Filesystem    GB blocks      Used      Free %Used   Mounted on

/dev/oralv       100.00      49         50   50%    /oracle
/dev/oraloglv    100.00      49         50   50% /  /oralog

shrink /oracle file system by 20 GB and add that space to /oralog filesysetm


solution
:

**make sure that both filesystem are in same volume group,if not then we unable to allocate space
which we shrink from /oracle File system.


then use following command to shrink /oracle


#chfs -a size=-20G /oracle

above command will take some time ....


Then check again size of File system it must be resized to 80 GB.


Then next step is add that 20 GB which we taken from /oracle to /oralog.


command to extend size of /oralog

#chfs -a size=+20G /oralog

new size of /oralog will be 120GB .



AIX JFS -online increase possible ,but decrease not supported.
AIX JFS2-online decrease and increase supported.

No comments:

Post a Comment