AIX VG操作

eymit發表於2010-11-03
下面操作為在AIX 5.3下面的操作日誌記錄

一.建立VG

1.檢視磁碟使用情況,如果使用ASM注意ASM是直接使用沒有分配PVID的PV
bash-3.00# lspv
hdisk0 00f6a21d5c053829 rootvg active
hdisk1 00f6a21d01424683 rootvg active
hdisk2 none None
hdisk3 none None
hdisk4 none None
hdisk5 none None
hdisk6 none None
hdisk7 none None
hdisk8 none None
hdisk9 none None
hdisk10 none None
hdisk11 none None
hdisk12 none None
hdisk13 none None
hdisk14 none None
hdisk15 none None
hdisk16 none None
hdisk17 none None
hdisk18 none None
hdisk19 none None
hdisk20 00f6a21d6a03bb66 bkvg active
hdisk21 00f6a21d6a03bbc9 bkvg active
hdisk22 00f6a21d6a03bc2b bkvg active
bash-3.00#

本次計劃把hdisk17,hdisk18,hdisk19劃出來

2.建立VG,一般空間間比較大的情況下我們會選擇”Add a Big Volume Group”
shell>smitty mkvg:
Move cursor to desired item and press Enter.

Add an Original Volume Group
Add a Big Volume Group
Add a Scalable Volume Group

選擇後回車

將卷組名設定為fsdatavg,PP大小為64M
add an Original Volume Group

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


VOLUME GROUP name [fsdatavg]
Physical partition SIZE in megabytes 64 +
* PHYSICAL VOLUME names [hdisk17,hdisk18,hdisk19] +
Force the creation of a volume group? yes +
Activate volume group AUTOMATICALLY yes +
at system restart? Volume Group MAJOR NUMBER [] +#
Create VG Concurrent Capable? no +

Command: OK stdout: yes stderr: no

Before command completion, additional instructions may appear below.




二.為VG新增磁碟


1.執行extendvg操作
按F4選擇要新增的磁碟
# smit extendvg

Add a Physical Volume to a Volume Group

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

[Entry Fields]
Force the creation of a volume group? no +
* VOLUME GROUP name [bkvg] +
* PHYSICAL VOLUME names [hdisk14] +

提醒是否繼續,確認繼續

F1=Help F2=Re+------------------------------------------------------+ F4=List
Esc+5=Reset Esc+6| Running command... | Esc+8=Image
Esc+9=Shell Esc+0+------------------------------------------------------+
COMMAND STATUS


Command: OK stdout: no stderr: no

Before command completion, additional instructions may appear below.



2.檢視是否新增成功,lsvg顯示已經新增成功
# lsvg bkvg
VOLUME GROUP: bkvg VG IDENTIFIER: 0009a8ea0000d60000000132aa4ee783
VG STATE: active PP SIZE: 128 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 7995 (1023360 megabytes)
MAX LVs: 512 FREE PPs: 1754 (224512 megabytes)
LVs: 3 USED PPs: 6241 (798848 megabytes)
OPEN LVs: 3 QUORUM: 3 (Enabled)
TOTAL PVs: 5 VG DESCRIPTORS: 5
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 5 AUTO ON: yes
MAX PPs per VG: 2097152 MAX PVs: 1024
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable

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

相關文章