減小AIX頁面空間的步驟

anycall2010發表於2008-07-31
# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 005d25cf00004c000000011
1ea4d6d4d
VG STATE: active PP SIZE: 64 megabyte(s) 這個VG的PP大小是64MB
VG PERMISSION: read/write TOTAL PPs: 813 (52032 megabytes)
MAX LVs: 256 FREE PPs: 286 (18304 megabytes)
LVs: 14 USED PPs: 527 (33728 megabytes)
OPEN LVs: 12 QUORUM: 2
TOTAL PVs: 2 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 2 AUTO ON: no
MAX PPs per PV: 1016 MAX PVs: 32
LTG size: 128 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
----------------------------------------------------------------------------------
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd6 paging 44 88 2 open/syncd N/A 當前頁面空間佔了44個LP,有映象
hd8 jfs2log 3 3 1 open/syncd N/A
hd4 jfs2 160 160 2 open/syncd /
hd2 jfs2 66 66 1 open/syncd /usr
hd9var jfs2 99 99 2 open/syncd /var
hd3 jfs2 44 44 2 open/syncd /tmp
hd1 jfs2 10 10 2 open/syncd /home
hd10opt jfs2 32 32 1 open/syncd /opt
test1lv jfs 1 3 1 closed/syncd N/A
hd5 boot 1 1 1 closed/syncd N/A
loglv00 jfslog 1 1 1 open/syncd N/A
lvpd jfs 8 8 1 open/syncd /var/pd
lvpsf jfs 4 4 1 open/syncd /var/psf
lvpsfs jfs 8 8 1 open/syncd /var/psf/segments
-----------------------------------------------------------------------------------
# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk5 rootvg 2816MB 1 yes yes lv 當前頁面空間是2816MB (44LP * 64mb = 2816MB)
----------------------------------------------------------------------------------
# smit chps
Change / Show Characteristics of a Paging Space

Type or select values in entry fields.
Press Enter AFTER making all desired changes.

[Entry Fields]
Paging space name hd6
Volume group name rootvg
Physical volume name hdisk5
NUMBER of additional logical partitions [] #
Or NUMBER of logical partitions to remove [6] 將頁面空間減小6個LP
Use this paging space each time the system is yes +
RESTARTED?
COMMAND STATUS

Command: OK stdout: yes stderr: no 命令執行成功

Before command completion, additional instructions may appear below.

shrinkps: Temporary paging space paging00 created.
shrinkps: Dump device moved to temporary paging space.
shrinkps: New boot image created with temporary paging space.
shrinkps: Paging space hd6 removed.
shrinkps: Paging space hd6 recreated with new size.
shrinkps: New boot image created with resized paging space.
----------------------------------------------------------------------------------
# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk5 rootvg 2432MB 1 yes yes lv 頁面空間貝減小到2432MB (38LP * 64mb = 2432MB)
----------------------------------------------------------------------------------
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd6 paging 38 76 2 open/syncd N/A 頁面空間從44個LP,減少6個LP後,變為38個LP
hd8 jfs2log 3 3 1 open/syncd N/A
hd4 jfs2 160 160 2 open/syncd /
hd2 jfs2 66 66 1 open/syncd /usr
hd9var jfs2 99 99 2 open/syncd /var
hd3 jfs2 44 44 2 open/syncd /tmp
hd1 jfs2 10 10 2 open/syncd /home
hd10opt jfs2 32 32 1 open/syncd /opt
test1lv jfs 1 3 1 closed/syncd N/A
hd5 boot 1 1 1 closed/syncd N/A
loglv00 jfslog 1 1 1 open/syncd N/A
lvpd jfs 8 8 1 open/syncd /var/pd
lvpsf jfs 4 4 1 open/syncd /var/psf
lvpsfs jfs 8 8 1 open/syncd /var/psf/segments

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8334342/viewspace-414970/,如需轉載,請註明出處,否則將追究法律責任。

相關文章