欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 房产 > 家装 > centos 7 虚拟化单通道光纤 udev 的配置

centos 7 虚拟化单通道光纤 udev 的配置

2024/11/30 20:50:33 来源:https://blog.csdn.net/hoffmannlin/article/details/139654628  浏览:    关键词:centos 7 虚拟化单通道光纤 udev 的配置

常见多为multipath.conf的配置方式

这是单通道配置方式

扫描通道

[root@rac12-2 ~]# echo "- - -" > /sys/class/scsi_host/host0/scan
[root@rac12-2 ~]# echo "- - -" > /sys/class/scsi_host/host1/scan
# for disk in /dev/sd*; do echo "WWID of $disk is: $(/lib/udev/scsi_id -g -u -d $disk)"; done
WWID of /dev/sda is: 3600224806c54328a8971625988b0c043
WWID of /dev/sda1 is: 3600224806c54328a8971625988b0c043
WWID of /dev/sda2 is: 3600224806c54328a8971625988b0c043
WWID of /dev/sda3 is: 3600224806c54328a8971625988b0c043
WWID of /dev/sdb is: 36000d31005a42e000000000000000024
WWID of /dev/sdc is: 36000d31005a42e000000000000000025
WWID of /dev/sdd is: 36000d31005a42e000000000000000023
WWID of /dev/sde is: 36000d31005a42e000000000000000022
WWID of /dev/sde1 is: 36000d31005a42e000000000000000022
WWID of /dev/sde2 is: 36000d31005a42e000000000000000022
# lsblk -S -a --output NAME,WWN,UUID,PKNAME,MODEL,SERIAL
NAME WWN                UUID PKNAME MODEL            SERIAL
sda  0x600224806c54328a             Virtual Disk     600224806c54328a8971625988b0c043
sdb  0x6000d31005a42e00             Compellent Vol   6000d31005a42e000000000000000024
sdc  0x6000d31005a42e00             Compellent Vol   6000d31005a42e000000000000000025
sdd  0x6000d31005a42e00             Compellent Vol   6000d31005a42e000000000000000023
sde  0x6000d31005a42e00             Compellent Vol   6000d31005a42e000000000000000022
# cat /etc/udev/rules.d/99-oracle-asmdevices.rules
KERNEL=="sd*",SUBSYSTEM=="block",PROGRAM=="/lib/udev/scsi_id -g -u -d /dev/$name",RESULT=="36000d31005a42e000000000000000023",SYMLINK+="asm-100g-0023-ocr1",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*",SUBSYSTEM=="block",PROGRAM=="/lib/udev/scsi_id -g -u -d /dev/$name",RESULT=="36000d31005a42e000000000000000024",SYMLINK+="asm-100g-0024-ocr2",OWNER="grid",GROUP="asmadmin",MODE="0660"
KERNEL=="sd*",SUBSYSTEM=="block",PROGRAM=="/lib/udev/scsi_id -g -u -d /dev/$name",RESULT=="36000d31005a42e000000000000000025",SYMLINK+="asm-2000g-0025-data001",OWNER="grid",GROUP="asmadmin",MODE="0660"

重新加载

[root@rac12-2 ~]# /sbin/udevadm control --reload-rules
[root@rac12-2 ~]# /sbin/udevadm trigger

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com