11g 创建asm磁盘组
Posted ORACLE-fans
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了11g 创建asm磁盘组相关的知识,希望对你有一定的参考价值。
[[email protected] ~]# fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 261 2096451 83 Linux
/dev/sda2 262 1536 10241437+ 83 Linux
/dev/sda3 1537 2301 6144862+ 83 Linux
/dev/sda4 2302 2610 2482042+ 5 Extended
/dev/sda5 2302 2559 2072353+ 82 Linux swap / Solaris
/dev/sda6 2560 2610 409626 83 Linux
Disk /dev/sdb: 3221 MB, 3221225472 bytes
255 heads, 63 sectors/track, 391 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn‘t contain a valid partition table
[[email protected] ~]# pvcreate
Please enter a physical volume path
Run `pvcreate --help‘ for more information.
[[email protected] ~]# pvcreate /dev/sdb
Writing physical volume data to disk "/dev/sdb"
Physical volume "/dev/sdb" successfully created
[[email protected] ~]# pvdisplay
"/dev/sdb" is a new physical volume of "3.00 GB"
--- NEW Physical volume ---
PV Name /dev/sdb
VG Name
PV Size 3.00 GB
Allocatable NO
PE Size (KByte) 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID WKISLs-rOSI-Vinr-wyLH-69mD-0g8Z-InzgUK
[[email protected] ~]# vgcreate vg01 /dev/sdb
Volume group "vg01" successfully created
[[email protected] ~]# lvcreate -L 1024m -n lv_ocr1 vg01
Logical volume "lv_ocr1" created
[[email protected] ~]# lvcreate -L 1024m -n lv_vot1 vg01
Logical volume "lv_vot1" created
[[email protected] ~]# lvcreate -L 1024m -n lv_data1 vg01
Volume group "vg01" has insufficient free space (255 extents): 256 required.
[[email protected] ~]# lvcreate -L 1000m -n lv_data1 vg01
Logical volume "lv_data1" created
[[email protected] ~]# lvdisplay
--- Logical volume ---
LV Name /dev/vg01/lv_ocr1
VG Name vg01
LV UUID kxLSK7-ILE6-R9Y5-Iii3-dPmU-rQZ8-ksWQDy
LV Write Access read/write
LV Status available
# open 0
LV Size 1.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/vg01/lv_vot1
VG Name vg01
LV UUID s6mBfk-pLXd-FUGX-MFBk-RMZW-mF0A-x70Kt7
LV Write Access read/write
LV Status available
# open 0
LV Size 1.00 GB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Name /dev/vg01/lv_data1
VG Name vg01
LV UUID xT0bIF-2OYa-AYvv-lO7r-EgfR-q1HG-14MSZX
LV Write Access read/write
LV Status available
# open 0
LV Size 1000.00 MB
Current LE 250
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
以上是关于11g 创建asm磁盘组的主要内容,如果未能解决你的问题,请参考以下文章
11G ORACLE RAC DBCA 无法识别asm磁盘组
oracle 11g 从+DATA迁移到+newdata ASM 磁盘组迁移