你好,游客 登录 注册 搜索
背景:
阅读新闻

一次AIX 操作系统ASM添加磁盘的操作日志

[日期:2012-12-27] 来源:Linux社区  作者:eymit [字体:大 中 小]

4.查看操作系统使用的磁盘

操作系统只用了disk0和disk11,其中disk1,disk0为本地磁盘

bash-3.00# lspv

hdisk0          00c71c94516e6053                    rootvg          active

hdisk1          none                                None           

hdisk2          none                                None           

hdisk3          none                                None           

hdisk4          none                                None           

hdisk5          none                                None           

hdisk6          none                                None           

hdisk7          none                                None           

hdisk8          none                                None           

hdisk9          none                                None           

hdisk10        none                                None           

hdisk11        00c71c946e2767c5                    bkvg            active

hdisk12        none                                None           

hdisk13        none                                None           

hdisk14        none                                None           

hdisk15        none                                None           

hdisk16        none                                None           

hdisk17        none                                None           

hdisk18        none                                None           

hdisk19        none                                None           

hdisk20        none                                None           

hdisk21        none                                None           

hdisk22        none                                None           

hdisk23        none                                None

hdisk12  之后的磁盘都可以使用还有disk9没有使用

再次确认22,9磁盘是否使用

bash-3.00# ls -lrt|grep '22,  9'

crw-------    1 root    system      22,  9 Jun 08 2011  rhdisk9

brw-------    1 root    system      22,  9 Jun 08 2011  hdisk9

确认asmdisk5没有使用

SQL> select t.GROUP_NUMBER,t.OS_MB,t.TOTAL_MB,t.FREE_MB,t.PATH from v$asm_disk t where  t.path like '%asmdisk5%';

no rows selected

 

5.创建设备文件并赋权

bash-3.00# mknod /dev/asmdisk5 c 22 9

bash-3.00# chown grid:asmdba  /dev/asmdisk5

bash-3.00# chmod 660 /dev/asmdisk5

 

查看结果

bash-3.00# ls -lrt|grep '22,  9'

crw-------    1 root    system      22,  9 Jun 08 2011  rhdisk9

brw-------    1 root    system      22,  9 Jun 08 2011  hdisk9

crw-rw----    1 grid    asmdba      22,  9 Jun 06 16:13 asmdisk5

 

 

6.把磁盘加入到disk group中

 

这次要加到DATADG里面

登陆到grid用户

bash-3.00$ sqlplus "/as sysasm"

SQL*Plus: Release 11.2.0.2.0 Production on Wed Jun 6 16:21:57 2012

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production

With the Automatic Storage Management option

SQL> alter diskgroup DATADG  add disk '/dev/asmdisk5';

Diskgroup altered.

 

查看各磁盘使用情况

select group_number, name, TOTAL_MB, FREE_MB  from V$asm_disk_stat;

linux
相关资讯       AIX 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款