儲存磁碟名稱不同啟動叢集
當磁碟名稱不一樣的時候,比如一個節點叫maoa,而另一個節點上叫做mdo_a,那如果我們將asm_diskstring設定為/dev/m*的話,那叢集也可以照樣啟動的。
實驗如下:
環境:
節點1:
[grid@RAC1 ~]$ cat /etc/udev/rules.d/99-mao.rules
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010001", NAME="maoa%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010002", NAME="maob%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010003", NAME="maoc%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010004", NAME="maod%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010005", NAME="maoe%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010006", NAME="maof%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
[grid@RAC1 ~]$ ll /dev/mao*
brw-rw---- 1 grid asmadmin 8, 0 Oct 25 11:03 /dev/maoa
brw-rw---- 1 grid asmadmin 8, 16 Oct 25 11:03 /dev/maob
brw-rw---- 1 grid asmadmin 8, 32 Oct 25 11:03 /dev/maoc
brw-rw---- 1 grid asmadmin 8, 48 Oct 25 11:03 /dev/maod
brw-rw---- 1 grid asmadmin 8, 64 Oct 25 11:03 /dev/maoe
brw-rw---- 1 grid asmadmin 8, 80 Oct 25 11:03 /dev/maof
節點2:
[grid@rac2 ~]$ cat /etc/udev/rules.d/99-mao.rules
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010001", NAME="mdo*a%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010002", NAME="mdo*b%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010003", NAME="mdo*c%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010004", NAME="mdo*d%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010005", NAME="mdo*e%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010006", NAME="mdo*f%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
[grid@rac2 ~]$ ll /dev/mdo_*
brw-rw---- 1 grid asmadmin 8, 0 Oct 25 11:03 /dev/mdo_a
brw-rw---- 1 grid asmadmin 8, 16 Oct 25 11:03 /dev/mdo_b
brw-rw---- 1 grid asmadmin 8, 32 Oct 25 11:03 /dev/mdo_c
brw-rw---- 1 grid asmadmin 8, 48 Oct 25 11:03 /dev/mdo_d
brw-rw---- 1 grid asmadmin 8, 64 Oct 25 11:03 /dev/mdo_e
brw-rw---- 1 grid asmadmin 8, 80 Oct 25 11:02 /dev/mdo_f
更改asm_diskstring:
SQL> alter system set asm_diskstring='/dev/m*/' scope=spfile;
實驗如下:
環境:
節點1:
[grid@RAC1 ~]$ cat /etc/udev/rules.d/99-mao.rules
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010001", NAME="maoa%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010002", NAME="maob%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010003", NAME="maoc%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010004", NAME="maod%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010005", NAME="maoe%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010006", NAME="maof%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
[grid@RAC1 ~]$ ll /dev/mao*
brw-rw---- 1 grid asmadmin 8, 0 Oct 25 11:03 /dev/maoa
brw-rw---- 1 grid asmadmin 8, 16 Oct 25 11:03 /dev/maob
brw-rw---- 1 grid asmadmin 8, 32 Oct 25 11:03 /dev/maoc
brw-rw---- 1 grid asmadmin 8, 48 Oct 25 11:03 /dev/maod
brw-rw---- 1 grid asmadmin 8, 64 Oct 25 11:03 /dev/maoe
brw-rw---- 1 grid asmadmin 8, 80 Oct 25 11:03 /dev/maof
節點2:
[grid@rac2 ~]$ cat /etc/udev/rules.d/99-mao.rules
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010001", NAME="mdo*a%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010002", NAME="mdo*b%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010003", NAME="mdo*c%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010004", NAME="mdo*d%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010005", NAME="mdo*e%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=%N", RESULT=="1IET_00010006", NAME="mdo*f%n",OWNER="grid",GROUP="asmadmin",MODE="0660"
[grid@rac2 ~]$ ll /dev/mdo_*
brw-rw---- 1 grid asmadmin 8, 0 Oct 25 11:03 /dev/mdo_a
brw-rw---- 1 grid asmadmin 8, 16 Oct 25 11:03 /dev/mdo_b
brw-rw---- 1 grid asmadmin 8, 32 Oct 25 11:03 /dev/mdo_c
brw-rw---- 1 grid asmadmin 8, 48 Oct 25 11:03 /dev/mdo_d
brw-rw---- 1 grid asmadmin 8, 64 Oct 25 11:03 /dev/mdo_e
brw-rw---- 1 grid asmadmin 8, 80 Oct 25 11:02 /dev/mdo_f
更改asm_diskstring:
SQL> alter system set asm_diskstring='/dev/m*/' scope=spfile;
System altered.
將節點1和節點2的叢集或者機器重啟。發現2個節點的叢集都可以正常被啟動。
檢視:
節點一:
SQL> set linesize 200
SQL> col path for a40
SQL> select name,path,state from v$asm_disk;
節點一:
SQL> set linesize 200
SQL> col path for a40
SQL> select name,path,state from v$asm_disk;
NAME PATH STATE
------------------------------ ---------------------------------------- --------
DATA_DG_0002 /dev/maof NORMAL
OCR_DG_0002 /dev/maoc NORMAL
DATA_DG_0000 /dev/maod NORMAL
DATA_DG_0001 /dev/maoe NORMAL
OCR_DG_0000 /dev/maoa NORMAL
OCR_DG_0001 /dev/maob NORMAL
------------------------------ ---------------------------------------- --------
DATA_DG_0002 /dev/maof NORMAL
OCR_DG_0002 /dev/maoc NORMAL
DATA_DG_0000 /dev/maod NORMAL
DATA_DG_0001 /dev/maoe NORMAL
OCR_DG_0000 /dev/maoa NORMAL
OCR_DG_0001 /dev/maob NORMAL
6 rows selected.
節點2:
SQL> set linesize 200
SQL> col path for a40
SQL> /
節點2:
SQL> set linesize 200
SQL> col path for a40
SQL> /
NAME PATH STATE
------------------------------ ---------------------------------------- --------
DATA_DG_0000 /dev/mdo_d NORMAL
OCR_DG_0001 /dev/mdo_b NORMAL
DATA_DG_0002 /dev/mdo_f NORMAL
OCR_DG_0002 /dev/mdo_c NORMAL
DATA_DG_0001 /dev/mdo_e NORMAL
OCR_DG_0000 /dev/mdo_a NORMAL
------------------------------ ---------------------------------------- --------
DATA_DG_0000 /dev/mdo_d NORMAL
OCR_DG_0001 /dev/mdo_b NORMAL
DATA_DG_0002 /dev/mdo_f NORMAL
OCR_DG_0002 /dev/mdo_c NORMAL
DATA_DG_0001 /dev/mdo_e NORMAL
OCR_DG_0000 /dev/mdo_a NORMAL
6 rows selected.
SQL> show parameter asm
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
asm_diskgroups string DATA_DG
asm_diskstring string /dev/m*
asm_power_limit integer 1
asm_preferred_read_failure_groups string
SQL>
------------------------------------ ----------- ------------------------------
asm_diskgroups string DATA_DG
asm_diskstring string /dev/m*
asm_power_limit integer 1
asm_preferred_read_failure_groups string
SQL>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24500180/viewspace-774997/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 如何檢視Oracle RAC叢集的叢集名稱(CLUSTER NAME)Oracle
- tortoiseGIT儲存使用者名稱密碼Git密碼
- git儲存使用者名稱與密碼Git密碼
- 如何配置K8S儲存叢集?K8S
- CynosDB技術詳解——儲存叢集管理
- 【MySQL】MySQL(四)儲存引擎、索引、鎖、叢集MySql儲存引擎索引
- Oracle叢集技術 | 叢集的自啟動系列(一)Oracle
- redis叢集資料儲存和獲取原理Redis
- Ceph分散式儲存叢集-硬體選擇分散式
- MongoDB分片儲存的叢集架構實現MongoDB架構
- storm叢集啟動停止指令碼ORM指令碼
- hadoop叢集配置和啟動Hadoop
- 分散式kv儲存系統之Etcd叢集分散式
- 為K8S叢集準備Ceph儲存K8S
- 圖片叢集分散式儲存和負載均衡分散式負載
- 關於RAC共享儲存兩個節點磁碟裝置名稱不一致的問題
- 通用自動為某表某欄位生成複製名稱的儲存過程儲存過程
- plsql developer怎麼儲存使用者名稱和密碼SQLDeveloper密碼
- Hadoop叢集初始化啟動Hadoop
- Oracle 12c叢集啟動故障Oracle
- Sybase IQ 16叢集修改啟動埠
- kubernets1.13.1叢集使用ceph rbd塊儲存
- CynosDB技術詳解——儲存叢集管理【文末有福利】
- 分散式文件儲存資料庫之MongoDB分片叢集分散式資料庫MongoDB
- 崑崙分散式資料庫儲存叢集 Fullsync 機制分散式資料庫
- windows 下 asm儲存啟動故障WindowsASM
- flutter改變圖示和名稱、啟動圖Flutter
- Hadoop叢集環境啟動順序Hadoop
- k8s叢集ConfigMap和Secret儲存卷K8S
- 儲存系統-cache-磁碟
- 自動儲存、靜態儲存和動態儲存
- oracle 11gR2 grid 叢集資源設定跟隨叢集自動啟動Oracle
- OpenTSDB 安裝 啟動 資料儲存
- emc儲存相關簡稱
- 命令(XA ROLLBACK) 讓儲存叢集回滾GT 的事務分支
- 自建Kubernetes叢集如何使用阿里雲CSI儲存元件阿里元件
- 使用Redis儲存Nginx+Tomcat負載均衡叢集的SessionRedisNginxTomcat負載Session
- Centos7下GlusterFS分散式儲存叢集環境部署記錄CentOS分散式