Oracle 在asm前使用udev繫結共享儲存

kakaxi9521發表於2017-10-12
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





來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/21374452/viewspace-2145891/,如需轉載,請註明出處,否則將追究法律責任。

相關文章