반응형
테스트 환경구성
VMWARE | VIRTUALBOX 6.1 |
OS | Oracle Linux 7.5 |
OS 설치시 소프트웨어 선택 후 서버 GUI 사용 선택합니다. |
Virtual Box 디스크 추가 |
![]() ![]() |
![]() ![]() ![]() |
디스크를 추가 합니다. |
ASMLIB RPM INSTALLATION |
[root@ole7ora19casm Packages]# rpm -Uvh oracleasm-support-2.1.11-2.el7.x86_64.rpm 경고: oracleasm-support-2.1.11-2.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY 준비 중... ################################# [100%] Updating / installing... 1:oracleasm-support-2.1.11-2.el7 ################################# [100%] [root@ole7ora19casm vm]# rpm -Uvh oracleasmlib-2.0.12-1.el7.x86_64.rpm 경고: oracleasmlib-2.0.12-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY 준비 중... ################################# [100%] Updating / installing... 1:oracleasmlib-2.0.12-1.el7 ################################# [100%] |
ASM DISK CONFIGURATION |
[root@ole7ora19casm ~]# fdisk -l Disk /dev/sda: 48.3 GB, 48318382080 bytes, 94371840 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x00008982 Device Boot Start End Blocks Id System /dev/sda1 * 2048 2099199 1048576 83 Linux /dev/sda2 2099200 94371839 46136320 8e Linux LVM Disk /dev/sdb: 64.4 GB, 64424509440 bytes, 125829120 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/sdc: 32.2 GB, 32212254720 bytes, 62914560 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/ol_ole7ora19casm-root: 45.1 GB, 45088768000 bytes, 88064000 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mapper/ol_ole7ora19casm-swap: 2147 MB, 2147483648 bytes, 4194304 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes |
[root@ole7ora19casm ~]# fdisk /dev/sdb Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table Building a new DOS disklabel with disk identifier 0xa43f5b89. Command (m for help): n Partition type: p primary (0 primary, 0 extended, 4 free) e extended Select (default p): p Partition number (1-4, default 1): First sector (2048-125829119, default 2048): Using default value 2048 Last sector, +sectors or +size{K,M,G} (2048-125829119, default 125829119): Using default value 125829119 Partition 1 of type Linux and of size 60 GiB is set Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. |
[root@ole7ora19casm ~]# fdisk /dev/sdc Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table Building a new DOS disklabel with disk identifier 0x9f0dd1d1. Command (m for help): n Partition type: p primary (0 primary, 0 extended, 4 free) e extended Select (default p): p Partition number (1-4, default 1): First sector (2048-62914559, default 2048): Using default value 2048 Last sector, +sectors or +size{K,M,G} (2048-62914559, default 62914559): Using default value 62914559 Partition 1 of type Linux and of size 30 GiB is set Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. |
ASM CONFIGURE |
[root@ole7ora19casm ~]# oracleasm configure -i Configuring the Oracle ASM library driver. This will configure the on-boot properties of the Oracle ASM library driver. The following questions will determine whether the driver is loaded on boot and what permissions it will have. The current values will be shown in brackets ('[]'). Hitting <ENTER> without typing an answer will keep that current value. Ctrl-C will abort. Default user to own the driver interface []: oracle Default group to own the driver interface []: oinstall Start Oracle ASM library driver on boot (y/n) [n]: y Scan for Oracle ASM disks on boot (y/n) [y]: y Writing Oracle ASM library driver configuration: done |
[root@ole7ora19casm ~]# oracleasm scandisks Reloading disk partitions: done Cleaning any stale ASM disks... Scanning system for ASM disks... [root@ole7ora19casm ~]# oracleasm status Checking if ASM is loaded: no Checking if /dev/oracleasm is mounted: no [root@ole7ora19casm ~]# oracleasm init Creating /dev/oracleasm mount point: /dev/oracleasm Loading module "oracleasm": oracleasm Configuring "oracleasm" to use device physical block size Mounting ASMlib driver filesystem: /dev/oracleasm [root@ole7ora19casm ~]# oracleasm status Checking if ASM is loaded: yes Checking if /dev/oracleasm is mounted: yes |
The basic oracleasm commands are: configure Configure the Oracle Linux ASMLib driver init Load and initialize the ASMLib driver exit Stop the ASMLib driver scandisks Scan the system for Oracle ASMLib disks status Display the status of the Oracle ASMLib driver listdisks List known Oracle ASMLib disks listiids List the iid files deleteiids Delete the unused iid files querydisk Determine if a disk belongs to Oracle ASMlib createdisk Allocate a device for Oracle ASMLib use deletedisk Return a device to the operating system renamedisk Change the label of an Oracle ASMlib disk update-driver Download the latest ASMLib driver |
ASM DISK CREATE |
[root@ole7ora19casm ~]# oracleasm createdisk ASM /dev/sdb1 Writing disk header: done Instantiating disk: done [root@ole7ora19casm ~]# oracleasm createdisk OCR /dev/sdc1 Writing disk header: done Instantiating disk: done |
[root@ole7ora19casm ~]# oracleasm listdisks ASM OCR |
[root@ole7ora19casm disks]# ls -alrt /dev/oracleasm/disks 합계 0 drwxr-xr-x. 4 root root 0 10월 28 17:48 .. drwxr-xr-x. 1 root root 0 10월 28 17:48 . brw-rw----. 1 oracle oinstall 8, 17 10월 28 17:51 ASM brw-rw----. 1 oracle oinstall 8, 33 10월 28 17:51 OCR |
반응형
'Oracle > Oracle Installation' 카테고리의 다른 글
OLE7.5 Oracle 19c Single ASM-2 (0) | 2021.11.09 |
---|---|
OLE7.5 Oracle 19c Single ASM-1 (0) | 2021.11.08 |
Oracle Migration UPGRADE 11.2.0.4 TO 12.1.0.2 Manual(FIlesystem) (0) | 2020.12.09 |
Oracle 19c Silent Installation(Single Filesystem) 오라클 19c 사일런트 설치 (0) | 2020.12.03 |
Oracle Linux 7.8 Oracle 19.7 HA(SE) Installation(오라클 19.7 SEHA 구성) (0) | 2020.11.25 |
댓글