Leo 发表于 2014-12-4 14:49:57

存储udev多路径问题

存储有两个控制器,每台服务器有2个hba卡,存储分了3个lun.

在执行udev 脚本后,发现result的值出现重复(刚好重复4次)..这样的udev 算不算成功,会有哪些影响?# for r in b c d e f g h i j k l m ;
> do
> echo "KERNEL==\"sd*\", BUS==\"scsi\", PROGRAM==\"/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/\$name\", RESULT==\"`/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/sd$r`\", NAME=\"asm-disk$r\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\""   
> done
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="3600601607ea034001a9f0dd2417be411", NAME="asm-diskb", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="3600601607ea034000c687b41407be411", NAME="asm-diskc", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="3600601607ea0340094a7f89b417be411", NAME="asm-diskd", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="3600601607ea034001a9f0dd2417be411", NAME="asm-diske", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="3600601607ea034000c687b41407be411", NAME="asm-diskf", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="3600601607ea0340094a7f89b417be411", NAME="asm-diskg", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="3600601607ea034001a9f0dd2417be411", NAME="asm-diskh", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="3600601607ea034000c687b41407be411", NAME="asm-diski", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="3600601607ea0340094a7f89b417be411", NAME="asm-diskj", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="3600601607ea034001a9f0dd2417be411", NAME="asm-diskk", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="3600601607ea034000c687b41407be411", NAME="asm-diskl", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="3600601607ea0340094a7f89b417be411", NAME="asm-diskm", OWNER="grid", GROUP="asmadmin", MODE="0660"
# ll -l /dev/sd*
brw-rw---- 1 root disk 8,   0 Dec  4 10:33 /dev/sda
brw-rw---- 1 root disk 8,   1 Dec  4 09:26 /dev/sda1
brw-rw---- 1 root disk 8,   2 Dec  4 09:26 /dev/sda2
brw-rw---- 1 root disk 8,   3 Dec  4 09:26 /dev/sda3
brw-rw---- 1 root disk 8,  16 Dec  4 09:26 /dev/sdb
brw-rw---- 1 root disk 8,  32 Dec  4 09:26 /dev/sdc
brw-rw---- 1 root disk 8,  48 Dec  4 10:33 /dev/sdd
brw-rw---- 1 root disk 8,  64 Dec  4 10:33 /dev/sde
brw-rw---- 1 root disk 8,  80 Dec  4 10:33 /dev/sdf
brw-rw---- 1 root disk 8,  96 Dec  4 09:26 /dev/sdg
brw-rw---- 1 root disk 8, 112 Dec  4 10:33 /dev/sdh
brw-rw---- 1 root disk 8, 128 Dec  4 10:33 /dev/sdi
brw-rw---- 1 root disk 8, 144 Dec  4 10:33 /dev/sdj
brw-rw---- 1 root disk 8, 160 Dec  4 10:33 /dev/sdk
brw-rw---- 1 root disk 8, 176 Dec  4 10:33 /dev/sdl
brw-rw---- 1 root disk 8, 192 Dec  4 10:33 /dev/sdm

gdf 发表于 2014-12-9 19:59:56

需要使用多路径软件聚合

Leo 发表于 2014-12-11 11:06:50

使用了multipath+udev,处理好了!
页: [1]
查看完整版本: 存储udev多路径问题