3 Replies Latest reply: Jan 2, 2013 12:51 PM by 898553 RSS

    Help me configuring udev rule for raw disks

    SaikatBanerjee
      I am using oel 5.8, oracle 11.2.0.3. The raw disk permissions are getting changed when the node gets rebooted.I am trying to use udev rule to change the permission permanently but its not working. Please help.


      *[root@VM-PAGRAC3 rules.d]# more 99-asm.rules*
      KERNEL=="sd", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p",*
      *RESULT=="SATA_VBOX_HARDDISK_VB7a29b7ae-de673b56_",*
      *NAME+="oracleasm/disks/DSK1#" OWNER="grid"*
      *GROUP="asmadmin" MODE="0660*"
      KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p",
      RESULT=="SATA_VBOX_HARDDISK_VB36f5d134-4e0e4c43_",
      NAME+="oracleasm/disks/DSK2#" OWNER="grid"
      GROUP="asmadmin" MODE="0660"
      KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p",
      RESULT=="SATA_VBOX_HARDDISK_VB09058e05-3d6b153f_",
      NAME+="oracleasm/disks/DSK3#" OWNER="grid"
      GROUP="asmadmin" MODE="0660"
      KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p",
      RESULT=="SATA_VBOX_HARDDISK_VBb2df757a-5661a9e0_",
      NAME+="oracleasm/disks/DSK4#" OWNER="grid"
      GROUP="asmadmin" MODE="0660"
      KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p",
      RESULT=="SATA_VBOX_HARDDISK_VB7c5c71cc-19173dcb_",
      NAME+="oracleasm/disks/DSK5#" OWNER="grid"
      GROUP="asmadmin" MODE="0660"
      KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p",
      RESULT=="SATA_VBOX_HARDDISK_VB2efbb6dc-1096a916_",
      NAME+="oracleasm/disks/DSK6#" OWNER="grid"
      GROUP="asmadmin" MODE="0660"
      KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p",
      RESULT=="SATA_VBOX_HARDDISK_VB74bd75c4-457561a7_",
      NAME+="oracleasm/disks/DSK7#" OWNER="grid"
      GROUP="asmadmin" MODE="0660"
      KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id -g -u -s %p",
      RESULT=="SATA_VBOX_HARDDISK_VBf5489a0d-4dcd1683_",
      NAME+="oracleasm/disks/DSK8#" OWNER="grid"
      GROUP="asmadmin" MODE="0660"



      But Only one disk is showing up. _*Why other 7 disks are not showing? Whats wrong with the udev rule file?*_


      [root@VM-PAGRAC3 disks]# start_udev
      Starting udev: [  OK  ]
      [root@VM-PAGRAC3 disks]# ls -alh
      total 0
      drwxr-xr-x 1 root root 0 Jan 1 22:54 .
      drwxr-xr-x 4 root root 0 Jan 1 19:55 ..
      brw-r----- 1 root root 8, 32 Jan 1 20:05 DISK1
      brw-rw---- 1 grid asmadmin 8, 17 Jan 1 22:54 DSK1#
      [root@VM-PAGRAC3 disks]# cd /dev/oracleasm/disks
      [root@VM-PAGRAC3 disks]# start_udev
      Starting udev: [  OK  ]
      [root@VM-PAGRAC3 disks]# ls -alh
      total 0
      drwxr-xr-x 1 root root 0 Jan 1 22:54 .
      drwxr-xr-x 4 root root 0 Jan 1 19:55 ..
      brw-r----- 1 root root 8, 32 Jan 1 20:05 DISK1
      *brw-rw---- 1 grid asmadmin 8, 17 Jan 1 22:54 DSK1#*
      [root@VM-PAGRAC3 disks]



      Regards,
      Saikat

      Edited by: Saikat Banerjee on Jan 1, 2013 10:52 PM

      Edited by: Saikat Banerjee on Jan 1, 2013 10:53 PM