1.編輯
/etc/udev/rules.d/12-dm-permissions.rules
# Set permissions for first partition created on a multipath device (and detected by kpartx)
ENV{DM_NAME}=="asmdisk*", OWNER:="grid", GROUP:="asmadmin", MODE:="660", SYMLINK+="$env{DM_NAME}"
ENV{DM_NAME}=="votingdisk*", OWNER:="grid", GROUP:="asmadmin", MODE:="660", SYMLINK+="$env{DM_NAME}"
2.重啟multipathd
service multipathd restart
3.
最後用root執行 /sbin/start_udev
最後看到 /dev/asmdisk1 , asmdisk2 , votingdisk1 , votingdisk2 , votingdisk3 都會產生出來
Ref:
https://blogs.oracle.com/askmaclean/entry/%E5%9C%A8linux_6%E4%B8%8A%E4%BD%BF%E7%94%A8udev%E8%A7%A3%E5%86%B3rac_asm%E5%AD%98%E5%82%A8%E8%AE%BE%E5%A4%87%E5%90%8D%E9%97%AE%E9%A2%98
How to set udev rule for setting the disk permission on ASM disks when using multipath on OL 6.x (Doc ID 1521757.1)
沒有留言:
張貼留言