1. 扫描硬件
cfgmgr -v 2. 查看磁盘
可以看出hdisk3就是新增磁盘
lsdev -Cc disk hdisk0 Available Virtual SCSI Disk Drive hdisk1 Available Virtual SCSI Disk Drive hdisk2 Available Virtual SCSI Disk Drive hdisk3 Available C5-T1-01 Huawei S5600T FC Disk Drive 3. 查看物理卷
lspv hdisk0 000f3c5bda5d50d4 rootvg active hdisk1 000f3c5bd4136a2d dbvg active hdisk2 000f3c5b5f3b98ce datavg active hdisk3 none none none 4. 创建VG
smitty mkvg 选择Add an Original Volume Group,填写内容如下然后回车
Add an Original Volume Group Type or select values in entity fields. Press Enter AFTER making all desired changes. [Entry fields] VOLUME GROUP name [data2vg] Physical partition SIZE in megabytes + PHYSICAL VOLUME names [hdisk3] + Force the creation if a volume group? no + Activate volume group automatically yes + at sysytem restart? Volume Group MAJOR NUMBER [] +# Create VG Concurrent Capable? no + Infinite Retry Option no + 如果出现逻辑卷被占用,无法创建的问题,可以将Fore the creation if a volume group? 改成yes 重试,但是一定注意该盘的上的数据是否真的不需要
5.创建文件系统
mklv -t jfs2 -y lv_oracle data2vg 30G crfs -v jfs2 -d lv_oracle -m /oracle -A yes mount /oracle 创建完成之后就可以通过df -g查看创建情况
重启服务器之后需要使用mount /oracle挂载
