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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- UDEV方式配置Oracle RAC ASM共享磁碟devOracleASM
- Oracle rac on vm--共享磁碟Oracle
- 【RAC】 RAC For W2K8R2 安裝--共享磁碟的配置(三)
- 共享磁碟架構架構
- oracle rac 增加磁碟Oracle
- 1 Oracle Database 11.2.0.3.0 RAC On Oralce Linux 6.5 使用-建立共享磁碟OracleDatabaseLinux
- RAC-rac+dg step2--設定共享磁碟-udevdev
- Oracle 12c RAC: MGMTDBOracle
- 【RAC】在ESX 上安裝asm 共享磁碟ASM
- 虛擬機器配置共享磁碟虛擬機
- openfiler配置rac共享儲存
- Oracle RAC中第二節點不能載入nfs的共享磁碟方法OracleNFS
- Oracle RAC Failove 之二:TAFOracleAI
- 【Oracle】 RAC 環境刪除oracle 之二Oracle
- vmware server 解決rac中共享磁碟問題Server
- ORACLE RAC重建ASM磁碟組OracleASM
- Oracle 12c Rac Set Archive ModeOracleHive
- Oracle 12C RAC DataGuard實戰Oracle
- 深入理解Oracle RAC 12COracle
- 【BUILD_ORACLE】Oracle 19c RAC搭建(三)使用UDEV配置共享儲存UIOracledev
- Oracle RAC安裝前的磁碟分割槽及裸裝置配置Oracle
- oracle rac 無法建立asm磁碟OracleASM
- vmware上配置用於oracle rac共享儲存幾則小記Oracle
- Oracle 12C配置EMOracle
- Oracle 12c rac ocr和votedisk管理Oracle
- Oracle 12c 使用RMAN搭建物理備庫(RAC to RAC)Oracle
- Oracle 12C RMAN Duplicating the Whole RAC CDB to local RAC CDBOracle
- Oracle 12C dgbroker 配置Oracle
- NFS磁碟共享NFS
- Oracle 12C RAC CDB資料庫部署Oracle資料庫
- oracle 12c rac 詳細部署教程(一)Oracle
- oracle 12c rac 詳細部署教程(二)Oracle
- RedHat6.5 安裝Oracle 12c RACRedhatOracle
- Config server pool in oracle 12c racServerOracle
- Oracle RAC日常運維-DATA磁碟組故障Oracle運維
- Oracle RAC日常運維-ASM磁碟擴容Oracle運維ASM
- Oracle10g RAC ASM磁碟組[zt]OracleASM
- VMWARE+linux+oracle 10g RAC 之二LinuxOracle 10g