Oracle 12c RAC構築之二:共享磁碟配置
UDEV配置方式
-
磁碟分割槽
[root@RACNode01 ~]# fdisk /dev/sdb Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table Building a new DOS disklabel with disk identifier 0xf6614091. The device presents a logical sector size that is smaller than the physical sector size. Aligning to a physical sector (or optimal I/O) size boundary is recommended, or performance may be impacted. Command (m for help): p Disk /dev/sdb: 10.7 GB, 10737418240 bytes, 20971520 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk label type: dos Disk identifier: 0xf6614091 Device Boot Start End Blocks Id System Command (m for help): n Partition type: p primary (0 primary, 0 extended, 4 free) e extended Select (default p): p Partition number (1-4, default 1): 1 First sector (2048-20971519, default 2048): Using default value 2048 Last sector, +sectors or +size{K,M,G} (2048-20971519, default 20971519): Using default value 20971519 Partition 1 of type Linux and of size 10 GiB is set Command (m for help): p Disk /dev/sdb: 10.7 GB, 10737418240 bytes, 20971520 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk label type: dos Disk identifier: 0xf6614091 Device Boot Start End Blocks Id System /dev/sdb1 2048 20971519 10484736 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks.
- UDEV規則建立
for i in b c d e f g h i ; do echo "KERNEL==\"sd*\", ENV{DEVTYPE}==\"disk\", SUBSYSTEM==\"block\", PROGRAM==\"/lib/udev/scsi_id -g -u -d \$devnode\",RESULT==\"`/lib/udev/scsi_id -g -u -d /dev/sd$i`\", SYMLINK+=\"asm-sd$i\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\"" >> /etc/udev/rules.d/99-oracle-asmdevices.rules done # 載入rules檔案,重新載入udev rule /sbin/udevadm control --reload # 檢查新的裝置名稱 /sbin/udevadm trigger --type=devices --action=change # 診斷udev rule /sbin/udevadm test /sys/block/*
for i in b c d e f g h i ; do echo "KERNEL==\"sd*\", BUS==\"scsi\", PROGRAM==\"/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/\$name\",RESULT==\"`/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/sd$i`\", NAME=\"asm-sd$i\", OWNER=\"grid\",GROUP=\"asmadmin\", MODE=\"0660\"" >> /etc/udev/rules.d/99-oracle-asmdevices.rules done 啟動UDEV /sbin/start_udev
- 檢視UDEV磁碟資訊
ll -l /dev/asm* lrwxrwxrwx 1 root root 3 May 26 11:11 /dev/asm-sdb -> sdb lrwxrwxrwx 1 root root 3 May 26 11:11 /dev/asm-sdc -> sdc lrwxrwxrwx 1 root root 3 May 26 11:11 /dev/asm-sdd -> sdd lrwxrwxrwx 1 root root 3 May 26 11:11 /dev/asm-sde -> sde lrwxrwxrwx 1 root root 3 May 26 11:11 /dev/asm-sdf -> sdf lrwxrwxrwx 1 root root 3 May 26 11:11 /dev/asm-sdg -> sdg lrwxrwxrwx 1 root root 3 May 26 11:11 /dev/asm-sdh -> sdh lrwxrwxrwx 1 root root 3 May 26 11:11 /dev/asm-sdi -> sdi
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31440090/viewspace-2838953/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- oracle rac 增加磁碟Oracle
- Oracle 12c rac ocr和votedisk管理Oracle
- 共享磁碟架構架構
- Oracle 12c 使用RMAN搭建物理備庫(RAC to RAC)Oracle
- 【BUILD_ORACLE】Oracle 19c RAC搭建(三)使用UDEV配置共享儲存UIOracledev
- Oracle 12C RAC CDB資料庫部署Oracle資料庫
- oracle 12c rac 詳細部署教程(二)Oracle
- oracle 12c rac 詳細部署教程(一)Oracle
- RAC之磁碟繫結及互信配置
- Oracle RAC日常運維-ASM磁碟擴容Oracle運維ASM
- Oracle RAC日常運維-DATA磁碟組故障Oracle運維
- ORACLE 12C RAC資料庫的啟停Oracle資料庫
- ORACLE 12C RAC 部署應用包準備Oracle
- oracle RAC手動配置互信Oracle
- Oracle RAC環境下ASM磁碟組擴容OracleASM
- ORACLE 12C RAC 生產環境搭建介紹Oracle
- Oracle 12C ORA-12545 While Connecting to RAC through SCAN NameOracleWhile
- 【NETWORK】Oracle RAC 心跳地址配置說明Oracle
- Oracle for Windows安裝和配置之二OracleWindows
- Oracle 12C RAC的單機Standby returning error ORA-16191OracleError
- oracle 12C RAC 12.1.0.2 叢集日誌(cluster log)目錄Oracle
- Oracle 12c RAC CSSD程式無法啟動real time模式OracleCSS模式
- Oracle RAC ASM磁碟組擴容時遇到的VIP漂移OracleASM
- RAC之grid叢集安裝及ASM磁碟組配置ASM
- Oracle Database 12c RAC損壞ocr和votedisk恢復實驗OracleDatabase
- 【BUILD_ORACLE】Oracle RAC配置ASM Filter Driver(ASMFD)(二)詳細配置步驟UIOracleASMFilter
- 【TUNE_ORACLE】Oracle 19c RAC搭建番外篇之RAC引數配置參考(四)Oracle
- 【TUNE_ORACLE】Oracle 19c RAC搭建番外篇之RAC引數配置參考(五)Oracle
- 【TUNE_ORACLE】Oracle 19c RAC搭建番外篇之RAC引數配置參考(三)Oracle
- 【TUNE_ORACLE】Oracle 19c RAC搭建番外篇之RAC引數配置參考(二)Oracle
- 【TUNE_ORACLE】Oracle 19c RAC搭建番外篇之RAC引數配置參考(一)Oracle
- oracle RACOracle
- 【RAC】Oracle 12c以及以上版本的diagsnap是什麼? (Doc ID 2469643.1)Oracle
- NFS磁碟共享NFS
- 如何檢視Oracle RAC的asm磁碟的udev對應關係OracleASMdev
- Oracle RAC Cache Fusion 系列十七:Oracle RAC DRMOracle
- Oracle 11.2 DataGuard RAC To RAC搭建Oracle
- 【ASK_ORACLE】Oracle RAC配置ASM Filter Driver(ASMFD)(一)ASMFD簡介OracleASMFilter