How to create udev rules of storage devices for ASM usage

  • A+
Categories:Linux

When I install the Grid Infrastructure(GI), usually I need to configure the udev rule for the storage devices to get a persistent device names and set the right owner, group and permissions on them for ASM.

Below is one simple way to finish such task.

1. Get the WWNA of the devices

For every device, this value is unique. All partitions share the same WWNA as the device itself.

2. For whole disk, use ENV{DEVTYPE}=="disk"; For partitions, use ENV{DEVTYPE}=="partition" and ATTR{partition}=="1" or ATTR{partition}=="2" for first partition and second partition. If you have more partitions, just increase the partition index number.

3. Create the udev rules.

Of course you should add other options like

Run below commands to make it take effect.

Done! :)

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: