Home  >  Article  >  Database  >  RedHat6.3 udev 配置 存储器磁盘

RedHat6.3 udev 配置 存储器磁盘

WBOY
WBOYOriginal
2016-06-07 17:27:471128browse

1.udev 配置文件 (RedHat 6.3) 1.1获取磁盘UUID: [root@localhost ~]# /sbin/scsi_id -g -u /dev/sdb 3690b11c0002be80e

1.udev 配置文件
 
(RedHat 6.3)
 1.1获取磁盘UUID:
 
    [root@localhost ~]# /sbin/scsi_id -g -u /dev/sdb
    3690b11c0002be80e00000ce3514380db
    [root@localhost ~]# /sbin/scsi_id -g -u /dev/sdc
    3690b11c0002be80e00000ce5514380f8
    [root@localhost ~]# /sbin/scsi_id -g -u /dev/sdd
    3690b11c0002be80e00000ce75143810c
    [root@localhost ~]# /sbin/scsi_id -g -u /dev/sdd
    3690b11c0002be80e00000ce75143810c
    [root@localhost ~]# /sbin/scsi_id -g -u /dev/sde
    3690b11c0002be80e00000ce95143811c
    [root@localhost ~]# /sbin/scsi_id -g -u /dev/sdf
    3690b11c0002be7310000099851438137
 


2.配置
    /etc/udev/rules.d/99-Oracle-asmdevices.rules
 
    KERNEL=="sd?1",BUS="scsi",PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent",\
    RESULT=="3690b11c0002be80e00000ce3514380db",\
   , OWNER="grid",GROUP="asmadmin",MODE="0660"
 
    KERNEL=="sd?1",BUS="scsi",PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent",\
    RESULT=="3690b11c0002be80e00000ce5514380f8",\
   , OWNER="grid",GROUP="asmadmin",MODE="0660"
 

    KERNEL=="sd?1",BUS="scsi",PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent",\
    RESULT=="3690b11c0002be80e00000ce75143810c",\
   , OWNER="grid",GROUP="asmadmin",MODE="0660"
 

    KERNEL=="sd?1",BUS="scsi",PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent",\
    RESULT=="3690b11c0002be80e00000ce95143811c",\
   , OWNER="grid",GROUP="asmadmin",MODE="0660"
 

    KERNEL=="sd?1",BUS="scsi",PROGRAM=="/sbin/scsi_id -g -u -d /dev/$parent",\
    RESULT=="3690b11c0002be7310000099851438137",\
   , OWNER="grid",GROUP="asmadmin",MODE="0660"
 
3.重启UDEV服务
 
[root@localhost rules.d]# /sbin/partprobe /dev/sdb1
 [root@localhost rules.d]# /sbin/partprobe /dev/sdc1
 [root@localhost rules.d]# /sbin/partprobe /dev/sdd1
 [root@localhost rules.d]# /sbin/partprobe /dev/sde1
 [root@localhost rules.d]# /sbin/partprobe /dev/sdf1
 [root@localhost rules.d]# /sbin/start_udev
 正在启动 udev:                                            [确定]
 [root@localhost rules.d]# ll /dev/asm*
 brw-rw----. 1 root root 8, 17 3月  27 11:30 /dev/asm-crs01
 brw-rw----. 1 root root 8, 33 3月  27 11:30 /dev/asm-data01
 brw-rw----. 1 root root 8, 49 3月  27 11:30 /dev/asm-data02
 brw-rw----. 1 root root 8, 65 3月  27 11:30 /dev/asm-recovery01
 brw-rw----. 1 root root 8, 81 3月  27 11:30 /dev/asm-recovery02
 [root@localhost rules.d]#

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn