LINUX 11G RAC ASM 디스크 그룹 온라인 디스크 용량 증가
LINUX 11G RAC ASM
1. OEL 6.1
[root@cqltjcpt1 ~]# more /etc/redhat-release
Red Hat Enterprise Linux Server release 6.1 (Santiago)
2. oracle 11g rac
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
PL/SQL Release 11.2.0.3.0 - Production
CORE 11.2.0.3.0 Production
TNS for Linux: Version 11.2.0.3.0 - Production
NLSRTL Version 11.2.0.3.0 - Production
3. VMWARE exsi5.0 EMC
4. 1,2
[root@cqltjcpt1 ~]# fdisk -l | grep sd*
Disk /dev/sda: 128.8 GB, 128849018880 bytes
/dev/sda1 * 1 14 103424 83 Linux
/dev/sda2 14 4191 33554432 82 Linux swap / Solaris
/dev/sda3 4191 15666 92170240 8e Linux LVM
Disk /dev/sdb: 2147 MB, 2147483648 bytes
/dev/sdb1 1 261 2096451 83 Linux
Disk /dev/sdc: 2147 MB, 2147483648 bytes
/dev/sdc1 1 261 2096451 83 Linux
Disk /dev/sdd: 2147 MB, 2147483648 bytes
/dev/sdd1 1 261 2096451 83 Linux
Disk /dev/sde: 536.9 GB, 536870912000 bytes
/dev/sde1 1 65270 524281243+ 83 Linux
Disk /dev/sdf: 536.9 GB, 536870912000 bytes
/dev/sdf1 1 65270 524281243+ 83 Linux
Disk /dev/sdg: 536.9 GB, 536870912000 bytes
/dev/sdg1 1 65270 524281243+ 83 Linux
Disk /dev/sdh: 214.7 GB, 214748364800 bytes
Disk /dev/sdi: 107.4 GB, 107374182400 bytes
5. sda sdi, 500G , ASM , sdj
/proc/scsi/scsi scsi1,scsi2,scsi3
[root@cqltjcpt1 ~]# more /proc/scsi/scsi
Attached devices:
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: NECVMWar Model: VMware IDE CDR10 Rev: 1.00
Type: CD-ROM ANSI SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 00 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 01 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 02 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 03 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 04 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 05 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 06 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 08 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
6. 1,2 echo ,
[root@cqltjcpt1 ~]# echo "- - -" > /sys/class/scsi_host/host3/scan
ID 08, echo , /proc/scsi/scsi ID 09
:
Host: scsi3 Channel: 00 Id: 09 Lun: 00
Vendor: VMware Model: Virtual disk Rev: 1.0
Type: Direct-Access ANSI SCSI revision: 02
7. 1,2 /proc/scsi/scsi , 1,2 Host: scsi3 Channel: 00 Id: 09 Lun: 00
[root@cqltjcpt1 ~]# more /proc/scsi/scsi | grep 09
Host: scsi3 Channel: 00 Id: 09 Lun: 00
[root@cqltjcpt2 ~]# more /proc/scsi/scsi | grep 09
Host: scsi3 Channel: 00 Id: 09 Lun: 00
8. 1 sdj
[root@cqltjcpt1 ~]#fdisk /dev/sdj
[root@cqltjcpt1 ~]#partprobe
9. 1,2 sdj1 ,
[root@cqltjcpt1 ~]# fdisk -l | grep sdj
Disk /dev/sdj: 536.9 GB, 536870912000 bytes
/dev/sdj1 1 65270 524281243+ 83 Linux
[root@cqltjcpt2 ~]# fdisk -l | grep sdj
Disk /dev/sdj: 536.9 GB, 536870912000 bytes
/dev/sdj1
10. 1 grid , ASM
[root@cqltjcpt1 ~]#su - grid
asm
[grid@cqltjcpt1 ~]$sqlplus / as sysasm
SQL> select group_number,name,TOTAL_MB, FREE_MB from v$asm_diskgroup
GROUP_NUMBER NAME TOTAL_MB FREE_MB
------------ ----------------- ---------- ----------
1 CQDATA 1547972 525323
2 FRA 511993 477058
3 OCR 6141 5741
11. asm
[root@cqltjcpt1 ~]# oracleasm listdisks
DATA1
DATA2
FRA
OCR_VOT1
OCR_VOT2
OCR_VOT3
12. 500G CQDATA ASM
ASM
1
[root@cqltjcpt1 ~]#oracleasm createdisk DATA3 /dev/sdj1
[root@cqltjcpt1 ~]#oracleasm scandisks
[root@cqltjcpt1 ~]#oracleasm listdisks
DATA1
DATA2
DATA3
FRA
OCR_VOT1
OCR_VOT2
OCR_VOT3
2
[root@cqltjcpt2 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[root@cqltjcpt2 ~]#oracleasm listdisks
DATA1
DATA2
DATA3
FRA
OCR_VOT1
OCR_VOT2
OCR_VOT3
, 1,2 ASM DATA3
13. 1 , ASM , PATH
[root@cqltjcpt1 ~]# su - grid
[grid@cqltjcpt1 ~]$ sqlplus / as sysasm
SQL> select name, path, mode_status, state, disk_number,failgroup from v$asm_disk;
NAME PATH MODE_STATUS STATE DISK_NUMBER FAILGROUP
-------- ------------------ -------------- ----------- ----------- ----------
DATA1 ORCL:DATA1 ONLINE NORMAL 0 DATA1
DATA2 ORCL:DATA2 ONLINE NORMAL 1 DATA2
DATA3 ORCL:DATA3 ONLINE NORMAL 2 DATA3
FRA ORCL:FRA ONLINE NORMAL 0 FRA
OCR_VOT1 ORCL:OCR_VOT1 ONLINE NORMAL 0 OCR_VOT1
OCR_VOT2 ORCL:OCR_VOT2 ONLINE NORMAL 1 OCR_VOT2
14. 1 ,grid sysasm ASM , CQDATA ASM DATA3
SQL> alter diskgroup CQDATA add disk 'ORCL:DATA3' rebalance power 10;
GROUP_NUMBER OPERATION STATE POWER ACTUAL SOFAR EST_WORK EST_RATE EST_MINUTES ERROR_CODE
------------ ---------- -------- ---------- ---------- ---------- ---------- ---------- ----------- ----------
1 REBAL RUN 1 1 130396 340324 1224 171
reblance ,500G 1
SQL>select * from v$asm_opration;
GROUP_NUMBER OPERATION STATE POWER ACTUAL SOFAR EST_WORK EST_RATE EST_MINUTES ERROR_CODE
------------ ---------- -------- ---------- ---------- ---------- ---------- ---------- ----------- ------------------------------
1 REBAL RUN 1 1 13327 332978 1242 57
15. v$asm_operation , ASM reblance
SQL> select * from v$asm_operation;
no rows selected
reblance
SQL> ALTER DISKGROUP DATA1 REBALANCE POWER 1;
16. 1,2 ,
SQL> SELECT,NAME,FREE_MB,TOTAL_MB FROM V$ASM_DISKGROUP
NAME FREE_MB TOTAL_MB
-------------------- ---------- ----------
CQDATA 1025323 2047972
FRA 477058 511993
OCR 5741 6141
CQDATA VMware , vmware ,
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
용감한 바로 가기 및 우분투 응용 프로그램안녕하세요 여러분, 이 기사에서는 모든 사이트에서 pwa를 생성하고 실행기 응용 프로그램으로 추가하는 방법을 설명하고 싶습니다. 일부 웹사이트는 PWA로 설치를 허용하지 않지만 유사한 애플리케이션을 원합니다. 1. ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.