下面操作为在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
一.创建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/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/21605631/viewspace-710293/