3 Replies Latest reply: Dec 5, 2012 11:11 AM by LaserSoft RSS

    need help with error in creating ASM symbolic link

    ateeqrahman
      Hi,

      I am trying to create 2-node Rac on 10g in vmware environment. I installed RHEL 4 along with all the required rpm's.

      I am getting error while trying to map raw devices for ASM

      *'ln: creating symbolic link `/u01/oradata/devdb/asmdisk1' to `/dev/raw/raw1': Permission denied'*

      I did the below steps:

      Add the following lines in /etc/sysconfig/rawdevices.

      vi /etc/sysconfig/rawdevices
      /dev/raw/raw1 /dev/sdc1
      /dev/raw/raw2 /dev/sdd1
      /dev/raw/raw3 /dev/sde1

      To make the mapping effective immediately, execute the following commands as the root user:

      # /sbin/service rawdevices restart

      Assigning devices:
      /dev/raw/raw1 --> /dev/sdc1
      /dev/raw/raw1: bound to major 8, minor 33
      /dev/raw/raw2 --> /dev/sdd1
      /dev/raw/raw2: bound to major 8, minor 49
      /dev/raw/raw3 --> /dev/sde1
      /dev/raw/raw3: bound to major 8, minor 65
      done

      # chown oracle:dba /dev/raw/raw[1-3]
      # chmod 660 /dev/raw/raw[1-3]

      # ls -lat /dev/raw/raw*
      crw-rw---- 1 oracle dba 162, 3 Nov 4 07:04 /dev/raw/raw3
      crw-rw---- 1 oracle dba 162, 2 Nov 4 07:04 /dev/raw/raw2
      crw-rw---- 1 oracle dba 162, 1 Nov 4 07:04 /dev/raw/raw1


      As the oracle user, execute

      rac1~]$ ln -sf /dev/raw/raw1 /u01/oradata/devdb/asmdisk1
      ln: creating symbolic link '/u01/oradata/devdb/asmdisk1' to '/dev/raw/raw1': permission denied

      Please suggest how to solve this error.

      Thanks,