Go Resizing the partition under AIX

Source: Internet
Author: User

Resizing the file system under AIX-[Work]

Copyright notice: When reproduced, please indicate the original source and author information of the article and this statement in the form of a hyperlink http://wangsuiri.blogbus.com/logs/35448074.html

Resizing the file system under AIXIn the process of installing the software, we often find that the existing partition is not large enough or that new
Additional space is not being exploited, and this time it is necessary to resize the partition.
The practice of this process is generally as follows:

1. First determine the volume group you are using
=============================================================================

# Lsvg-o
Rootvg
#
=============================================================================

Because I have only one ROOTVG volume set on my machine, so I just need to operate on it, and other similar


2. View 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 Descriptors: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:542 (34688 megabytes) This line represents the amount of hard disk space your machine has available, or
Said the system can recognize the size of the physical space, my hard disk is a piece of 36G.
Free pps:390 (24960 megabytes) This line indicates how much hard disk space is not being used, from where you
Can add space to your file system, I still have about 24G left.
Used pps:152 (9728 megabytes) The physical use of the existing file system, I used about 9G.


3. Before you add 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 65536 9000 56536 14%/opt
/dev/cd0 638662 638662 0 100%/cdrom
#
=============================================================================

The-K parameter means to view by 1024byte/block, so my/home directory has approximately 3G of space.

4. Add my/Home file system space, you can use Smitty FS or the following command to complete, but the number of increased
The amount is limited by the amount of the previous free PPS. Because it is easy to increase the file system capacity, it is difficult to reduce
This recommendation creates a new file system so that you can reclaim space by deleting the file system when you are done with it.

=============================================================================

#chfs-a size=+2000000/home
Filesystem size changed to 8388608
#
=============================================================================

2 million blocks are added, each block is 512 bytes, so it adds 1048576k,1g around it.

5. Now look at the file system again
=============================================================================

# 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 4194304 2056608 2137696 50%/Home
/proc----/proc
/dev/hd10opt 65536 9000 56536 14%/opt
/dev/cd0 638662 638662 0 100%/cdrom
#
=============================================================================

The capacity of the Ok,/home file system has become 4G and the file system capacity has been increased successfully.



Incidentally, a mouth,/usr equivalent to window program files, when installing software, found that the system will be self-
The dynamic expansion. In daily use, no/usr is used, unless the user places their own files in/usr, but this habit is very
Not good

Go Resizing the partition under AIX

Related Article

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.