zoukankan      html  css  js  c++  java
  • Linux6.6及以上版本配置oracle-ASM共享储存-UDEV-V1

    1,在该路劲下创建50-udev.rules文件,将要创建成ASM设备的裸设备添加进去,并指定OWNER

    两个节点进行创建

     [root@oraclea rules.d]# pwd
    /etc/udev/rules.d
    [root@oraclea rules.d]# cat 50-udev.rules
    SUBSYSTEM=="block", KERNEL=="sdb", GROUP="asmadmin", OWNER="grid", MODE="0660"
    SUBSYSTEM=="block", KERNEL=="sdc", GROUP="asmadmin", OWNER="grid", MODE="0660"
    SUBSYSTEM=="block", KERNEL=="sdd", GROUP="asmadmin", OWNER="grid", MODE="0660"
    SUBSYSTEM=="block", KERNEL=="sde", GROUP="asmadmin", OWNER="grid", MODE="0660"
    SUBSYSTEM=="block", KERNEL=="sdf", GROUP="asmadmin", OWNER="grid", MODE="0660"
    SUBSYSTEM=="block", KERNEL=="sdg", GROUP="asmadmin", OWNER="grid", MODE="0660"
    SUBSYSTEM=="block", KERNEL=="sdh", GROUP="asmadmin", OWNER="grid", MODE="0660"

    创建后启动UDEV服务

    [root@oraclea rules.d]#/sbin/start_udev

    一般情况下都会报udev[31488],提示匹配不到这个文件的标签

    /lib/udev/rules.d/90-pulseaudio.rules

    所以需要对这个文件进行修改

    [root@oraclea rules.d]# cat /lib/udev/rules.d/90-pulseaudio.rules
    # do not edit this file, it will be overwritten on update

    # This file is part of PulseAudio.
    #
    # PulseAudio is free software; you can redistribute it and/or modify
    # it under the terms of the GNU Lesser General Public License as
    # published by the Free Software Foundation; either version 2.1 of the
    # License, or (at your option) any later version.
    #
    # PulseAudio is distributed in the hope that it will be useful, but
    # WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    # Lesser General Public License for more details.
    #
    # You should have received a copy of the GNU Lesser General Public License
    # along with PulseAudio; if not, write to the Free Software Foundation,
    # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

    SUBSYSTEM!="sound", GOTO="pulseaudio_end"
    ACTION!="change", GOTO="pulseaudio_end"
    KERNEL!="card*", GOTO="pulseaudio_end"
    #SUBSYSTEMS=="usb", GOTO="pulseaudio_check_usb"

    #SUBSYSTEMS=="usb",
     ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="1978", ENV{PULSE_PROFILE_SET}="native-instruments-audio8dj.conf"
    #SUBSYSTEMS=="usb",
    ATTRS{idVendor}=="17cc", ATTRS{idProduct}=="0839", ENV{PULSE_PROFILE_SET}="native-instruments-audio4dj.conf"
    #SUBSYSTEMS=="usb",
     ATTRS{idVendor}=="0763", ATTRS{idProduct}=="2012", ENV{PULSE_PROFILE_SET}="maudio-fasttrack-pro.conf"

    # NVidia and Intel HDAs often have more than one HDMI codec/port on the same card
    ATTRS{vendor}=="0x10de", ENV{PULSE_PROFILE_SET}="extra-hdmi.conf"
    ATTRS{vendor}=="0x8086", ENV{PULSE_PROFILE_SET}="extra-hdmi.conf"
    GOTO="pulseaudio_end"

    LABEL="pulseaudio_end"

    将红色部分注释掉就可以正常启动UDEV了

  • 相关阅读:
    sql的reader方法注意事项
    C++ pair(对组)的简单了解
    cin>>
    枚举
    FirstTry_HelloWorld
    错误:'class QApplication' has no member named 'setMainwidget'
    Open Asset Import Library(assimp) vs2010编译
    vs2010中配置OpenGL以及针对64位系统所遇问题的解决办法
    修改文件夹权限以及右键终端设置
    ubuntu中安装iso文件
  • 原文地址:https://www.cnblogs.com/guipeng/p/6889973.html
Copyright © 2011-2022 走看看