【轉】配置RAW Device磁碟組
主要驗證了在REDHAT環境做了raw device的驗證:
配置RAW Device磁碟組
目錄
1 RAW device 的繫結與確認
2 修改RAW devcie 的屬主,許可權
3 asm_diskstring中的語法問題
##############################################################
1 RAW device 的繫結與確認
##############################################################
不的同的作業系統的操作方法存在差異
在做塊裝置到字元裝置的繫結前,必須對新加的磁碟進行分割槽
fdisk -l
#/dev/sdc
#fdisk /dev/sdc
分成sdc[1-6]
以SUSE為例
1.1 編輯 raw 檔案
#vi /etc/raw
raw1:sdc1
raw2:sdc2
raw3:sdc3
raw5:sdc5
raw6:sdc6
1.2 Bind the raw device
/etc/init.d/raw start|status|stop
1.3 自動啟動rawdevices
#/sbin/chkconfig raw on
在REDHAT下:
1.1 vi /etc/sysconfig/rawdevices
/dev/raw/raw1 /dev/sdc1
/dev/raw/raw2 /dev/sdc2
/dev/raw/raw3 /dev/sdc3
/dev/raw/raw5 /dev/sdc5
/dev/raw/raw6 /dev/sdc6
1.2 啟動rawdevices服務
#service rawdevices start|status|stop
1.3 自動啟動rawdevices
#/sbin/chkconfig rawdevices on
修改之前:
[root@dbp rules.d]# chkconfig --list rawdevices
rawdevices 0:關閉 1:關閉 2:關閉 3:啟用 4:啟用 5:啟用 6:關閉
修改之後:
[root@dbp rules.d]# chkconfig rawdevices on [root@dbp rules.d]# chkconfig --list rawdevices rawdevices 0:關閉 1:關閉 2:啟用 3:啟用 4:啟用 5:啟用 6:關閉
##############################################################
2 修改RAW devcie 的屬主,許可權,Oracle使用者必須能夠訪問
##############################################################
chown oracle:dba /dev/raw/raw[1-6]
除了單檔案要修改許可權外,對檔案所在的目錄也要有訪問許可權
##############################################################
3 asm_diskstring中的語法問題
##############################################################
asm_diskstring='/dev/raw/raw1','/dev/raw/raw2' 分別用單引號,再用分號隔開。
alter system set asm_diskstring='/dev/raw/raw1','/dev/raw/raw2' scope=spfile;
alter system set asm_diskstring='/dev/raw/raw*' scope=spfile;
##############################################################
4 配置,使用RAW Device 磁碟組
##############################################################
1) 建立磁碟組
必須啟動ASM到nomount狀態
oracle>export ORACLE_SID=+ASM
oracle>sqlplus / as sysdba
SQL> startup nomount
SQL> create diskgroup test external redundancy disk '/dev/raw/raw*';
2) 在資料庫中使用
ASM磁碟級在RDBMS在使用必須先註冊
oracle>export ORACLE_SID=+ASM
oracle>sqlplus / as sysdba
SQL> alter system register;
oracle>export ORACLE_SID=test
oracle> sqlplus / as sysdba
SQL> create tablespace test datafile '+test/test01.dbf' size 50M;
轉自 :http://space.itpub.net/10248702/viewspace-662863
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/438414/viewspace-758431/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 沒有磁碟空間 No space left on devicedev
- RAC之grid叢集安裝及ASM磁碟組配置ASM
- ASM磁碟組限制ASM
- (grid重灌後圖形介面報錯)ASM磁碟組字元介面配置ASM字元
- 遷移ASM磁碟組ASM
- ASM磁碟組更換磁碟的操作方法ASM
- Linux磁碟配額配置Linux
- Linux磁碟掛載 轉Linux
- Iridient Developer for mac - RAW影像格式轉換工具DeveloperMac
- Iridient Developer for mac(RAW影像格式轉換工具)DeveloperMac
- RAID磁碟陣列與配置AI陣列
- 更換ocr和votingdisk磁碟組
- 組磁碟陣列的主要作用陣列
- Harmony OS 開發避坑指南——DevEco Device Tool 安裝配置dev
- [20190930]oracle raw型別轉化number指令碼.txtOracle型別指令碼
- 問題:未清空磁碟被新增到磁碟組觸發壞塊
- 【ASM】Oracle asm磁碟被格式化,如何掛載該磁碟組ASMOracle
- ASM 磁碟組的建立及擴容ASM
- ORACLE ASM磁碟組空間溢位OracleASM
- 使用udev擴充套件ASM磁碟組dev套件ASM
- ASM磁碟組擴容操作文件ASM
- RAC之磁碟繫結及互信配置
- Docker啟動出現"No space left on device" 或者 docker日誌太多導致磁碟佔滿問題Dockerdev
- Capture One 22 Pro RAW轉換和影像編輯工具APT
- Capture One 23 Pro Mac(RAW影像編輯轉換器)APTMac
- Camera Raw中文Raw增效ACR數位相機Raw圖片編輯
- RAW影像處理工具——RAW Power for MacMac
- RAW影像處理工具:RAW Power MacMac
- 配置模組
- Oracle ASM磁碟組擴容(AIX7.1)OracleASMAI
- ASM磁碟組ORA-15042 ORA-15096ASM
- Oracle RAC日常運維-DATA磁碟組故障Oracle運維
- 資料檔案遷移至其他磁碟組
- 一次ASM新增新的磁碟組ASM
- CentOS8中配置RAID磁碟陣列CentOSAI陣列
- Capture One 23 Pro mac(RAW轉換和影像編輯工具)APTMac
- RAW影像編輯轉換器Capture One 22 Pro Mac/WindowsAPTMacWindows
- RAW Power for Mac(RAW影像處理軟體)Mac
- Camera Raw15 for mac(PS Raw增效工具)Mac