准备环境:
1、 查看本机磁盘信息
[root@shiyueasm~]# fdisk -l
Disk/dev/sda: 16.1 GB, 16106127360 bytes
255 heads,63 sectors/track, 1958 cylinders
Units =cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 307 1958 13269690 83 Linux
/dev/sda2 1 306 2457913+ 82 Linux swap
Partitiontable entries are not in disk order
Disk/dev/sdb: 10.7 GB, 10737418240 bytes
255heads, 63 sectors/track, 1305 cylinders
Units =cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1305 10482381 83 Linux
Disk/dev/sdc: 5368 MB, 5368709120 bytes
255heads, 63 sectors/track, 652 cylinders
Units =cylinders of 16065 * 512 = 8225280 bytes
Disk/dev/sdc doesn't contain a valid partition table
Disk/dev/sdd: 5368 MB, 5368709120 bytes
255heads, 63 sectors/track, 652 cylinders
Units =cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdd doesn't contain a validpartition table
2、 对新添加的2块磁盘进行分区
[root@shiyueasm~]# fdisk /dev/sdc
Devicecontains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Buildinga new DOS disklabel. Changes will remain in memory only,
until youdecide to write them. After that, of course, the previous
contentwon't be recoverable.
Warning:invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command(m for help): n
Commandaction
e extended
p primary partition (1-4)
p
Partitionnumber (1-4): 1
Firstcylinder (1-652, default 1):
Usingdefault value 1
Lastcylinder or +size or +sizeM or +sizeK (1-652, default 652):
Usingdefault value 652
Command(m for help): w
Thepartition table has been altered!
Callingioctl() to re-read partition table.
Syncingdisks.
[root@shiyueasm~]# fdisk /dev/sdd
Devicecontains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Buildinga new DOS disklabel. Changes will remain in memory only,
until youdecide to write them. After that, of course, the previous
contentwon't be recoverable.
Warning:invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command(m for help): n
Commandaction
e extended
p primary partition (1-4)
p
Partitionnumber (1-4): 1
Firstcylinder (1-652, default 1):
Usingdefault value 1
Lastcylinder or +size or +sizeM or +sizeK (1-652, default 652):
Usingdefault value 652
Command(m for help): w
Thepartition table has been altered!
Callingioctl() to re-read partition table.
Syncing disks.
3、 上传 oracle asmlibrary rpm包并对上传的包进行安装
[root@shiyueasmu01]# cd asm\ rpm\ for\ rhel4.0/
[root@shiyueasmasm rpm for rhel4.0]# ll
total 236
-rw-r--r-- 1 root root 129218 Apr 29 2010oracleasm-2.6.9-42.ELsmp-2.0.3-1.i686.rpm
-rw-r--r-- 1 root root 13105 Apr 29 2010oracleasmlib-2.0.4-1.el4.i386.rpm
-rw-r--r-- 1 root root 82542 Apr 29 2010oracleasm-support-2.1.3-1.el4.i386.rpm
[root@shiyueasmasm rpm for rhel4.0]# rpm -ivh *
warning:oracleasmlib-2.0.4-1.el4.i386.rpm: V3 DSA signature: NOKEY, key ID b38a8516
Preparing... ########################################### [100%]
1:oracleasm-support ########################################### [ 33%]
2:oracleasm-2.6.9-42.ELsm########################################### [67%]
3:oracleasmlib ########################################### [100%]
4、 配置ASM驱动
[root@shiyueasm~]# /etc/init.d/oracleasm configure
Configuri