华为多路径存储udev配置
1、多磁盘
## DCRV1磁盘配置,dcr
ACTION=="add|change",KERNEL=="sd*",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name",RESULT=="234074fa79680f431",SYMLINK+="rac/dmdcr", OWNER="dmdba", GROUP="dmdba", MODE="0660"
## DCRV2磁盘配置,vote
ACTION=="add|change",KERNEL=="sd*",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name",RESULT=="234074fa79680f432",SYMLINK+="rac/dmvote", OWNER="dmdba", GROUP="dmdba", MODE="0660"
## DCRV3磁盘配置,redo
ACTION=="add|change",KERNEL=="sd*",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name",RESULT=="234074fa79680f433",SYMLINK+="rac/dmredo", OWNER="dmdba", GROUP="dmdba", MODE="0660"
## DCRV4磁盘配置,arch
ACTION=="add|change",KERNEL=="sd*",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name",RESULT=="234074fa79680f434",SYMLINK+="rac/dmarch", OWNER="dmdba", GROUP="dmdba", MODE="0660"
## DCRV5磁盘配置,data
ACTION=="add|change",KERNEL=="sd*",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name",RESULT=="234074fa79680f435",SYMLINK+="rac/dmdata", OWNER="dmdba", GROUP="dmdba", MODE="0660"
2、单磁盘分区
ACTION=="add|change", KERNEL=="sd?1",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name",RESULT=="36684aae100f78b36ffefa27c00001c58", SYMLINK+="rac/dmvote", OWNER="dmdba", GROUP="dinstall", MODE="0660", OPTIONS="nowatch"
ACTION=="add|change", KERNEL=="sd?2",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name",RESULT=="36684aae100f78b36ffefa27c00001c58", SYMLINK+="rac/dmdcr", OWNER="dmdba", GROUP="dinstall", MODE="0660", OPTIONS="nowatch"
ACTION=="add|change", KERNEL=="sd?3",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name",RESULT=="36684aae100f78b36ffefa27c00001c58", SYMLINK+="rac/dmlog", OWNER="dmdba", GROUP="dinstall", MODE="0660", OPTIONS="nowatch"
ACTION=="add|change", KERNEL=="sd?4",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/$name",RESULT=="36684aae100f78b36ffefa27c00001c58", SYMLINK+="rac/dmdata01", OWNER="dmdba", GROUP="dinstall", MODE="0660", OPTIONS="nowatch"
完成裸设备绑定,重新加载udev规则
/sbin/udevadm control --reload-rules
/sbin/udevadm trigger --type=devices --action=change