How to adjust the folder size in AIX

Source: Internet
Author: User
How to adjust the folder space size in AIX adjust the file system size in AIX during software installation, it is often found that the existing partition is not large enough or the new space is not used when a new hard disk is added. in this case, you need to adjust the partition size. Practices in this process 1... information & how to adjust the file system size in AIX, it is often found that the existing partition is not large enough or the new space is not used when a new hard disk is added. in this case, you need to adjust the partition size. The procedure is generally as follows: 1. first, confirm the volume group you are using ===================================== ========================================================== ======# lsvg-o rootvg #============================== ========================================================== ========== because only one rootvg volume Group is set on my machine, so I only need to operate on it, and others are similar. 2. view the volume group information =============================================== ========================================================== = # lsvg rootvg volume group: rootvg vg identifier: 00098d9f00004c0000000 0f9b120700b vg state: active pp size: 64 megabyte (s) vg permission: read/write TOTAL PPs: 542 (34688 megabytes) MAX LVs: 256 FREE PPs: 390 (24960 megabytes) LVs: 9 USED PPs: 152 (9728 megabytes) OPEN LVs: 8 QUORUM: 2 TOTAL PVs: 1 VG DESCRIPT ORS: 2 STALE PVs: 0 STALE PPs: 0 ACTIVE PVs: 1 auto on: yes MAX PPs per PV: 1016 MAX PVs: 32 LTG size: 128 kilobyte (s) auto sync: no hot spare: no #=================================================== ========================================================== TOTAL PPs: the 542 (34688 megabytes) line represents the total size of your machine's existing hard disk space, or the physical space size that the system can recognize. my hard disk is a 36 GB disk. FREE PPs: 390 (24960 megabytes) indicates how much hard disk space is not used. from here, you can increase the space to your file system, and I have about 24 GB left. USED PPs: 152 (9728 megabytes) physical usage of the existing file system, I USED around 9 GB. 3. before adding space, you can view the size and usage of the following existing file systems ========================================================== ============## df-tk Filesystem 1024-blocks Used Free % Used Mounted on/dev/hd4 131072 17452 113620 14% // dev/hd2 3211264 1288216 1923048 41%/usr/dev/hd9var 589824 23800 566024 5%/var/dev/hd3 589824 18684 571140 4%/tmp/dev/hd1 3145728 2023192 1122536 65%/home/proc --- -/proc/dev/hd10opt 655 36 9000 56536 14%/opt/dev/cd0 638662 638662 0 100%/cdrom #====================== ========================================================== =====================-k parameter indicates viewing by 1024 bytes/block, therefore, my/home directory has about 3G space. 4. to increase the space of my/home file system, you can use smitty fs or the following command, but the increase is limited by the number of Free PPs. It is easy to increase the file system capacity, but it is difficult to reduce it. we recommend that you create a new file system so that you can delete the file system to recycle space after it is used up. ========================================================== ============================================= # Chfs- a size = + 2000000/home Filesystem size changed to 8388608 #========================== ========================================================== ============ adds 2000000 blocks, each block is 512 bytes, so it increases by about 1048576 KB and 1 GB. 5. check the file system again ========================================================== = [plain] # df-tk Filesystem 1024-blocks Used Free % Used Mounted on/dev/hd4 131072 17452 113620 14%/dev/hd2 3211264 1288216 1923048/usr/dev /hd9var 589824 23800 566024 5%/var/dev/hd3 589824 18684 571140 4%/tmp/dev/hd1 4194304 2056608 2137696 50%/home/proc---/proc/dev/hd10opt 65536 9000 5 6536 14%/opt/dev/cd0 638662 638662 0 100%/cdrom #====================== ========================================================== =============== OK, the/home file system capacity has changed to 4 GB, and the file system capacity has been increased successfully. By the way,/usr is equivalent to window's program files. when installing the software, it is found that the system will expand automatically if it is not enough. In daily use, the/usr is not used unless the user places his/usr files, but this habit is very bad.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.