zoukankan      html  css  js  c++  java
  • How to Enabling and Diabling VxDMP devices for use with Oracle ASM

    Enable DMP support for ASM to make DMP devices visible to ASM as available disks

    To make DMP devices visible to ASM

    1. From ASM, make sure ASM_DISKSTRING is set to the value/dev/raw/*.

      For Linux:

      The value for ASM_DISKSTRING is /dev/raw/*.

      SQL> show parameter ASM_DISKSTRING;
      	NAME                 TYPE        VALUE
      	-------------------- ----------- ---------------
      	asm_diskstring       string      /dev/raw/*

      For AIX, HP-UX, and Solaris:

      The value for ASM_DISKSTRING is /dev/vx/rdmp/*.

      SQL> show parameter ASM_DISKSTRING;
      	NAME                 TYPE        VALUE
      	-------------------- ----------- ---------------
      	asm_diskstring       string      /dev/vx/rdmp/*
    2. As root user, enable DMP devices for use with ASM.

      # vxdmpraw enable usernamegroupname [devicename ...]

      For example:

      # vxdmpraw enable oracle dba eva4k6k0_1
    3. For Linux, perform this step:

      The vxdmpraw enable command creates raw devices in the /dev/raw/* directory, corresponding to the DMP devices. Query the raw devices for devices with major number 201 and minor number between 241 to 255. There are 16 entries, since disks in Linux can have a maximum of 16 partitions. For example:

      # raw -qa | grep "major 201, minor 241"
      /dev/raw/raw54:  bound to major 201, minor 241

      The above output indicates that /dev/raw/raw54 corresponds to the partition/dev/vx/rdmp/eva4k6k0_1s1. Similarly, /dev/raw/raw55 corresponds to/dev/vx/rdmp/eva4k6k0_1s2 and so forth. Finally, /dev/raw/raw69 corresponds to/dev/vx/rdmp/eva4k6k0_1s15.

    4. From ASM, confirm that ASM can see these new devices.

      SQL> select name,path,header_status from v$asm_disk;

      Sample output for Linux:

      NAME  PATH	                     HEADER_STATUS
      ---------------------------------------------
      ...   .......                   ....
            /dev/raw/raw53	           CANDIDATE
      ...  	.......   	               ....

      Sample output for AIX, HP-UX, and Solaris:

      NAME  PATH	                     HEADER_STATUS
      ---------------------------------------------
      ...   .......                   ....
           	/dev/vx/rdmp/eva4k6k0_1	  CANDIDATE
      ...  	.......   	               ....
     

    Remove DMP devices from the listing of ASM disks

    To remove DMP devices from the listing of ASM disks, disable DMP support for ASM from the device. You cannot remove DMP support for ASM from a device that is in an ASM disk group.

    To remove the DMP device from the listing of ASM disks

    1. If the device is part of any ASM disk group, remove the device from the ASM disk group.

    2. As root user, disable DMP devices for use with ASM.

      # vxdmpraw disable diskname

      For example:

      # vxdmpraw disable eva4k6k0_1
  • 相关阅读:
    CSS書寫規範及CSS Hack
    C#中为什么不能再方法里定义静态变量(Static)
    本机操作Excel文件提示错误:未在本地计算机上注册“Microsoft.Jet.OLEDB.4.0”提供程序。
    C#中静态变量和 静态方法的作用
    C#静态构造函数和非静态构造函数
    C# 判断字符串为空的4种方法及效率
    ASP.NET反射
    C#排序1(冒泡排序、直接排序、快速排序)
    javascript、jquery 、C#、sqlserveer、mysql、oracle中字符串截取的区别和用法
    MySQL数据库不识别server=.而是识别localhost
  • 原文地址:https://www.cnblogs.com/cqubityj/p/3252664.html
Copyright © 2011-2022 走看看