Home > Database > Mysql Tutorial > Linux平台下Oracle ASM磁盘组添加磁盘

Linux平台下Oracle ASM磁盘组添加磁盘

WBOY
Release: 2016-06-07 17:03:30
Original
908 people have browsed it

以下为Linux平台下Oracle ASM磁盘组添加磁盘的主要操作,多路进软件使用的是HDS的。一.操作系统设置1.从存储映射磁盘到服务器,然

以下为Linux平台下Oracle ASM磁盘组添加磁盘的主要操作,多路进软件使用的是HDS的。

一.操作系统设置

1.从存储映射磁盘到服务器,然后重启,扫描磁盘

/opt/D*/bin/dlnkmgr view -lu

2.扫描到新的磁盘后(两个节点都要扫描,,并且盘符要一致),在新盘上建分区(在任意一个节点执行)

fdisk /dev/sddlmax

fdisk /dev/sddlmay

查看分区

fdisk -l /dev/sddlmax

fdisk -l /dev/sddlmay

在另一个节点执行:

partprobe

查看分区

fdisk -l /dev/sddlmax

fdisk -l /dev/sddlmay

3.建立vol盘

在一个节点上执行:

/etc/init.d/oracleasm createdisk VOLDB7 /dev/sddlmax1

/etc/init.d/oracleasm createdisk VOLDB8 /dev/sddlmay1

ls -l /dev/oracleasm/disks

查看

/etc/init.d/oracleasm listdisks

在另一个节点执行:

/etc/init.d/oracleasm scandisks

然后查看:

/etc/init.d/oracleasm listdisks

二.数据库设置

export ORACLE_SID=+ASM1

sqlplus "/ as sysdba"

show parameter pfile                    注意看ASM_DISKSTRING参数有没有设置的

show parameter asm_power

alter system set asm_power_limit=5;

alter diskgroup DBDATA  add disk  'ORCL:VOLDB7';

alter diskgroup DBDATA  add disk  'ORCL:VOLDB8';

ALTER DISKGROUP DBDATA REBALANCE POWER 5;     提高平衡速率

select operation,est_minutes from v$asm_operation;     查看平衡需要的时间

select TOTAL_MB,FREE_MB,path from v$asm_disk_stat where GROUP_NUMBER=1 order by 3;    查看当前磁盘空间使用情况 

ALTER DISKGROUP DBDATA REBALANCE POWER 1;     恢复到平衡速率为1

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template