CREATE ASM ON AIX LV DEVICE

OS:AIX  6100-03

ASM版本号 10205

# lspv

hdisk0          000d295a6d68902b                    rootvg          active

hdisk1          000d2e62ac906f43                    rootvg          active

hdisk2          000d2e629b38c89d                    datavg          active

hdisk3          none                                None                                    

hdisk4          none                                None

# lsvg

rootvg

datavg



# chdev -l hdisk3 -a pv=yes                          --创建PV

hdisk3 changed

hdisk3已识别PVID

# lspv

hdisk0          000d295a6d68902b                    rootvg          active

hdisk1          000d2e62ac906f43                    rootvg          active

hdisk2          000d2e629b38c89d                    datavg          active

hdisk3          000d2e621c735061                    None           

hdisk4          none                                None           



创建VG:

# mkvg -y asmvg hdisk3

asmvg



# lsvg -o

asmvg

datavg

rootvg



创建LV

mklv -y lv_asm1 asmvg 8

mklv -y lv_asm2 asmvg 8

mklv -y lv_asm3 asmvg 8

mklv -y lv_asm4 asmvg 8



#  mklv -y lv_asm4 asmvg 8

lv_asm1

#  mklv -y lv_asm2 asmvg 8

lv_asm2

#  mklv -y lv_asm3 asmvg 8

lv_asm3

#  mklv -y lv_asm4 asmvg 8

lv_asm4

改动权限

chown oracle.dba /dev/rlv_asm1
chown oracle.dba/dev/rlv_asm2
chown oracle.dba/dev/rlv_asm3
chown oracle.dba/dev/rlv_asm4

查看ASM设备

kfod status=TRUE asm_diskstring='/dev/rlv*' disk=all

--------------------------------------------------------------------------------

Disk          Size Header    Path     

================================================================================

   1:        256 Mb CANDIDATE /dev/rlv_asm1

   2:        256 Mb CANDIDATE /dev/rlv_asm2

   3:        256 Mb CANDIDATE /dev/rlv_asm3

   4:        256 Mb CANDIDATE /dev/rlv_asm4

--------------------------------------------------------------------------------

ORACLE_SID ORACLE_HOME                                                         

================================================================================

      +ASM /oracle/product/10.2.0/+ASM                 

     


创建磁盘组:     

create diskgroup data external redundancy disk '/dev/rlv_asm1','/dev/rlv_asm2','/dev/rlv_asm3','/dev/rlv_asm4';    



SQL> create diskgroup data external redundancy disk '/dev/rlv_asm1','/dev/rlv_asm2','/dev/rlv_asm3','/dev/rlv_asm4';    

create diskgroup data external redundancy disk '/dev/rlv_asm1','/dev/rlv_asm2','/dev/rlv_asm3','/dev/rlv_asm4'

*

ERROR at line 1:

ORA-15018: diskgroup cannot be created

ORA-15031: disk specification '/dev/rlv_asm4' matches no disks

ORA-15014: location '/dev/rlv_asm4' is not in the discovery set

ORA-15031: disk specification '/dev/rlv_asm3' matches no disks

ORA-15014: location '/dev/rlv_asm3' is not in the discovery set

ORA-15031: disk specification '/dev/rlv_asm2' matches no disks

ORA-15014: location '/dev/rlv_asm2' is not in the discovery set

ORA-15031: disk specification '/dev/rlv_asm1' matches no disks

ORA-15014: location '/dev/rlv_asm1' is not in the discovery set





create diskgroup data external redundancy disk '/dev/rlv_asm*';





SQL> create diskgroup data external redundancy disk '/dev/rlv_asm*';

create diskgroup data external redundancy disk '/dev/rlv_asm*'      

*                                                                   

ERROR at line 1:                                                    

ORA-15018: diskgroup cannot be created                              

ORA-15031: disk specification '/dev/rlv_asm*' matches no disks      

ORA-15014: location '/dev/rlv_asm4' is not in the discovery set     

ORA-15014: location '/dev/rlv_asm3' is not in the discovery set     

ORA-15014: location '/dev/rlv_asm2' is not in the discovery set     

ORA-15014: location '/dev/rlv_asm1' is not in the discovery set     

                                                                    

                                                                    

SQL> alter system set asm_diskstring='/dev/rlv_asm*';                                                      

                                                                    

System altered.                                                     

                                                                    

SQL> create diskgroup data external redundancy disk '/dev/rlv_asm*';

                                                                    

Diskgroup created.                              



查看alter日志:

Wed May 21 10:08:57 GMT+08:00 2014SQL> create diskgroup data external redundancy disk '/dev/rlv_asm1','/dev/rlv_asm2','/dev/rlv_asm3','/dev/rlv_asm4'                    

Wed May 21 10:08:57 GMT+08:00 2014ERROR: diskgroup DATA was not created                                                                              

Wed May 21 10:11:46 GMT+08:00 2014SQL> create diskgroup data external redundancy disk '/dev/rlv_asm*'                                                

Wed May 21 10:11:46 GMT+08:00 2014ERROR: diskgroup DATA was not created                                                                              

Wed May 21 10:15:40 GMT+08:00 2014SQL> create diskgroup data external redundancy disk '/dev/rlv_asm*'                                                

Wed May 21 10:15:40 GMT+08:00 2014ERROR: diskgroup DATA was not created                                                                              

Wed May 21 10:16:20 GMT+08:00 2014ALTER SYSTEM SET asm_diskstring='/dev/rlv_asm*' SCOPE=BOTH;                                                        

Wed May 21 10:16:30 GMT+08:00 2014SQL> create diskgroup data external redundancy disk '/dev/rlv_asm*'                                                

Wed May 21 10:16:30 GMT+08:00 2014NOTE: initializing header on grp 1 disk DATA_0000                                                                  

NOTE: initializing header on grp 1 disk DATA_0001                                                                                                    

NOTE: initializing header on grp 1 disk DATA_0002                                                                                                    

NOTE: initializing header on grp 1 disk DATA_0003                                                                                                    

NOTE: PST update: grp = 1                                                                                                                            

Wed May 21 10:16:30 GMT+08:00 2014NOTE: group DATA: initial PST locations: disk 0000 (PST copy 0)                                                    

Wed May 21 10:16:30 GMT+08:00 2014NOTE: cache registered group DATA number=1 incarn=0x1649be7b                                                       

NOTE: cache opening disk 0 of grp 1: DATA_0000 path:/dev/rlv_asm1                                                                                    

NOTE: cache opening disk 1 of grp 1: DATA_0001 path:/dev/rlv_asm2                                                                                    

NOTE: cache opening disk 2 of grp 1: DATA_0002 path:/dev/rlv_asm3                                                                                    

NOTE: cache opening disk 3 of grp 1: DATA_0003 path:/dev/rlv_asm4                                                                                    

NOTE: cache creating group 1/0x1649BE7B (DATA)                                                                                                       

NOTE: cache mounting group 1/0x1649BE7B (DATA) succeeded                                                                                             

NOTE: allocating F1X0 on grp 1 disk DATA_0000                                                                                                        

NOTE: diskgroup must now be re-mounted prior to first use                                                                                            

NOTE: cache dismounting group 1/0x1649BE7B (DATA)                                                                                                    

SUCCESS: diskgroup DATA was created                                                                                                                  

NOTE: cache registered group DATA number=1 incarn=0x2769be7e                                                                                         

Wed May 21 10:16:33 GMT+08:00 2014NOTE: Hbeat: instance first (grp 1)                                                                                

Wed May 21 10:16:37 GMT+08:00 2014NOTE: start heartbeating (grp 1)                                                                                   

NOTE: cache opening disk 0 of grp 1: DATA_0000 path:/dev/rlv_asm1                                                                                    

Wed May 21 10:16:37 GMT+08:00 2014NOTE: F1X0 found on disk 0 fcn 0.0                                                                                 

NOTE: cache opening disk 1 of grp 1: DATA_0001 path:/dev/rlv_asm2                                                                                    

NOTE: cache opening disk 2 of grp 1: DATA_0002 path:/dev/rlv_asm3                                                                                    

NOTE: cache opening disk 3 of grp 1: DATA_0003 path:/dev/rlv_asm4                                                                                    

NOTE: cache mounting (first) group 1/0x2769BE7E (DATA)                                                                                               

NOTE: cache recovered group 1 to fcn 0.0                                                                                                             

Wed May 21 10:16:37 GMT+08:00 2014NOTE: LGWR attempting to mount thread 1 for disk group 1                                                           

NOTE: LGWR mounted thread 1 for disk group 1                                                                                                         

NOTE: opening chunk 1 at fcn 0.0 ABA                                                                                                                 

NOTE: seq=2 blk=0                                                                                                                                    

Wed May 21 10:16:37 GMT+08:00 2014NOTE: cache mounting group 1/0x2769BE7E (DATA) succeeded                                                           

SUCCESS: diskgroup DATA was mounted                                                                                                                  

Wed May 21 10:16:39 GMT+08:00 2014NOTE: recovering COD for group 1/0x2769be7e (DATA)                                                                 

SUCCESS: completed COD recovery for group 1/0x2769be7e (DATA)                   





查看ASM状态:

SQL> select name,state from v$asm_diskgroup;



NAME

--------------------------------------------------------------------------------

STATE

---------------------------------

DATA

MOUNTED





SQL> col name for a30

SQL> col path for a30

SQL> select name,path from v$asm_disk;



NAME                           PATH

------------------------------ ------------------------------

DATA_0000                      /dev/rlv_asm1

DATA_0001                      /dev/rlv_asm2

DATA_0002                      /dev/rlv_asm3

DATA_0003                      /dev/rlv_asm4





select path_kfdsk,state_kfdsk,asmname_kfdsk from x$kfdsk;

PATH_KFDSK     STATE_KFDSK ASMNAME_KFDSK

-------------- ----------- ----------------

/dev/rlv_asm1            2 DATA_0000

/dev/rlv_asm2            2 DATA_0001

/dev/rlv_asm3            2 DATA_0002

/dev/rlv_asm4            2 DATA_0003            





ASMCMD> lsdg

State    Type    Rebal  Unbal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Name

MOUNTED  EXTERN  N      N         512   4096  4194304      1024      928                0             928              0  DATA/                                                       





  1* select INDX,inst_id,group_kffil,number_kffil,filsiz_kffil,ftype_kffil from x$kffil

SQL> /



      INDX    INST_ID GROUP_KFFIL NUMBER_KFFIL FILSIZ_KFFIL FTYPE_KFFIL

---------- ---------- ----------- ------------ ------------ -----------

         0          1           1            1      4194304          15

         1          1           1            2      1048576          15

         2          1           1            3     46137344          15

         3          1           1            4      1392640          15

         4          1           1            5      1048576          15

         5          1           1            6      1048576          15



6 rows selected.
至此AIX使用LV创建ASM磁盘组操作完毕。

-----------------------------------------------------------------------------------------------------------------

本站注明原创和翻译的均为原创文章,文章同意转载,但必须以链接方式注明源地址。

否则追究法律责任!文章中难免有疏漏欢迎网友批评指正。

QQ:       173386747



Email:    hailong.sun1982@gmail.com



Blog:     http://blog.csdn.net/card_2005

版权声明:本文博主原创文章,博客,未经同意不得转载。

AIX采用LV创ASM磁盘组的更多相关文章

  1. 单机静默安装GI软件并创建ASM实例和ASM磁盘组

    环境:RHEL 6.4 + Oracle 11.2.0.4 需求:单机静默安装GI软件并创建ASM实例和ASM磁盘组,为后续迁移数据库文件到ASM做准备 1. 安装配置GI软件 2. 创建ASM实例 ...

  2. asm磁盘组,asm磁盘状态学习

    说明:在数据库中巡检,发现,数据库某个磁盘组状态为mount,其余磁盘组均为CONNECTED状态,排除是否异常 文档流程: 1.实际环境查询校验 2.官方文档视图中对磁盘组,磁盘状态的解释说明 3. ...

  3. ASM磁盘组扩容流程

    环境:RHEL 6.5 + GI 11.2.0.4 + Oracle 11.2.0.4 1.确认磁盘权限正确 2.图形界面配置 3.启用asmca配置 4.修改磁盘组rebalance power级别 ...

  4. 使用asmcmdcp命令把datafile从文件系统移动(move)到asm磁盘组中 针对11gR2

    使用asmcmd cp命令 把datafile从文件系统移动(move)到asm磁盘组中--针对11gR2 参考原文:How to Move a Datafile from Filesystem to ...

  5. ASM磁盘组空间不足--ORA-15041:DISGROUP DATA space exhausted (生产库案例)

    原创作品,出自 "深蓝的blog" 博客,深蓝的blog:http://blog.csdn.net/huangyanlong/article/details/47277715 近日 ...

  6. 11G ORACLE RAC DBCA 无法识别asm磁盘组

    ASM磁盘无法识别几种现象: 1) gi家目录或者其子目录权限错误 2)asm磁盘的权限错误 3)asm实例未启动或者asm磁盘组没有mount上 4)asm磁盘组资源没有在线 5)oracle用户的 ...

  7. 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:4.安装Oracle RAC FAQ-4.5.安装Grid,创建ASM磁盘组空间不足

    因之前分区时,分区的Last cylinder的值选了“1”,导致创建磁盘组空间不足.解决办法是先删除分区,重新创建分区并删除ASM磁盘,然后重建ASM磁盘 1. 先删除分区,重新创建分区: 1)查询 ...

  8. Linux下搭建Oracle11g RAC(8)----创建ASM磁盘组

    以grid用户创建ASM磁盘组,创建的ASM磁盘组为下一步创建数据库提供存储. ① grid用户登录图形界面,执行asmca命令来创建磁盘组: ② 进入ASMCA配置界面后,单击Create,创建新的 ...

  9. 如果ASM磁盘组由哪些物理磁盘组成?

    我们知道用下面的方法可创建 ASM 磁盘,然后再创建逻辑的ASM组 以 root 用户身份创建 ASM 磁盘.# /etc/init.d/oracleasm createdisk VOL1 /dev/ ...

随机推荐

  1. 【Quick-COCOS2D-X 3.3 怎样绑定自己定义类至Lua之三】动手绑定自己定义类至Lua

        查看[Quick-COCOS2D-X 3.3 怎样绑定自己定义类至Lua之二]新建项目中配制环境,我们完美的在新建项目中完毕了绑定须要的环境,接下来才是最关健的一步.绑定自己定义C++类至Lu ...

  2. php定时运行任务(windows7)

    1:自己写的php档,下面是我的一些php档 watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxMzE2MDAyNA==/font/5a6L5L2T/f ...

  3. [转载] 树莓派读取温湿度传感器DHT11

    原文地址: http://blog.csdn.net/liang890319/article/details/8739683 硬件: 树莓派 2.0 DHT模块  接树莓派5V GND GPIO1 功 ...

  4. MVC 检测用户是否登录

         当我们访问一个网站的需求检測用户是否已经登录(通过Session是否为null),我们知道在WebForm中能够定义一个BasePage类让他继承System.Web.UI.Page,重写它 ...

  5. 自动同步Android源代码的脚本(repo sync)

    #!/bin/bash echo "================start repo sync====================" repo sync -j5 ]; do ...

  6. 解决apache+tomcatserver环境中文乱码的问题

    在使用apache做转发服务器时,碰到了中文乱码的问题. 说说解决思路: 1.通常乱码是由于编码不统一造成的.所以要先推断是不是由于编码问题造成的,假设是的话,那统一编码就能够去解决. 2.tomca ...

  7. POJ 1915-Knight Moves (单向BFS && 双向BFS 比)

    主题链接:Knight Moves 题意:8个方向的 马跳式走法 ,已知起点 和终点,求最短路 研究了一下双向BFS,不是非常难,和普通的BFS一样.双向BFS只是是从 起点和终点同一时候開始搜索,可 ...

  8. JFrame、JDialog close

    package common; import javax.swing.JFrame; import javax.swing.SwingUtilities; /*2015-5-26*/ public c ...

  9. vector和list删除元素

    #include <iostream> #include <vector> #include <list> using namespace std; int mai ...

  10. [LeetCode136]Single Number寻找一个数组里只出现一次的数

    题目: Given an array of integers, every element appears twice except for one. Find that single one. No ...