SUSE 基于udev的RAC扩容

节点1:
    lvcreate -l 100%Free -n asmdata02 asm

    cat /etc/udev/rules.d/99-oraclasm.rules
        ENV{DM_NAME}=="asm-asmdata02", OWNER="grid", GROUP="oinstall", MODE="0660"
       
    /etc/init.d/boot.udev status
    /etc/init.d/boot.udev restart

    udevadm test /sys/block/dm-4

    ll /dev/dm-*
节点2:
    lvs能看到asmdata02是存在的,但是lvscan看到状态是inactive的,所以在/dev/mapper/下看不到对应的lv,因此需要激活:
    lvchange -ay /dev/asm/asmdata02

    cat /etc/udev/rules.d/99-oraclasm.rules
        ENV{DM_NAME}=="asm-asmdata02", OWNER="grid", GROUP="oinstall", MODE="0660"

    /etc/init.d/boot.udev status
    /etc/init.d/boot.udev restart

    udevadm test /sys/block/dm-4

    ll /dev/dm-*
两个节点:
    su - grid
    sqlplus / as sysasm
        SQL> set lines 150 pages 1000
        SQL> col name for a20
        SQL> col path for a30
        SQL> select group_number,name,path,disk_number,header_status from v$asm_disk order by 1,4;
节点1:
    alter diskgroup DG_PBOSS add disk '/dev/mapper/asm-asmdata02';

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/31441616/viewspace-2153903/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/31441616/viewspace-2153903/

你可能感兴趣的:(SUSE 基于udev的RAC扩容)