lspv :查看系統硬盤app
lspv hdisk# :查看硬盤hdisk#的空間分配狀況ide
lsvg :查看系統VGsvg
lsvg vg_name : 查看VG的空間分配狀況3d
lsvg -l vg_name: 查看VG中LV分配狀況以及對應的文件系統blog
df -k :查看文件系統使用狀況。ip
綜合這些,能夠大體算出系統硬盤已分配了多少空間,實際已經使用了多少空間。get
建立邏輯卷it
將ORACLE存放數據目錄對應lv lv_ora設置爲8G,經過bc計算io
# bctable
1024*8/512
16
對應的pp數分別爲16
lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 00f7569400004c0000000136a01b8877
VG STATE: active PP SIZE: 512 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 1116 (571392 megabytes)
MAX LVs: 256 FREE PPs: 790 (404480 megabytes)
LVs: 12 USED PPs: 326 (166912 megabytes)
OPEN LVs: 11 QUORUM: 1 (Disabled)
TOTAL PVs: 2 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 2 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 1024 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
二、建立邏輯卷
[tydic91:root:/]#smitty mklv
Add a Logical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
按F4,列VG組,選擇oradatavg
Add a Logical Volume
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
[Entry Fields]
Logical volume NAME [lv_ora]
* VOLUME GROUP name rootvg
* Number of LOGICAL PARTITIONS [16] #
PHYSICAL VOLUME names [] +
Logical volume TYPE [jfs2] +
POSITION on physical volume middle +
RANGE of physical volumes minimum +
MAXIMUM NUMBER of PHYSICAL VOLUMES [] #
to use for allocation
Number of COPIES of each logical 1 +
partition
Mirror Write Consistency? active +
Allocate each logical partition copy yes +
on a SEPARATE physical volume?
RELOCATE the logical volume during yes +
reorganization?
Logical volume LABEL []
MAXIMUM NUMBER of LOGICAL PARTITIONS [512] #
Enable BAD BLOCK relocation? yes +
SCHEDULING POLICY for writing/reading parallel +
logical partition copies
Enable WRITE VERIFY? no +
File containing ALLOCATION MAP []
Stripe Size? [Not Striped] +
Serialize IO? no +
按兩次enter後:
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear below.
lv_ora
掛載lv到文件系統
# smitty fs
AIX默認是jfs 因此選擇JFS加強型
由於前面已經建立過lv因此咱們選擇在選定的lv上建立fs
接下來能夠使用F4選擇邏輯卷,避免手寫出錯
設置自動掛載