l
First cylinder (985-3916, default 985):
Using default value 985
Last cylinder or +size or +sizeM or+sizeK (985-3916, default 3916): +5G
recoveryarea
Command (m for help): n
Command action
l logical (5 or over) //再创建逻辑分区
p primary partition (1-4)
l
First cylinder (1594-3916, default 1594):
Using default value 1594
Last cylinder or +size or +sizeM or+sizeK (1594-3916, default 3916): +4G
recoveryarea
Command (m for help): n
Command action
l logical (5 or over) //再创建逻辑分区
p primary partition (1-4)
l
First cylinder (2081-3916, default 2081):
Using default value 2081
Last cylinder or +size or +sizeM or+sizeK (2081-3916, default 3916): +4G
剩余一些空间,单独分了一个区
Command (m for help): n
Command action
l logical (5 or over) //再创建逻辑分区
p primary partition (1-4)
l
First cylinder (2568-3916, default 2568):
Using default value 2568
Last cylinder or +size or +sizeM or+sizeK (2568-3916, default 3916):
Command (m for help): p //查看分区结果

Command (m for help): w //保存退出
[root@node1 ~]# fdisk -l //分区结果
2)创建asm盘
配置asm 磁盘(node1、node2)
node1上
[root@node1 soft]# serviceoracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of theOracle ASM library
driver. Thefollowing questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
node2上
[root@node2 asm]# serviceoracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of theOracle ASM library
driver. Thefollowing questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
建立asm 磁盘(node1)
在node1上
[root@node1 soft]# serviceoracleasm
Usage: /etc/init.d/oracleasm{start|stop|restart|enable|disable|configure|createdisk|deletedisk|querydisk|listdisks|scandisks|status}
[root@node1 soft]# serviceoracleasm createdisk OCR_VOTE1 /dev/sdc1
//磁盘名用大写
Marking disk "OCR_VOTE1" as an ASM disk:[ OK ]
[root@node1 soft]# serviceoracleasm createdisk OCR_VOTE2 /dev/sdc2
Marking disk "OCR_VOTE2" as an ASM disk:[ OK ]
[root@node1 soft]# serviceoracleasm createdisk OCR_VOTE3 /dev/sdc3
Marking disk "OCR_VOTE3" as an ASM disk:[ OK ]
[root@node1 soft]# serviceoracleasm createdisk ASM_DATA1 /dev/sdc5
Marking disk "ASM_DATA1" as an ASM disk:[ OK ]
[root@node1 soft]# serviceoracleasm createdisk ASM_DATA2 /dev/sdc6
Marking disk "ASM_DATA2" as an ASM disk:[ OK ]
[root@node1 soft]# serviceoracleasm createdisk A