linux 9 에서 크게 달라진것은
http://www.chlux.co.kr/bbs/board.php?bo_table=board02&wr_id=57 참고
multipath 부분으로 스토리지 에 접근하는것인데 oracle 19c 이전 버전은 오라클이 asmlib 를제공해 사용해
쉽게 사용할수있게 했는데 asmlib 는 더이상 제공 안하고 asmdmd 로 통합
간단한 사용법은 이렇다.
위는 vmware 의 공유 폴더 기능을 사용해 extener disk 를 추거 했다.
공유 봄륨은 [데이터 영역/ocr 3개 / fra 영역임]
vmware의 볼륨은 pv 까지 만들어주고 fdisk 통해 format 하고 실제 os 에 mount 시키면 두대 서버에서 사용 할수 있고.
fdisk -l 사용해 아래 순서로 foamat 한다
디스크 포맷(n --> p --> 1 --> Enter --> Enter --> w)
fdisk /dev/sdb
fdisk /dev/sdc
fdisk /dev/sde
fdisk /dev/sdd
fdisk /dev/sdf
----------------------------------------------------sysasm 등록
$ORACLE_HOME/bin/asmcmd afd_label CRS01 /dev/sdb --init
$ORACLE_HOME/bin/asmcmd afd_label CRS02 /dev/sdc --init
$ORACLE_HOME/bin/asmcmd afd_label CRS03 /dev/sdf --init
$ORACLE_HOME/bin/asmcmd afd_label DATA /dev/sdd --init
$ORACLE_HOME/bin/asmcmd afd_label FRA /dev/sde --init
----------------------------------------------------------------------
### 등록 결과 확인
$ORACLE_HOME/bin/asmcmd afd_lslbl /dev/sdb
$ORACLE_HOME/bin/asmcmd afd_lslbl /dev/sdc
$ORACLE_HOME/bin/asmcmd afd_lslbl /dev/sdf
$ORACLE_HOME/bin/asmcmd afd_lslbl /dev/sdd
$ORACLE_HOME/bin/asmcmd afd_lslbl /dev/sde
=======================================
여기까지가 실제 사용방법이고 grid 설치시 ui 로 제공되지만 미리 1번노드에서만 해주면 좋죠.
수행은 root 계정에서 grid profile 을 수행하고 실행한다.
실제 수행
================
[root@dbwr1 oracle]# fdisk /dev/sdd
Welcome to fdisk (util-linux 2.37.4).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
The device contains 'oracleasm' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.
Command (m for help): n
All space for primary partitions is in use.
Command (m for help): p
Disk /dev/sdd: 1 GiB, 1073741824 bytes, 2097152 sectors
Disk model: VMware Virtual S
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd2f47646
Device Boot Start End Sectors Size Id Type
/dev/sdd1 2048 2097151 2095104 1023M 83 Linux
Command (m for help): 1
1: unknown command
Command (m for help):
Command (m for help):
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
[root@dbwr1 oracle]# fdisk /dev/sdf
Welcome to fdisk (util-linux 2.37.4).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
The device contains 'oracleasm' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.
Command (m for help): n
All space for primary partitions is in use.
Command (m for help): p
Disk /dev/sdf: 10 GiB, 10737418240 bytes, 20971520 sectors
Disk model: VMware Virtual S
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x7e59beb6
Device Boot Start End Sectors Size Id Type
/dev/sdf1 2048 20971519 20969472 10G 83 Linux
Command (m for help): 1
1: unknown command
Command (m for help):
Command (m for help):
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
[root@dbwr1 oracle]# ORACLE_HOME/bin/asmcmd afd_label CRS01 /dev/sdb --init
-bash: ORACLE_HOME/bin/asmcmd: No such file or directory
[root@dbwr1 oracle]# $ORACLE_HOME/bin/asmcmd afd_label CRS01 /dev/sdb --init
[root@dbwr1 oracle]# $ORACLE_HOME/bin/asmcmd afd_label CRS02 /dev/sdc --init
[root@dbwr1 oracle]# $ORACLE_HOME/bin/asmcmd afd_label CRS03 /dev/sdf --init
[root@dbwr1 oracle]# $ORACLE_HOME/bin/asmcmd afd_label DATA /dev/sdd --init
[root@dbwr1 oracle]# $ORACLE_HOME/bin/asmcmd afd_label FRA /dev/sde --init
[root@dbwr1 oracle]# $ORACLE_HOME/bin/asmcmd afd_lslbl /dev/sdb
--------------------------------------------------------------------------------
Label Duplicate Path
================================================================================
CRS01 /dev/sdb
[root@dbwr1 oracle]# $ORACLE_HOME/bin/asmcmd afd_lslbl /dev/sdc
--------------------------------------------------------------------------------
Label Duplicate Path
================================================================================
CRS02 /dev/sdc
[root@dbwr1 oracle]# $ORACLE_HOME/bin/asmcmd afd_lslbl /dev/sdf
--------------------------------------------------------------------------------
Label Duplicate Path
================================================================================
CRS03 /dev/sdf
[root@dbwr1 oracle]# $ORACLE_HOME/bin/asmcmd afd_lslbl /dev/sdd
--------------------------------------------------------------------------------
Label Duplicate Path
================================================================================
DATA /dev/sdd
[root@dbwr1 oracle]# $ORACLE_HOME/bin/asmcmd afd_lslbl /dev/sde
--------------------------------------------------------------------------------
Label Duplicate Path
================================================================================
FRA /dev/sde
=================================================
여기까지가 실제 수행한 내용임. 이제 dba에게 다시키네 짱나. =====