1. 安裝rpm
創(chuàng)新互聯(lián)公司于2013年開始,先為西山等服務(wù)建站,西山等地企業(yè),進(jìn)行企業(yè)商務(wù)咨詢服務(wù)。為西山企業(yè)網(wǎng)站制作PC+手機(jī)+微官網(wǎng)三網(wǎng)同步一站式服務(wù)解決您的所有建站問題。
rpm -ivh kmod-oracleasm-2.0.6.rh2-2.el6.x86_64.rpm oracleasmlib-2.0.4-1.el6.x86_64.rpm oracleasm-support-2.1.8-1.el6.x86_64.rpm
安裝cvuqdisk-1.0.9-1.rpm,位于安裝文件解壓后rpm目錄下cvuqdisk-1.0.9-1.rpm
2. 配置asm
[root@rac1 ~]# /etc/init.d/oracleasm configure
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 <ENTER> without typing an
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]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
3. 標(biāo)記磁盤,只在一個(gè)節(jié)點(diǎn)執(zhí)行
[root@rac1 ~]# /usr/sbin/oracleasm createdisk VOL1 /dev/mapper/mpathap1(/dev/sdb1)
[root@rac1 ~]# /usr/sbin/oracleasm listdisks
VOL1
4. 其他節(jié)點(diǎn)掃描磁盤
[root@rac2 oracle]# /usr/sbin/oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "VOL1"
[root@rac2 oracle]# /usr/sbin/oracleasm listdisks
VOL1
5. MPIO特殊配置
如果使用了linux自帶的mpio,所有節(jié)點(diǎn)需要如下修改:
編輯/etc/sysconfig/oracleasm
修改ORACLEASM_SCANORDER=""為ORACLEASM_SCANORDER="dm"
重啟asm服務(wù)
[root@rac1 etc]# /etc/init.d/oracleasm restart
#####/etc/init.d/oracleasm deletedisk VOL1(學(xué)習(xí)用,安裝過程不使用)
重新激活磁盤modprobe –r lpfc
Modprobe lpfc
格式化每個(gè)磁盤
[root@rac1 ~]# fdisk /dev/sdb
完成后我們通過fdisk -l查看一下
[root@rac1 ~]# fdisk -l
[root@rac1 ~]# /usr/sbin/oracleasm configure -i
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]: y
[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdb1
[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL2 /dev/sdc1
[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL3 /dev/sdd1
以下操作在另一個(gè)節(jié)點(diǎn)上進(jìn)行,RAC2上操作
[root@rac2 ~]# oracleasm scandisks
文章標(biāo)題:oracleasmilb方式做ASM
文章URL:http://aaarwkj.com/article26/iggdjg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站策劃、外貿(mào)網(wǎng)站建設(shè)、全網(wǎng)營銷推廣、品牌網(wǎng)站設(shè)計(jì)、營銷型網(wǎng)站建設(shè)、ChatGPT
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)