DBA Notes: 2011/10/09
Cheng Li
Oracle Datafile Space Management in IBM AIX
An example shows how to allocate space for Oracle datafile in IBM AIX.
Scenario: we will add 4 GB to 8 Gb to one oracle directory /archdestdmdb as following: (It is a logical volume under AIX.)
root@roam:/>df –k /dev/archdestdmdblv
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/archdestdmdblv 4194304 1877108 56% 502 1% /archdestdmdb
We apply extend Logical Volume to enlarge the LV to be 20G as following:
root@roam:/>extendlv archdestdmdblv 24576M
root@roam:/>df -k
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/archdestdmdblv 4194304 2086756 51% 525 1% /archdestdmdb
root@roam:/>lsvg archdm_dg
VOLUME GROUP: archdm_dg VG IDENTIFIER: 00c1fc7600004c000000012b385bbd52
VG STATE: active PP SIZE: 64 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 2686 (171904 megabytes)
MAX LVs: 256 FREE PPs: 384 (24576 megabytes)
LVs: 37 USED PPs: 2302 (147328 megabytes)
OPEN LVs: 37 QUORUM: 8 (Enabled)
TOTAL PVs: 14 VG DESCRIPTORS: 14
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 14 AUTO ON: no
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size: 128 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
root@roam:/>lsvg -l archdm_dg
archdm_dg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
archdestdmdblv jfs2 64 64 1 open/syncd /archdestdmdb
Reference:
http://www.ahinc.com/aix/file.htm
http://networktechnologist.com/tips-aix-lvm.html
http://www.justlinux.com/forum/archive/index.php/t-130266.html
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26136400/viewspace-709734/ ,如需转载,请注明出处,否则将追究法律责任。