In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Aix file system how to achieve online expansion, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.
The file system expansion of aix is very flexible. If the hardware operation of adding a hard disk is not involved, you only need to use the commands in aix or the smitty menu. Of course, a good data backup is necessary in any case.
1. Because the database archive log directory space is small, and the log growth is relatively fast, because the archive log is full, it is easy to cause the database to hang, so you are going to expand the file system.
# df-g
Filesystem GB blocks Free Used Iused Iused Mounted on
/ dev/hd4 5.00 4.90% 7024 1% /
/ dev/hd2 20.00 14.77 27% 57946 2% / usr
/ dev/hd9var 10.00 9.37% 7454 / var
/ dev/hd3 15.00 14.41% 3290 1% / tmp
/ dev/hd1 6.00 5.01 17% 1873 1% / home
/ proc-/ proc
/ dev/hd10opt 15.00 14.62% 10242 / opt
/ dev/lv00 0.250.24% 18.1% / var/adm/csd
/ dev/fslv00 10.00 9.20% 2876 / sapmnt/BWP
/ dev/lv_oracle 0.50 0.50 1% 47.1% / oracle
/ dev/BWP 5.00 4.55% 12334 2% / oracle/BWP
/ dev/BWP_102_64 9.00 4.84 47% 22062 2% / oracle/BWP/102_64
/ dev/BWP_mirrlogA 0.50 0.40 20% 61% / oracle/BWP/mirrlogA
/ dev/BWP_mirrlogB 0.50 0.40 20% 61% / oracle/BWP/mirrlogB
/ dev/BWP_oraarch 50.00 38.82 93% 2791% / oracle/BWP/oraarch
/ dev/BWP_origlogA 0.50 0.36 29% 9 1% / oracle/BWP/origlogA
2. Check the currently active volumes, there are only two, and confirm with the engineer that the database archive log directory is on the ORAVG volume.
# lsvg-o
Oravg
Rootvg
View the information of the ORAVG volume in more detail
# lsvg-l oravg
Oravg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
Lv_oracle jfs2 2 2 1 open/syncd / oracle
Client jfs2 2 2 1 open/syncd / oracle/client
Stage_102_64 jfs2 28 28 1 open/syncd / oracle/stage/102_64
BWP jfs2 20 20 1 open/syncd / oracle/BWP
BWP_102_64 jfs2 36 36 1 open/syncd / oracle/BWP/102_64
BWP_origlogA jfs2 2 2 1 open/syncd / oracle/BWP/origlogA
BWP_origlogB jfs2 2 2 1 open/syncd / oracle/BWP/origlogB
BWP_mirrlogA jfs2 2 2 1 open/syncd / oracle/BWP/mirrlogA
BWP_mirrlogB jfs2 2 2 1 open/syncd / oracle/BWP/mirrlogB
BWP_oraarch jfs2 200 200 1 open/syncd / oracle/BWP/oraarch
It is found that the PPS size of the current directory is 200.
3 、 # lsvg oravg
VOLUME GROUP: oravg VG IDENTIFIER: 00c6abcf00004c000000012d038039cb
VG STATE: active PP SIZE: 256 megabyte (s)
VG PERMISSION: read/write TOTAL PPs: 7191 (1840896 megabytes)
MAX LVs: 512 FREE PPs: 2589 (582912 megabytes)
LVs: 18 USED PPs: 4602 (1257984 megabytes)
OPEN LVs: 18 QUORUM: 5 (Enabled)
TOTAL PVs: 9 VG DESCRIPTORS: 9
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 9 AUTO ON: no
MAX PPs per VG: 130048
MAX PPs per PV: 1016 MAX PVs: 128
LTG size (Dynamic): 1024 kilobyte (s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
Viewing the oravg volume group information shows that the size of each PPS is 256m. At present, there are 2589 PPS left in oravg, totaling 662784m.
4 、
Expand the space of the file system
Using the command # chfs-a size=+78G / oracle/BWP/oraarch # means to add 78g of space to / oracle/BWP/oraarch (note that G is uppercase)
After execution, lsvg found that free pp size did not increase, but when using smitty chfs to do it
It is found that the increase in size is already reflected in / oracle/BWP/oraarch.
The process of expanding capacity using smitty chfs:
# smitty chfs enter and select this Change/Show Characteristics of an Enhanced Journaled File System, then find the directory that needs to be expanded in the directory list and press enter.
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
File system name / oracle/BWP/oraarch
NEW mount point [/ oracle/BWP/oraarch]
SIZE of file system
Unit Size Megabytes +
Number of units [79872] #
Mount GROUP []
Mount AUTOMATICALLY at system restart? No +
PERMISSIONS read/write +
Mount OPTIONS [] +
Start Disk Accounting? No +
Block Size (bytes) 4096
Inline Log? No
Inline Log size (MBytes) [0] #
Extended Attribute Format [v1]
Enable Quota Management? No +
Allow Small Inode Extents? No +
We will see result:
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
Filesystem size changed to 131072 # includes the capacity of existing space after expansion
5. Check again to see if it has been added
# df-g
Filesystem GB blocks Free Used Iused Iused Mounted on
/ dev/hd4 5.00 4.90% 7024 1% /
/ dev/hd2 20.00 14.77 27% 57935 2% / usr
/ dev/hd9var 10.00 9.37% 7454 / var
/ dev/hd3 15.00 14.41% 3381 1% / tmp
/ dev/hd1 6.00 5.01 17% 1873 1% / home
/ proc-/ proc
/ dev/hd10opt 15.00 14.62% 10242 / opt
/ dev/lv00 0.250.24% 18.1% / var/adm/csd
/ dev/fslv00 10.00 9.20% 2876 / sapmnt/BWP
/ dev/lv_oracle 0.50 0.50 1% 47.1% / oracle
/ dev/BWP 5.00 4.55 10% 12348 2% / oracle/BWP
/ dev/BWP_102_64 9.00 4.84 47% 22069 2% / oracle/BWP/102_64
/ dev/BWP_mirrlogA 0.50 0.40 20% 61% / oracle/BWP/mirrlogA
/ dev/BWP_mirrlogB 0.50 0.40 20% 61% / oracle/BWP/mirrlogB
/ dev/BWP_oraarch 128.00 99.82 23% 663.1% / oracle/BWP/oraarch
All right, everything is fine. The expansion is successful.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.