2 Replies Latest reply: Apr 10, 2013 7:07 PM by onedbguru RSS

    how to label disk for ASM without ASMLib?

    g777
      hi

      Used Redhat Linux 6.4 with multipathing.
      ASMLib is not provided for RH6 anymore. UDEV is recommended.
      But I don't see the presented multipathed drives when installing grid (Create ASM disk group stage).

      My config is:
      ----
      multipath -ll
      oradata2 (36001438009b019c10000600001280000) dm-2 HP,HSV300
      size=1.3T features='1 queue_if_no_path' hwhandler='0' wp=rw
      |-+- policy='round-robin 0' prio=50 status=active
      | `- 1:0:0:1 sdb 8:16  active ready running
      `-+- policy='round-robin 0' prio=10 status=enabled
        `- 2:0:0:1 sdf 8:80  active ready running
      oradata1 (36001438009b019c100006000012c0000) dm-3 HP,HSV300
      size=1.3T features='1 queue_if_no_path' hwhandler='0' wp=rw
      |-+- policy='round-robin 0' prio=50 status=active
      | `- 2:0:0:2 sdg 8:96  active ready running
      `-+- policy='round-robin 0' prio=10 status=enabled
        `- 1:0:0:2 sdc 8:32  active ready running
      orareco2 (36001438009b019c10000600001340000) dm-4 HP,HSV300
      size=1.3T features='1 queue_if_no_path' hwhandler='0' wp=rw
      |-+- policy='round-robin 0' prio=50 status=active
      | `- 2:0:0:4 sdi 8:128 active ready running
      `-+- policy='round-robin 0' prio=10 status=enabled
        `- 1:0:0:4 sde 8:64  active ready running
      orareco1 (36001438009b019c10000600001300000) dm-5 HP,HSV300
      size=1.3T features='1 queue_if_no_path' hwhandler='0' wp=rw
      |-+- policy='round-robin 0' prio=50 status=active
      | `- 1:0:0:3 sdd 8:48  active ready running
      `-+- policy='round-robin 0' prio=10 status=enabled
        `- 2:0:0:3 sdh 8:112 active ready running
      ls -l /dev/mapper/ora*
      lrwxrwxrwx 1 root root 7 Apr  9 09:14 /dev/mapper/oradata1 -> ../dm-3
      lrwxrwxrwx 1 root root 7 Apr  9 09:14 /dev/mapper/oradata1p1 -> ../dm-7
      lrwxrwxrwx 1 root root 7 Apr  9 09:14 /dev/mapper/oradata2 -> ../dm-2
      lrwxrwxrwx 1 root root 7 Apr  9 09:14 /dev/mapper/oradata2p1 -> ../dm-6
      lrwxrwxrwx 1 root root 7 Apr  9 09:14 /dev/mapper/orareco1 -> ../dm-5
      lrwxrwxrwx 1 root root 7 Apr  9 09:14 /dev/mapper/orareco1p1 -> ../dm-9
      lrwxrwxrwx 1 root root 7 Apr  9 09:14 /dev/mapper/orareco2 -> ../dm-4
      lrwxrwxrwx 1 root root 7 Apr  9 09:14 /dev/mapper/orareco2p1 -> ../dm-8
      So I've got ready partitions e.g. oradata1p1.
      When using ASMLib one could use
      /etc/init.d/oracleasm createdisk VOL1 /dev/mapper/oradata1p1
      What is the equivalent command when not using ASMLib?

      I'm trying to define udev rules but it seems they don't add any value to my solution:
      cat /etc/udev/rules.d/99-udev-oracle.rules
      # DATA disks
      KERNEL=="oradata*",BUS=="scsi",ENV{ID_SERIAL}=="36001438009b019c100006000012c0000", NAME="asmdisk1a", OWNER="oracle", GROUP="oinstall", MODE="660"
      KERNEL=="oradata*",BUS=="scsi",ENV{ID_SERIAL}=="36001438009b019c10000600001280000", NAME="asmdisk1b", OWNER="oracle", GROUP="oinstall", MODE="660"
      # FRA disks
      KERNEL=="orareco*",BUS=="scsi",ENV{ID_SERIAL}=="36001438009b019c10000600001300000", NAME="asmdisk2a", OWNER="oracle", GROUP="oinstall", MODE="660"
      KERNEL=="orareco*",BUS=="scsi",ENV{ID_SERIAL}=="36001438009b019c10000600001340000", NAME="asmdisk2b", OWNER="oracle", GROUP="oinstall", MODE="660"
      Please help me to define it if this the right way to go?