PowerPath: 클러스터링된 Oracle RAC 서버에 대해 Oracle ASM을 사용하는 방법

Summary: Linux용 PowerPath: RHEL 6.4 이상 서버에서 실행되는 클러스터링된 Oracle RAC 서버를 위해 Oracle ASM과 함께 Dell PowerPath를 구성하고 사용하는 방법

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

Oracle ASM(Automatic Storage Management)은 RAC(Real Application Clusters)에서 장치의 일관된 이름을 보장합니다. 또한 재부팅 시 디바이스에 대한 사용 권한도 유지 관리합니다. 이 기능은 UDEV 규칙이 2.5 커널과 함께 Linux에 추가될 때까지 중요했습니다.

ASM의 특징 중 하나는 ASM에 대해 스탬프가 적용된 디바이스에 별칭이 할당된다는 것입니다. 각 디스크는 /dev/oracleasm/disks/ 장치 디렉토리에 저장되고 별칭을 사용하여 ASM에 제공됩니다. ORCL:diskname을 클릭합니다.

Linux에서 동일한 디스크 또는 LUN에 대한 여러 경로를 확인하면 SCSI 디바이스 테이블에 각 경로에 대한 항목이 생성됩니다. 따라서 두 개의 경로가 있는 단일 LUN은 Linux에서 둘 다로 나타날 수 있습니다 /dev/sdg and /dev/sdh예를 들어.

이는 ASM이 동일한 LUN에 매핑되는 두 개 이상의 디바이스를 처리할 수 없기 때문에 ASM에 문제가 됩니다.

ASM과 마찬가지로 Dell PowerPath는 별칭도 생성합니다. 이는 모의 디바이스(/dev/emcpowerX 여기서 X는 장치 문자임).

프로세스
클러스터의 RHEL 서버에서 해결해야 할 주요 문제 중 하나는 Dell 의사 이름이 일치해야 한다는 것입니다. 의사 이름은 powermt display dev=all 명령을 실행합니다.
 

[linuxodb02 scsi_host] # powermt display dev=all
Pseudo name=emcpowera
Symmetrix ID=000195123456
논리 디바이스 ID=1B79
Device WWN=60000970000195123456533031423739
state=alive; policy=SymmOpt; queued-IOs=0
==============================================================================
Host Stor I/O Path Stats
### HW Path I/O Paths Interf. 모드 상태 Q-IO 오류
==============================================================================
1 lpfc sde FA 7e:00 활성 활성 활성 0 0
1 lpfc sdd FA 5e:00 활성 활성 활성 0 0
0 lpfc sdc FA 10e:00 활성 활성 활성 0 0
0 lpfc sdb FA 12e:00 활성 활성 활성 0 0 모

의 이름=emcpowerb
Symmetrix ID=000195123456
논리 디바이스 ID=1B8A
디바이스 WWN=60000970000195123456533031423841
상태=alive; 정책=SymmOpt; queued-IOs=0

============================================================================== 호스트 스탠드 I/O 경로 통계
### HW 경로 I/O 경로 인터f. 모드 상태 Q-IOs 오류
==============================================================================
1 lpfc sdm FA 7e:00 활성 활성 활성 0 0
1 lpfc sdk FA 5e:00 활성 활성 활성 0 0
0 lpfc sdi FA 10e:00 활성 활성 활성 0 0
0 lpfc sdg FA 12e:00 활성 활성 활성 0 0

(참고: 어레이의 S/N이 보안을 위해 수정됨)

 
명령이 두 호스트에서 모두 실행되는 경우 유사 이름이 다릅니다. 

인터넷에서 찾은 기사는 다음과 같은 것을 제안합니다.   
 

"Shutdown PowerPath on one of the clustered nodes.

$ sudo /etc/init.d/PowerPath stop

Now that PowerPath is stopped, copy PowerPath configuration files from node one to node two. Copy /etc/emcp_devicesDB.dat and /etc/emcp_devicesDB.idx to the /etc directory on the node. Once the copy is complete, start PowerPath up (sudo /etc/init.d/PowerPath start) and run the powermt display dev=all command and the pseudo names will match."
Dell은 이 방법을 권장하지 않습니다.


Dell은 "emcpadm export_mappings -f <pseudo_mapping>"를 실행합니다.
이렇게 하면 어레이 디바이스와 모의 디바이스 간의 매핑이 저장됩니다.
사용 "emcpadm import_mappings -f <pseudo_mappings>"를 실행합니다.
<> pseudo_mapping는 모의 디바이스와 어레이 디바이스 간의 매핑을 포함하는 파일입니다.

이 단계가 완료되면 /etc/sysconfig/oracleasm명령을 수행할 수 있는 충분한 공간이 있어야 합니다. 지시문 ORACLEASM_SCANORDERORACLEASM_SCANEXCLUDE 다음과 같이 수정해야 합니다.    
 

# ORACLEASM_ENABLED:  true는 부팅 시 드라이버를 로드하는 것을 의미합니다.
ORACLEASM_ENABLED=true

# ORACLEASM_UID: /dev/oracleasm 마운트 지점을 소유하는 기본 사용자입니다.
ORACLEASM_UID=그리드

# ORACLEASM_GID: /dev/oracleasm 마운트 지점을 소유하는 기본 그룹입니다.
ORACLEASM_GID=oinstall

# ORACLEASM_SCANBOOT:  true는 부팅 시 ASM 디스크를 검색하는 것을 의미합니다.
ORACLEASM_SCANBOOT=true

# ORACLEASM_SCANORDER: 디스크 스캔
순서에 일치하는 패턴 ORACLEASM_SCANORDER= emcpower

# ORACLEASM_SCANEXCLUDE: 스캔
에서 디스크를 제외하기 위한 일치 패턴 ORACLEASM_SCANEXCLUDE= sd 


이제 ASMLib 를 시작하면 SCSI 디바이스 대신 PowerPath 의사 디바이스 간에 ASM 디스크를 검색합니다.

Affected Products

PowerPath for Linux

Products

PowerPath for Linux
Article Properties
Article Number: 000021339
Article Type: How To
Last Modified: 04 Nov 2025
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.