ASM_Lib_linux_redhat6.9添加asm磁盘扩容
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了ASM_Lib_linux_redhat6.9添加asm磁盘扩容,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1946字,纯文字阅读大概需要3分钟。
内容图文

ASM磁盘扩容 1 .操作前查询 # oracleasm listdisks 查看asm磁盘 SQL>select group_number,name,TOTAL_MB, FREE_MB from v$asm_diskgroup; 2.添加磁盘 节点1对磁盘进行分区 # fdisk /dev/sdd n p 1defaultdefault w 创建ASM磁盘 # /etc/init.d/oracleasm createdisk arch2 /dev/sdd1 # /etc/init.d/oracleasm listdisks # /etc/init.d/oracleasm scandisks 另一个节点同步磁盘信息 #ll /dev/sd* #partprobe sd* 另一个节点磁盘确认 #/etc/init.d/oracleasm scandisks #/etc/init.d/oracleasm listdisks SQL>alter diskgroup arch check norepair; --添加ARCH磁盘之前,进行检测 SUCCESS: check of diskgroup ARCH found no errors SUCCESS: alter diskgroup arch check norepair 官方文档 The CHECK keyword performs the following operations: Checks the consistency of the disk. Cross checks all the file extent maps and allocation tables for consistently. Checks that the alias metadata directory and file directory are linked correctly. Checks that the alias directory tree is linked correctly. Checks that Oracle ASM metadata directories do not have unreachable allocated blocks. REPAIR | NOREPAIR This clause lets you instruct Oracle ASM whether or not to attempt to repair any errors found during the consistency check.
The defaultis NOREPAIR. The NOREPAIR setting is useful if you want to be alerted to any inconsistencies but do not want Oracle ASM to take any
automatic action to resolve them. ---- $sqlplus / as sysasm SQL> alter diskgroup ARCH add disk ‘/dev/oracleasm/disks/ARCH2‘ rebalance power 0; alter diskgroup ARCH add disk ‘/dev/oracleasm/disks/ARCH2‘ rebalance power 0; alter diskgroup ARCH rebalance power 11; --查询验证 ASMCMD> lsdg 检查确认 查询asm_alert日志; 查询db_alert日志; SQL> select group_number,disk_number,library,name,path from v$asm_disk where PATH like ‘/dev/oracleasm/disks/arch%‘
order by PATH desc; SQL> select group_number,name,total_mb/1024 TOTAL_GB,free_mb/1024 FREE_GB,free_mb/total_mb*100 free_percent,state,TYPE
from v$ASM_DISKGROUP;
原文:https://www.cnblogs.com/lvcha001/p/12856947.html
内容总结
以上是互联网集市为您收集整理的ASM_Lib_linux_redhat6.9添加asm磁盘扩容全部内容,希望文章能够帮你解决ASM_Lib_linux_redhat6.9添加asm磁盘扩容所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。