Configuring ASM with Udev SCSI on SuSE Linux Enterprise SP1

Source: Internet
Author: User
Tags uuid

1. Edit the/etc/scsi_id.config file, if the file does not exist, create the file, and add the following line:Options=–whitelisted–replace-whitespace

2. Get the disk UUID that needs to be bound to ASM disk, for example we want to use/DEV/SDC and/DEV/SDD as ASM disks, then:

#/LIB/UDEV/SCSI_ID–WHITELISTED–REPLACE-WHITESPACE–DEVICE=/DEV/SDC

1ata_vbox_harddisk_vb36a9e548-1838194a

#/LIB/UDEV/SCSI_ID–WHITELISTED–REPLACE-WHITESPACE–DEVICE=/DEV/SDD

1ata_vbox_harddisk_vb9808fc7f-cdf35030

The path to scsi_id on SUSE Linux Enterprise SP1 is not the same as Rhel.

3. Write Udev rules file, program write scsi_id command, result in the above command to write the UUID returned.

Vi/etc/udev/rules.d/99-oracle-asmdevices.rules
kernel== "sd*", subsystem== "block", program== "/lib/udev/scsi_id–whitelisted–replace-whitespace–device=/dev/$name" , result== "1ata_vbox_harddisk_vb36a9e548-
1838194a ", name=" Asm-disk1″, owner= "grid", group= "Asmadmin", mode= "0660″
kernel== "sd*", subsystem== "block", program== "/lib/udev/scsi_id–whitelisted–replace-whitespace–device=/dev/$name" , result== "1ata_vbox_harddisk_vb9808fc7f-
Cdf35030″, Name= "Asm-disk2″, owner=" grid ", group=" Asmadmin ", mode=" 0660″

4. Test with UDEVADM, note that the Udevadm command does not accept a mount device name such as/DEV/SDC, and must be the original device name using/SYS/BLOCK/SDC.

Udevadm TEST/SYS/BLOCK/SDC in the display, there is an output similar to the following, indicating that the test is correct and that the/DEV/SDC device will be bound to/dev/asm-disk1 after Udev starts:

Udevadm_test:udev_log=6
Udevadm_test:devpath=/devices/pci0000:00/0000:00:0d.0/host4/target4:0:0/4:0:0:0/block/sdc
Udevadm_test:major=8 udevadm_test:minor=32
Udevadm_test:devname=/dev/asm-disk1
Udevadm_test:devtype=disk
Udevadm_test:action=add
Udevadm_test:subsystem=block

5. Start Udev

#/etc/init.d/boot.udev Restart–udev boot mode is different from Rhel

6. Check if the device is properly bound

# ls-l/dev/asm*

brw-rw--1 grid asmadmin 8, Oct-21:24/dev/asm-disk1
brw-rw--1 grid asmadmin 8, Oct 21:17/dev/asm-disk2

Reprint: http://www.tianqingbo.com/suse-linux-enterprise-udev-scsi-asm.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.