Can the file system be dynamically reduced in the AIX system?

Source: Internet
Author: User

If AIX is a version earlier than Version 5.3, it cannot be dynamically reduced whether the file system is JFS or jfs2.
If the AIX version is later than AIX 5.3 and the file system type is JFS, the file system cannot be dynamically reduced.
If the AIX version is later than AIX 5.3 and the file system type is jfs2, the file system can be dynamically reduced.
The following two file systems are created in the AIX 5.3 system:/usr/test (jfs2) And/wzktest (JFS), as follows:
Testterm1:/# lsvg rootvg | grep "PP size"
VG state: Active pp size: 16 megabyte (s)
Testterm1:/# lsvg-l rootvg | grep "/usr/test"
Testlv jfs2 4 4 1 closed/syncd/usr/test
Testterm1:/# lsvg-l rootvg | grep "/wzktest"
Wzktest JFS 4 4 1 Open/syncd/wzktest

1. reduce the size of the/usr/Test File System (jfs2), from the current 4 pp to 3 pp
Testterm1:/# chfs-a size = 48 m/usr/test
Filesystem size changed to 98304
Check the current size of the/usr/Test File System:
Testterm1:/# lsvg-l rootvg | grep "/usr/test"
Testlv jfs2 3 3 1 closed/syncd/usr/test
The lsvg command output shows that the/usr/test file system is reduced from the original 4 pp to 3 pp.
Now let's take a look at what will happen if the reduced space is not an integer multiple of PP:
Testterm1:/# chfs-a size = 33 m/usr/test
Minimum size to be partitioned CED is 1 physical partition (16 Mb ).
The prompt shows that the size of the file system must be an integer multiple of the number of PP.


2. Reduce the size of the/wzktest File System (JFS), from the current 4 pp to 3 pp
Testterm1:/# chfs-a size = 48 m/wzktest
Filesystem size changed to 98304
The execution was successful. Check the size after the/wzktest file system is reduced:
Testterm1:/# lsvg-l rootvg | grep "/wzktest"
Wzktest JFS 3 3 1 Open/syncd/wzktest
The lsvg command output shows that the/wzktest file system is reduced from 4 pp to 3 pp.

3. Questions
Doesn't it mean that the file system cannot be dynamically reduced even if the AIX version is AIX 5l 5.3 and the file system type is JFS?

---- The question has been resolved:
Later, run the LSFS command to check that the/wzktest file system type is jfs2, as shown below:
Testterm1:/# LSFS | grep/wzktest
/Dev/wzktest --/wzktest jfs2 98304 RW No
Later I posted on the http://www.loveunix.net that it should take LSFS as the standard, the type shown in lsvg-L is the label, it can be different from the actual. Use the LSFS command to determine that the/Home file system is of the JFS type. Now let's see if it can be scaled down dynamically:

Testterm1:/# LSFS-v jfs | grep/home
/Dev/hd1 --/home JFS 8192000 -- Yes No
Testterm1:/# lsvg-l rootvg | grep home
Hd1 JFS 251 251 1 Open/syncd/home
Testterm1:/# BC
250*16
4000
Testterm1:/# chfs-a size = 4000 m/home
The filesystem size is already 8192000.
Testterm1:/# lsvg-l rootvg | grep home
Hd1 JFS 251 251 1 Open/syncd/home
It can be seen from the above that JFS file systems cannot be dynamically reduced. For more information, see:
Http://bbs.loveunix.net/viewthread.php? Tid = 75259 & extra = Page % 3d1

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.