Oracle 在asm前使用udev繫結共享儲存
1. 在root使用者下使用fdisk -l 查詢主機上的盤,此次給主機分配了4塊2T左右的盤,由於多路徑的影響看到了8塊盤,可以不用管,用其中4塊就行。
# fdisk -l | grep Disk
WARNING: GPT (GUID Partition Table) detected on '/dev/loop0'! The util fdisk doesn't support GPT. Use GNU Parted.
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/loop0: 3878 MB, 3878682624 bytes
Disk identifier: 0x50be8ac6
Disk /dev/sda: 3598.9 GB, 3598914158592 bytes
Disk identifier: 0x00000000
Disk /dev/sdc: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/sdd: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/sdb: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/sde: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/sddlmac: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/sddlmab: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/sddlmaa: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/sddlmad: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/datavg-lv_ulic: 3328.6 GB, 3328599654400 bytes
Disk identifier: 0x00000000
2. 編輯/etc/udev/rules.d/99-oracle-asmdevices.rules檔案
# more 99-oracle-asmdevices.rules
#ASM_DISKS
KERNEL=="sddlma[a-d]", OWNER="grid", GROUP="asmadmin", MODE="0660"
3. 重啟udev
/sbin/start_dev
4. 檢視繫結後的共享儲存
[root@DC8VFJNK2-R730 dev]# ls -l sddlmaa
brw-rw---- 1 grid asmadmin 251, 0 Oct 12 15:37 sddlmaa
[root@DC8VFJNK2-R730 dev]# ls -l sddlmab
brw-rw---- 1 grid asmadmin 251, 16 Oct 12 15:37 sddlmab
[root@DC8VFJNK2-R730 dev]# ls -l sddlmac
brw-rw---- 1 grid asmadmin 251, 32 Oct 12 15:37 sddlmac
[root@DC8VFJNK2-R730 dev]# ls -l sddlmad
brw-rw---- 1 grid asmadmin 251, 48 Oct 12 15:37 sddlmad
# fdisk -l | grep Disk
WARNING: GPT (GUID Partition Table) detected on '/dev/loop0'! The util fdisk doesn't support GPT. Use GNU Parted.
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/loop0: 3878 MB, 3878682624 bytes
Disk identifier: 0x50be8ac6
Disk /dev/sda: 3598.9 GB, 3598914158592 bytes
Disk identifier: 0x00000000
Disk /dev/sdc: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/sdd: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/sdb: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/sde: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/sddlmac: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/sddlmab: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/sddlmaa: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/sddlmad: 2199.0 GB, 2199023255552 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/datavg-lv_ulic: 3328.6 GB, 3328599654400 bytes
Disk identifier: 0x00000000
2. 編輯/etc/udev/rules.d/99-oracle-asmdevices.rules檔案
# more 99-oracle-asmdevices.rules
#ASM_DISKS
KERNEL=="sddlma[a-d]", OWNER="grid", GROUP="asmadmin", MODE="0660"
3. 重啟udev
/sbin/start_dev
4. 檢視繫結後的共享儲存
[root@DC8VFJNK2-R730 dev]# ls -l sddlmaa
brw-rw---- 1 grid asmadmin 251, 0 Oct 12 15:37 sddlmaa
[root@DC8VFJNK2-R730 dev]# ls -l sddlmab
brw-rw---- 1 grid asmadmin 251, 16 Oct 12 15:37 sddlmab
[root@DC8VFJNK2-R730 dev]# ls -l sddlmac
brw-rw---- 1 grid asmadmin 251, 32 Oct 12 15:37 sddlmac
[root@DC8VFJNK2-R730 dev]# ls -l sddlmad
brw-rw---- 1 grid asmadmin 251, 48 Oct 12 15:37 sddlmad
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21374452/viewspace-2145891/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- UDEV管理RAC共享儲存dev
- Linux 7下使用udev繫結ASM磁碟LinuxdevASM
- ORACLE LINUX 5.5 UDEV繫結asm磁碟問題OracleLinuxdevASM
- rhel 5.5UDEV繫結asm磁碟devASM
- 【BUILD_ORACLE】Oracle 19c RAC搭建(三)使用UDEV配置共享儲存UIOracledev
- UDEV方式配置Oracle RAC ASM共享磁碟devOracleASM
- 在Linux中使用UDEV繫結裝置Linuxdev
- 使用UDEV繫結裝置名dev
- oracle asm 儲存限制OracleASM
- 12C__單機安裝Grid+Oracle的方法,ASM使用UDEV進行磁碟繫結OracleASMdev
- Oracle OCP(42):ASM 儲存結構簡介OracleASM
- Linux使用udev繫結裸裝置Linuxdev
- 關於oracle RAC 通過udev繫結磁碟Oracledev
- 關於oracle RAC 透過udev繫結磁碟Oracledev
- Oracle ASM儲存Spfile解析OracleASM
- Oracle 共享儲存掛載Oracle
- Oracle Linux 7.8 多路徑(Multipath)+Udev繫結磁碟OracleLinuxdev
- udev+multipath配合繫結磁碟dev
- OEL5.7 UDEV繫結磁碟dev
- 在php中使用繫結變數的方法(Oracle SQL共享的機制)(轉)PHP變數OracleSQL
- oracle asm自動儲存使用及管理說明(下)OracleASM
- oracle asm自動儲存使用及管理說明(上)OracleASM
- 安裝oracle 11g 使用ASM儲存 詳細OracleASM
- [譯]在CUDA C/C++中使用共享儲存器C++
- 【Linux】UDEV SCSI規則在Oracle Linux上配置ASMLinuxdevOracleASM
- linux udev裸裝置繫結Linuxdev
- linux下udev重新繫結磁碟Linuxdev
- Oracle11g RAC+ASM安裝前儲存規劃注意事項OracleASM
- NFS共享儲存NFS
- 使用udev擴充套件ASM磁碟組dev套件ASM
- 繫結變數優缺點、使用、繫結變數窺探、 Oracle自適應共享遊標變數Oracle
- oracle自動儲存管理(ASM)的優點OracleASM
- 配置Kubernetes共享使用Ceph儲存
- ORACLE 10g RAC 遷移共享儲存Oracle 10g
- udev固化儲存磁碟在不通平臺上(Redhat 5和Redhat 6)devRedhat
- 共享儲存之ISCSI
- ASM儲存使用RMAN複製控制檔案ASM
- oracle10gR1 asm儲存簡單示例OracleASM