1.存儲(chǔ)上面掛載lun
2.操作系統(tǒng)上面執(zhí)行如下操作(不需重啟操作系統(tǒng)):
echo "- - -" > /sys/class/scsi_host/host0/scan
echo "- - -? > /sys/class/scsi_host/host1/scan
..........
一步操作完成:
echo "- - -? > /sys/class/scsi_host/host**/scan ?
3.編輯 /etc/multipath.conf
添加:
multipath {
????????????? wwid????????????????? 360002ac000000000000000dd00012d32
????????????? alias???????????????? mpath2
???????????????? }
???? multipath {
????????????? wwid????????????????? 360002ac0000000000000004000012d47
????????????? alias???????????????? mpath3
???????????????? }
重啟multipath 服務(wù)或者reload
4.格式化磁盤:
fdisk /dev/mapper/mpath2
fdisk /dev/mapper/mpath2
partprobe /dev/mapper/mpath2
partprobe /dev/mapper/mpath3
5.asmlib綁定,或是使用其它的方式:
/etc/init.d/oracleasm createdisk ASMDISK1 /dev/mapper/mpath2p1
Marking disk "ASMDISK1" as an ASM disk:?????????????????? [? OK? ]
/etc/init.d/oracleasm createdisk ASMDISK2 /dev/mapper/mpath3p1
Marking disk "ASMDISK2" as an ASM disk:?????????????????? [? OK? ]
6.確認(rèn):
/etc/init.d/oracleasm scandisks
/etc/init.d/oracleasm listdisks
ASMDISK1
ASMDISK2
如果是rac,需要在其它的節(jié)點(diǎn)上執(zhí)行scandisks即可:
partprobe /dev/mapper/mpath2
partprobe /dev/mapper/mpath3
/etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks:?????????????? [? OK? ]
/etc/init.d/oracleasm listdisks
ASMDISK1
ASMDISK2
6.使用asmca添加磁盤:
7.查看diskgroup數(shù)據(jù)平衡進(jìn)度:
SQL> select * from v$asm_operation;
GROUP_NUMBER OPERA STAT????? POWER???? ACTUAL?? ??? SOFAR?? EST_WORK?? EST_RATE EST_MINUTES ERROR_CODE
------------ ----- ---- ---------- ---------- ---------- ---------- ---------- ----------- --------------------------------------------
?? ??? 1 REBAL RUN?? ??? ? 1?? ???? 1?? ??? 30849??? 2067087?? ?? 7140?? ??????? 285
?? ??? 2 REBAL WAIT ?? ? 1
烏當(dāng)網(wǎng)站建設(shè)公司成都創(chuàng)新互聯(lián),烏當(dāng)網(wǎng)站設(shè)計(jì)制作,有大型網(wǎng)站制作公司豐富經(jīng)驗(yàn)。已為烏當(dāng)成百上千家提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\外貿(mào)營銷網(wǎng)站建設(shè)要多少錢,請(qǐng)找那個(gè)售后服務(wù)好的烏當(dāng)做網(wǎng)站的公司定做!