1. Scan hardware
cfgmgr -v
2. Check Disk
It can be seen that the new disk 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. Check the physical volume
lspv
hdisk0 000f3c5bda5d50d4 rootvg active
hdisk1 000f3c5bd4136a2d dbvg active
hdisk2 000f3c5b5f3b98ce datavg active
hdisk3 none none none
4. Create VG
smitty mkvg
Choice Add an Original Volume Group
, fill in the content and then enter the following
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 +
If the logical volume is occupied, you can not create the problem, you can Fore the creation if a volume group?
change the yes
retry, but must pay attention to whether the data on the disc really do not need
5. Create a file system
mklv -t jfs2 -y lv_oracle data2vg 30G
crfs -v jfs2 -d lv_oracle -m /oracle -A yes
mount /oracle
Once created you can df -g
create a situation View
After the need to restart the server mount /oracle
mounts
Reproduced in: https: //my.oschina.net/wujizhitan/blog/1842715