mmand (m for help): m Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. [root@pri dev]# pwd /dev [root@pri dev]# ls | grep sd sda sda1 sda2 sdb sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
我们将sdb这块裸设备,分区称sdb1-sdb6,但这些sdb1-6也并不含文件系统,也就是说,还没被文件系统格式化。
从官方网站
下载oracle程序包 pri:orcl2 > uname -a Linux pri 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux http://www.oracle.com/technetwork/topics/linux/asmlib oracleasmlib-2.0 - ASM库 oracleasm-support-2.0 - utilities needed to administer ASMLib 管理ASMlib所需的实用程序 oracleasm - a kernel module for the Oracle ASM library ASM库的内核模块
下载了这5个,一定要注意,看上面5个rpm包,都写着是64位的。
结果最后只能装上这三个。
-rw-r--r-- 1 root root 25460 Apr 11 18:34 Z http://www.2cto.com/kf/ware/vc/" target="_blank" class="keylink">vcmFjbGVhc20tMi42LjE4LTMwOC4yNC4xLmVsNS0yLjAuNS0xLmVsNS54ODZfNjQucnBtPC9wPgo8cD4tcnctci0tci0tIDEgcm9vdCByb290IDkwMjI1IEFwciAxMSAxODozNiBvcmFjbGVhc20tc3VwcG9ydC0yLjEuOC0xLmVsNS54ODZfNjQucnBtPC9wPgo8cD4tcnctci0tci0tIDEgcm9vdCByb290IDE0MTc2IEFwciAxMSAxODozNiBvcmFjbGVhc21saWItMi4wLjQtMS5lbDUueDg2XzY0LnJwbTwvcD4KCjxicj4KCjxicj4KCrbU09pkamm1pcr9vt2/4tPDu6fAtNewo6y+zbK708O31mdyaWTTw7un0+tvcmFjbGXTw7unwcuhowq+3cu1sru9qGFzbWFkbWlutci1yLXE1+mjrMTHw7S+zb/J0tTTw8bVzai1xG9yYWNsZdPDu6fSstO109Bhc21kYmHIqM/eoaMKCsztvNPDv7j2vdq147XEL2V0Yy9zZWN1cml0eS9saW1pdHMuY29uZgpvcmFjbGUgc29mdCBucHJvYyAyMDQ3Cm9yYWNsZSBoYXJkIG5wcm9jIDE2Mzg0Cm9yYWNsZSBzb2Z0IG5vZmlsZSAxMDI0Cm9yYWNsZSBoYXJkIG5vZmlsZSA2NTUzNgpvcmFjbGUgc29mdCBjb3JlIHVubGltaXRlZApvcmFjbGUgc29mdCBjb3JlIHVubGltaXRlZAoKzO2808O/uPa92rXjtcQvZXRjL3BhbS5kL2xvZ2luzsS8/gpzZXNzaW9uIHJlcXVpcmVkIHBhbV9saW1pdHMuc28KCrbU09pCb3VybmWhokJhc2i78ktvcm4gc2hlbGyjrL2r0tTPwsTayN2807W9w7+49r3ateO1xC9ldGMvcHJvZmlsZc7EvP7W0KGjCmlmIFsgJFVTRVIgPSAmcXVvdDtvcmFjbGUmcXVvdDtdIA=="| [ $USER = "grid" ];then if [ $SHELL = "/bin/ksh" ];then ulimit -u 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi umask 022 fi
配置ASMLib,不加-i就是显示当前配置,然后执行oracleasm init就等同于之前-i的指令。 /usr/sbin/oracleasm configure -i
配置之前: [root@pri asmlib]# /usr/sbin/oracleasm configure ORACLEASM_ENABLED=false ORACLEASM_UID= ORACLEASM_GID= ORACLEASM_SCANBOOT=true ORACLEASM_SCANORDER="" ORACLEASM_SCANEXCLUDE="" ORACLEASM_USE_LOGICAL_BLOCK_SIZE="false"
配置: [root@pri asmlib]# /usr/sbin/oracleasm configure -i Configuring the Oracle ASM library driver. This will configure the on-boot properties of the Oracle ASM library driver. The following 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 without typing an answer will keep that current value. Ctrl-C will abort. Default user to own the driver interface []: oracle Default group to own the driver interface []: dba Start Oracle ASM library driver on boot (y/n) [n]: y Scan fo