Get the App
SLTechnology News&Howtos  ›  Servers  › 

Verify LUN_ID correspondence in Oracle RAC

Shulou Source: shulou.com Published: 2022-06-02 06:54:44 11月13日 Update

During ORACLE RAC installation, the failure of sharing files using RAW (bare device) or ASM mode due to inconsistent drive letters is one of the most common failures, so it is a necessary step to detect whether the same drive letter of each node corresponds to the same lun in the preparation phase. The way to determine whether it is the same is to query lun id or wwid for comparison. The following summarizes the methods of querying lun ID in AIX and HP-UX systems. Linux can not directly use lun, all generally use udev to make lun into raw for binding after use.

1.AIX method 1

# lscfg-l hdisk*

Hdisk2 U789D.001.DQD3N3L-P1-C2-T1-W202B0080E517F908-L0 MPIO DS5020 Disk

Hdisk3 U789D.001.DQD3N3L-P1-C1-T1-W201A0080E517F908-L1000000000000 MPIO DS5020 Disk

Hdisk4 U789D.001.DQD3N3L-P1-C1-T1-W201A0080E517F908-L2000000000000 MPIO DS5020 Disk

Hdisk0 U789D.001.DQD3N3L-P3-D1 SAS Disk Drive (146800 MB)

Hdisk1 U789D.001.DQD3N3L-P3-D2 SAS Disk Drive (146800 MB)

Method two

# lsattr-El hdisk3 | grep lun_id

Lun_id 0x1000000000000 Logical Unit Number ID False

Method three

# powermt display dev=hdiskpower2 | grep LUN

Logical device ID=6006016040503E00BC6436E0503CE611 [LUN 618]

2.HP-UX

# scsimgr lun_map-D / dev/rdisk/disk17 | grep WWID

World Wide Identifier (WWID) = 0x60022a11000344fc001adc800000000b

3.LINUX

Take RHEL6.5 as an example to complete the configuration of raw through the udev tool. The method here means that the syntax of udev binding is different, but the modified file is the same.

Method 1:

Vi / etc/udev/rules.d/99-oracle-asmdevices.rules

KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "360060e80122c280050402c2800000f0f", SYM

LINK+= "asmdisk/asm-crs01", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"

KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "360060e80122c280050402c2800000f10", SYM

LINK+= "asmdisk/asm-crs02", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"

Method 2:

Vi / etc/udev/rules.d/99-oracle-asmdevices.rules

KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "36888603000000009e036390358634090", NAME= "asm-crs01", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"

KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "3688860300000000be036390358634090", NAME= "asm-crs02", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"

Tags: Method same that is file query different consistent tool common fault mode time step system node device syntax phase preparation detection Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Apple Linux Huawei vpn