免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3279 | 回复: 0

[学习分享] redhat 6.5 不能看见磁盘的scsi_id [复制链接]

论坛徽章:
0
发表于 2016-02-24 21:23 |显示全部楼层
红帽6.5虚拟机安装multipath后无法识别出盘的信息,如下所示:
[root@db02 /]# multipath -ll
[root@db02 /]#
查看multipath配置信息,确认磁盘ID不在block列表里
##
#blacklist {
#       wwid 26353900f02796769
#       devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
#       devnode "^hd[a-z]"
#}
multipaths {
#       multipath {
#               wwid                    3600508b4000156d700012000000b0000
#               alias                   yellow
#               path_grouping_policy    multibus
#               path_checker            readsector0
#               path_selector           "round-robin 0"
#               failback                manual
#               rr_weight               priorities
#               no_path_retry           5
#       }
        multipath {
                wwid                    36000c290a7059574ab00ba1af518092f
                alias                   RACDATA01
        }
}
#devices {
#       device {
#               vendor                  "COMPAQ  "
#               product                 "HSV110 (C)COMPAQ"
#               path_grouping_policy    multibus
#               getuid_callout          "/lib/udev/scsi_id --whitelisted --device=/dev/%n"
#               path_checker            readsector0
#               path_selector           "round-robin 0"
#               hardware_handler        "0"
#               failback                15
#               rr_weight               priorities
#               no_path_retry           queue
#       }
#       device {
#               vendor                  "COMPAQ  "
#               product                 "MSA1000         "
#               path_grouping_policy    multibus
#       }
#}

blacklist {
}
[root@db02 /]# /sbin/mpathconf
multipath is enabled
find_multipaths is disabled
user_friendly_names is enabled
dm_multipath module is loaded
multipathd is chkconfiged on
[root@db02 /]#


查看 disk 下 by-id信息 (明显缺少scsi id信息)
[root@db02 /]# cd /dev/disk/
[root@db02 disk]# ll by-id/
total 0
lrwxrwxrwx. 1 root root 10 Feb 24 21:03 dm-name-vg_db02-lv_root -> ../../dm-0
lrwxrwxrwx. 1 root root 10 Feb 24 21:03 dm-name-vg_db02-lv_swap -> ../../dm-1
lrwxrwxrwx. 1 root root 10 Feb 24 21:03 dm-uuid-LVM-ZZ97lEc6ZBeCVxWyUw9fI98wKS2Jkk0M8WOQ7cq8u9cqOJ2MArDH1kkmRaz0KHmK -> ../../dm-0
lrwxrwxrwx. 1 root root 10 Feb 24 21:03 dm-uuid-LVM-ZZ97lEc6ZBeCVxWyUw9fI98wKS2Jkk0MwAV31QxHZSUM0GzPANbWLM7l5sOzQ6uI -> ../../dm-1
[root@db02 disk]#

正确的应该是这样
[root@db01 /]# ll /dev/disk/by-id/
total 0
lrwxrwxrwx. 1 root root 10 Feb 25 04:45 dm-name-RACDATA01 -> ../../dm-2
lrwxrwxrwx. 1 root root 10 Feb 25 04:45 dm-name-RACDATA01p1 -> ../../dm-3
lrwxrwxrwx. 1 root root 10 Feb 25 04:45 dm-name-vg_db01-lv_root -> ../../dm-0
lrwxrwxrwx. 1 root root 10 Feb 25 04:45 dm-name-vg_db01-lv_swap -> ../../dm-1
lrwxrwxrwx. 1 root root 10 Feb 25 04:45 dm-uuid-LVM-TCoqK1VSeInOK0b2MUdTOxJctuTJjjuG2hktdz9skj5mPK6ljoY6hd4RmbZpArXs -> ../../dm-0
lrwxrwxrwx. 1 root root 10 Feb 25 04:45 dm-uuid-LVM-TCoqK1VSeInOK0b2MUdTOxJctuTJjjuGEenR8iQtw8yzScfjY6N2yfuSnZsRVPCH -> ../../dm-1
lrwxrwxrwx. 1 root root 10 Feb 25 04:45 dm-uuid-mpath-36000c290a7059574ab00ba1af518092f -> ../../dm-2
lrwxrwxrwx. 1 root root 10 Feb 25 04:45 dm-uuid-part1-mpath-36000c290a7059574ab00ba1af518092f -> ../../dm-3
lrwxrwxrwx. 1 root root  9 Feb 25 04:45 scsi-36000c290a7059574ab00ba1af518092f -> ../../sdb
lrwxrwxrwx. 1 root root 10 Feb 25 04:45 scsi-36000c290a7059574ab00ba1af518092f-part1 -> ../../sdb1

lrwxrwxrwx. 1 root root  9 Feb 25 04:45 wwn-0x6000c290a7059574ab00ba1af518092f -> ../../sdb
lrwxrwxrwx. 1 root root 10 Feb 25 04:45 wwn-0x6000c290a7059574ab00ba1af518092f-part1 -> ../../sdb1
[root@db01 /]#

尝试添加如下参数
[root@db02]# cat /etc/scsi_id.config
options=--whitelisted --replace-whitespace

通过scsi_id获取磁盘id无输出
[root@db02 disk]# /lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/sdb

scsi_id输出应该如下所示:
[root@db01 /]# /lib/udev/scsi_id --whitelisted --replace-whitespace --device=/dev/sdb
36000c290a7059574ab00ba1af518092f
[root@db01 /]#


尝试使用 udevadm test 获取scsi_id信息,udevadmin test这个命令,它会模拟udev的工作流程,测试一下udev绑定是不是正确。在它工作时,会读取wwid,并且在结果输出时print出来, (输出中无scsi_id信息)
[root@db02 disk]# udevadm test /sys/block/sdb/
run_command: calling: test
udevadm_test: version 147
This program is for debugging only, it does not run any program,
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.

parse_file: reading '/lib/udev/rules.d/01-log-block.rules' as rules file
parse_file: reading '/lib/udev/rules.d/10-console.rules' as rules file
parse_file: reading '/lib/udev/rules.d/10-dm.rules' as rules file
parse_file: reading '/lib/udev/rules.d/11-dm-lvm.rules' as rules file
parse_file: reading '/lib/udev/rules.d/13-dm-disk.rules' as rules file
parse_file: reading '/lib/udev/rules.d/40-isdn.rules' as rules file
parse_file: reading '/lib/udev/rules.d/40-libgphoto2.rules' as rules file
parse_file: reading '/lib/udev/rules.d/40-multipath.rules' as rules file
parse_file: reading '/lib/udev/rules.d/40-redhat.rules' as rules file
parse_file: reading '/lib/udev/rules.d/40-usb-media-players.rules' as rules file
parse_file: reading '/lib/udev/rules.d/42-qemu-usb.rules' as rules file
parse_file: reading '/lib/udev/rules.d/50-firmware.rules' as rules file
parse_file: reading '/lib/udev/rules.d/50-udev-default.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-alias-kmsg.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-cdrom_id.rules' as rules file
parse_file: reading '/etc/udev/rules.d/60-fprint-autosuspend.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-libmtp.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-net.rules' as rules file
parse_file: reading '/etc/udev/rules.d/60-pcmcia.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-alsa.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-input.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-serial.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-storage-tape.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-storage.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-persistent-v4l.rules' as rules file
parse_file: reading '/etc/udev/rules.d/60-raw.rules' as rules file
parse_file: reading '/lib/udev/rules.d/60-wacom.rules' as rules file
parse_file: reading '/lib/udev/rules.d/61-gnome-bluetooth-rfkill.rules' as rules file
parse_file: reading '/lib/udev/rules.d/61-mobile-action.rules' as rules file
parse_file: reading '/lib/udev/rules.d/61-option-modem-modeswitch.rules' as rules file
parse_file: reading '/lib/udev/rules.d/61-persistent-storage-edd.rules' as rules file
parse_file: reading '/lib/udev/rules.d/61-uinput-stddev.rules' as rules file
parse_file: reading '/lib/udev/rules.d/61-uinput-wacom.rules' as rules file
parse_file: reading '/lib/udev/rules.d/64-device-mapper.rules' as rules file
parse_file: reading '/lib/udev/rules.d/64-md-raid.rules' as rules file
parse_file: reading '/lib/udev/rules.d/65-libsane.rules' as rules file
parse_file: reading '/lib/udev/rules.d/65-libwacom.rules' as rules file
parse_file: reading '/lib/udev/rules.d/65-md-incremental.rules' as rules file
parse_file: reading '/lib/udev/rules.d/69-dm-lvm-metad.rules' as rules file
parse_file: reading '/lib/udev/rules.d/70-acl.rules' as rules file
parse_file: reading '/lib/udev/rules.d/70-cups-libusb.rules' as rules file
parse_file: reading '/lib/udev/rules.d/70-hid2hci.rules' as rules file
parse_file: reading '/etc/udev/rules.d/70-persistent-cd.rules' as rules file
parse_file: reading '/etc/udev/rules.d/70-persistent-net.rules' as rules file
parse_file: reading '/lib/udev/rules.d/70-printers.rules' as rules file
parse_file: reading '/lib/udev/rules.d/71-biosdevname.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-cd-aliases-generator.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-net-description.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-persistent-net-generator.rules' as rules file
parse_file: reading '/lib/udev/rules.d/75-tty-description.rules' as rules file
parse_file: reading '/lib/udev/rules.d/77-mm-ericsson-mbm.rules' as rules file
parse_file: reading '/lib/udev/rules.d/77-mm-longcheer-port-types.rules' as rules file
parse_file: reading '/lib/udev/rules.d/77-mm-pcmcia-device-blacklist.rules' as rules file
parse_file: reading '/lib/udev/rules.d/77-mm-platform-serial-whitelist.rules' as rules file
parse_file: reading '/lib/udev/rules.d/77-mm-simtech-port-types.rules' as rules file
parse_file: reading '/lib/udev/rules.d/77-mm-usb-device-blacklist.rules' as rules file
parse_file: reading '/lib/udev/rules.d/77-mm-zte-port-types.rules' as rules file
parse_file: reading '/lib/udev/rules.d/77-nm-olpc-mesh.rules' as rules file
parse_file: reading '/lib/udev/rules.d/78-sound-card.rules' as rules file
parse_file: reading '/lib/udev/rules.d/79-fstab_import.rules' as rules file
parse_file: reading '/lib/udev/rules.d/80-drivers.rules' as rules file
parse_file: reading '/lib/udev/rules.d/80-iosched.rules' as rules file
parse_file: reading '/lib/udev/rules.d/80-mpath-iosched.rules' as rules file
parse_file: reading '/lib/udev/rules.d/80-udisks.rules' as rules file
parse_file: reading '/lib/udev/rules.d/81-kvm-rhel.rules' as rules file
parse_file: reading '/lib/udev/rules.d/85-regulatory.rules' as rules file
parse_file: reading '/lib/udev/rules.d/85-usbmuxd.rules' as rules file
parse_file: reading '/lib/udev/rules.d/88-clock.rules' as rules file
parse_file: reading '/lib/udev/rules.d/89-microcode.rules' as rules file
parse_file: reading '/etc/udev/rules.d/90-alsa.rules' as rules file
parse_file: reading '/etc/udev/rules.d/90-hal.rules' as rules file
parse_file: reading '/lib/udev/rules.d/90-pulseaudio.rules' as rules file
parse_file: reading '/lib/udev/rules.d/91-drm-modeset.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-devkit-power-battery-recall-dell.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-devkit-power-battery-recall-fujitsu.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-devkit-power-battery-recall-gateway.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-devkit-power-battery-recall-ibm.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-devkit-power-battery-recall-lenovo.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-devkit-power-battery-recall-toshiba.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-devkit-power-csr.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-devkit-power-hid.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-devkit-power-wup.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-dm-notify.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-keyboard-force-release.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-keymap.rules' as rules file
parse_file: reading '/lib/udev/rules.d/95-udev-late.rules' as rules file
parse_file: reading '/etc/udev/rules.d/97-bluetooth-serial.rules' as rules file
parse_file: reading '/lib/udev/rules.d/97-bluetooth.rules' as rules file
parse_file: reading '/etc/udev/rules.d/98-kexec.rules' as rules file
parse_file: reading '/etc/udev/rules.d/99-fuse.rules' as rules file
parse_file: reading '/dev/.udev/rules.d/99-root.rules' as rules file
udev_rules_new: rules use 194520 bytes tokens (16210 * 12 bytes), 40015 bytes buffer
udev_rules_new: temporary index used 60440 bytes (3022 * 20 bytes)
udev_device_new_from_syspath: device 0x7f6d5ace2a90 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0/block/sdb'
udev_device_new_from_syspath: device 0x7f6d5acf22a0 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0/block/sdb'
udev_device_read_db: device 0x7f6d5acf22a0 filled with db file data
udev_device_read_db: device 0x7f6d5acf22a0 filled with db file data
udev_rules_apply_to_event: PROGRAM '/sbin/multipath -c /dev/sdb' /lib/udev/rules.d/40-multipath.rules:11
util_run_program: '/sbin/multipath -c /dev/sdb' started
util_run_program: '/sbin/multipath -c /dev/sdb' returned with exitcode 1
udev_rules_apply_to_event: RUN 'socket:/org/kernel/dm/multipath_event' /lib/udev/rules.d/40-multipath.rules:16
udev_device_new_from_syspath: device 0x7f6d5acda3d0 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0'
udev_device_new_from_syspath: device 0x7f6d5acd9fb0 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0'
udev_device_new_from_syspath: device 0x7f6d5acf2570 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3'
udev_device_new_from_syspath: device 0x7f6d5acf2740 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:07.0'
udev_device_new_from_syspath: device 0x7f6d5acf1e10 has devpath '/devices/pci0000:00/0000:00:11.0'
udev_device_new_from_syspath: device 0x7f6d5acf2040 has devpath '/devices/pci0000:00'
udev_rules_apply_to_event: LINK 'block/8:16' /lib/udev/rules.d/50-udev-default.rules:3
udev_rules_apply_to_event: GROUP 6 /lib/udev/rules.d/50-udev-default.rules:76
udev_rules_apply_to_event: IMPORT 'scsi_id --export --whitelisted -d /dev/sdb' /lib/udev/rules.d/60-persistent-storage.rules:41
util_run_program: 'scsi_id --export --whitelisted -d /dev/sdb' started
util_run_program: '/lib/udev/scsi_id' (stderr) 'scsi_id[2231]: custom logging function 0x7fdd19bda010 registered'
util_run_program: '/lib/udev/scsi_id' (stdout) 'ID_SCSI=1'
util_run_program: '/lib/udev/scsi_id' (stdout) 'ID_VENDOR=VMware_'
util_run_program: '/lib/udev/scsi_id' (stdout) 'ID_VENDOR_ENC=VMware\x2c\x20'
util_run_program: '/lib/udev/scsi_id' (stdout) 'ID_MODEL=VMware_Virtual_S'
util_run_program: '/lib/udev/scsi_id' (stdout) 'ID_MODEL_ENC=VMware\x20Virtual\x20S'
util_run_program: '/lib/udev/scsi_id' (stdout) 'ID_REVISION=1.0'
util_run_program: '/lib/udev/scsi_id' (stdout) 'ID_TYPE=disk'
util_run_program: 'scsi_id --export --whitelisted -d /dev/sdb' returned with exitcode 0
udev_rules_apply_to_event: IMPORT 'path_id /devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0/block/sdb' /lib/udev/rules.d/60-persistent-storage.rules:60
util_run_program: 'path_id /devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0/block/sdb' started
util_run_program: '/lib/udev/path_id' (stderr) 'path_id[2232]: custom logging function 0x7fd62bd3b010 registered'
util_run_program: '/lib/udev/path_id' (stderr) 'path_id[2232]: device 0x7fd62bd3b120 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0/block/sdb''
util_run_program: '/lib/udev/path_id' (stderr) 'path_id[2232]: device 0x7fd62bd3b400 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0''
util_run_program: '/lib/udev/path_id' (stderr) 'path_id[2232]: device 0x7fd62bd3b7b0 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0''
util_run_program: '/lib/udev/path_id' (stderr) 'path_id[2232]: device 0x7fd62bd3bae0 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3''
util_run_program: '/lib/udev/path_id' (stderr) 'path_id[2232]: device 0x7fd62bd3bdf0 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:07.0''
util_run_program: '/lib/udev/path_id' (stderr) 'path_id[2232]: device 0x7fd62bd3c100 has devpath '/devices/pci0000:00/0000:00:11.0''
util_run_program: '/lib/udev/path_id' (stderr) 'path_id[2232]: device 0x7fd62bd3c3f0 has devpath '/devices/pci0000:00''
util_run_program: '/lib/udev/path_id' (stdout) 'ID_PATH=pci-0000:02:07.0-scsi-0:0:0:0'
util_run_program: 'path_id /devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0/block/sdb' returned with exitcode 0
udev_rules_apply_to_event: LINK 'disk/by-path/pci-0000:02:07.0-scsi-0:0:0:0' /lib/udev/rules.d/60-persistent-storage.rules:61
udev_rules_apply_to_event: IMPORT '/sbin/blkid -o udev -p /dev/sdb' /lib/udev/rules.d/60-persistent-storage.rules:76
util_run_program: '/sbin/blkid -o udev -p /dev/sdb' started
util_run_program: '/sbin/blkid' (stdout) 'ID_PART_TABLE_TYPE=dos'
util_run_program: '/sbin/blkid -o udev -p /dev/sdb' returned with exitcode 0
udev_rules_apply_to_event: IMPORT 'edd_id --export /dev/sdb' /lib/udev/rules.d/61-persistent-storage-edd.rules:8
util_run_program: 'edd_id --export /dev/sdb' started
util_run_program: '/lib/udev/edd_id' (stderr) 'edd_id[2234]: custom logging function 0x7f4249b63010 registered'
util_run_program: '/lib/udev/edd_id' (stderr) 'edd_id[2234]: no kernel EDD support'
util_run_program: '/lib/udev/edd_id' (stderr) 'no kernel EDD support'
util_run_program: 'edd_id --export /dev/sdb' returned with exitcode 2
udev_rules_apply_to_event: ATTR '/sys/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0/block/sdb/queue/iosched/slice_idle' writing '0' /lib/udev/rules.d/80-iosched.rules:12
udev_rules_apply_to_event: ATTR '/sys/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0/block/sdb/queue/iosched/quantum' writing '32' /lib/udev/rules.d/80-iosched.rules:13
udev_rules_apply_to_event: IMPORT 'udisks-part-id /dev/sdb' /lib/udev/rules.d/80-udisks.rules:87
util_run_program: 'udisks-part-id /dev/sdb' started
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'libudev: udev_device_new_from_syspath: '
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'device 0x64e1e0 has devpath '/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0/block/sdb''
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'libudev: udev_device_read_db: '
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'device 0x64e1e0 filled with db file data'
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'using device_file=/dev/sdb syspath=/sys/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0/block/sdb, offset=0 ao=0 and number=0 for /dev/sdb'
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'Entering MS-DOS parser (offset=0, size=10737418240)'
util_run_program: '/lib/udev/udisks-part-id' (stderr) ''
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'MSDOS_MAGIC found'
util_run_program: '/lib/udev/udisks-part-id' (stderr) ''
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'looking at part 0 (offset 32256, size 10733958144, type 0x83)'
util_run_program: '/lib/udev/udisks-part-id' (stderr) ''
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'new part entry'
util_run_program: '/lib/udev/udisks-part-id' (stderr) ''
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'looking at part 1 (offset 0, size 0, type 0x00)'
util_run_program: '/lib/udev/udisks-part-id' (stderr) ''
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'new part entry'
util_run_program: '/lib/udev/udisks-part-id' (stderr) ''
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'looking at part 2 (offset 0, size 0, type 0x00)'
util_run_program: '/lib/udev/udisks-part-id' (stderr) ''
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'new part entry'
util_run_program: '/lib/udev/udisks-part-id' (stderr) ''
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'looking at part 3 (offset 0, size 0, type 0x00)'
util_run_program: '/lib/udev/udisks-part-id' (stderr) ''
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'new part entry'
util_run_program: '/lib/udev/udisks-part-id' (stderr) ''
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'Exiting MS-DOS parser'
util_run_program: '/lib/udev/udisks-part-id' (stderr) ''
util_run_program: '/lib/udev/udisks-part-id' (stderr) 'MSDOS partition table detected'
util_run_program: '/lib/udev/udisks-part-id' (stderr) ''
util_run_program: '/lib/udev/udisks-part-id' (stdout) 'UDISKS_PARTITION_TABLE=1'
util_run_program: '/lib/udev/udisks-part-id' (stdout) 'UDISKS_PARTITION_TABLE_SCHEME=mbr'
util_run_program: '/lib/udev/udisks-part-id' (stdout) 'UDISKS_PARTITION_TABLE_COUNT=1'
util_run_program: 'udisks-part-id /dev/sdb' returned with exitcode 0
udev_rules_apply_to_event: RUN 'socket/org/freedesktop/hal/udev_event' /etc/udev/rules.d/90-hal.rules:2
udev_event_execute_rules: no node name set, will use kernel supplied name 'sdb'
udev_device_update_db: created db file for '/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0/block/sdb' in '/dev/.udev/db/block:sdb'
udev_node_add: creating device node '/dev/sdb', devnum=8:16, mode=0660, uid=0, gid=6
udev_node_mknod: preserve file '/dev/sdb', because it has correct dev_t
udev_node_mknod: preserve permissions /dev/sdb, 060660, uid=0, gid=6
node_symlink: preserve already existing symlink '/dev/block/8:16' to '../sdb'
link_find_prioritized: found '/sys/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0/block/sdb' claiming '/dev/.udev/links/disk\x2fby-path\x2fpci-0000:02:07.0-scsi-0:0:0:0'
link_update: creating link '/dev/disk/by-path/pci-0000:02:07.0-scsi-0:0:0:0' to '/dev/sdb'
node_symlink: preserve already existing symlink '/dev/disk/by-path/pci-0000:02:07.0-scsi-0:0:0:0' to '../../sdb'
udevadm_test: UDEV_LOG=6
udevadm_test: DEVPATH=/devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0/block/sdb
udevadm_test: MAJOR=8
udevadm_test: MINOR=16
udevadm_test: DEVNAME=/dev/sdb
udevadm_test: DEVTYPE=disk
udevadm_test: ACTION=add
udevadm_test: SUBSYSTEM=block
udevadm_test: MPATH_SBIN_PATH=/sbin
udevadm_test: DEVLINKS=/dev/block/8:16 /dev/disk/by-path/pci-0000:02:07.0-scsi-0:0:0:0
udevadm_test: ID_SCSI=1
udevadm_test: ID_VENDOR=VMware_
udevadm_test: ID_VENDOR_ENC=VMware\x2c\x20
udevadm_test: ID_MODEL=VMware_Virtual_S
udevadm_test: ID_MODEL_ENC=VMware\x20Virtual\x20S
udevadm_test: ID_REVISION=1.0
udevadm_test: ID_TYPE=disk
udevadm_test: ID_BUS=scsi
udevadm_test: ID_PATH=pci-0000:02:07.0-scsi-0:0:0:0
udevadm_test: ID_PART_TABLE_TYPE=dos
udevadm_test: LVM_SBIN_PATH=/sbin
udevadm_test: .ID_FS_TYPE_NEW=
udevadm_test: ID_FS_TYPE=
udevadm_test: UDISKS_PRESENTATION_NOPOLICY=0
udevadm_test: UDISKS_PARTITION_TABLE=1
udevadm_test: UDISKS_PARTITION_TABLE_SCHEME=mbr
udevadm_test: UDISKS_PARTITION_TABLE_COUNT=1
udevadm_test: run: 'socket:/org/kernel/dm/multipath_event'
udevadm_test: run: 'socket/org/freedesktop/hal/udev_event'
[root@db02 disk]#


正确输出如下
[root@db01 /]# udevadm test /sys/block/sdb/
。。。。。。。。。。。。。。。。。
util_run_program: 'scsi_id --export --whitelisted -d /dev/sdb' returned with exitcode 0
udev_rules_apply_to_event: LINK 'disk/by-id/scsi-36000c290a7059574ab00ba1af518092f' /lib/udev/rules.d/60-persistent-storage.rules:43
udev_rules_apply_to_event: IMPORT 'path_id /devices/pci0000:00/0000:00:11.0/0000:02:07.0/host3/target3:0:0/3:0:0:0/block/sdb' /lib/udev/rules.d/60-persistent-storage.rules:60
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
udevadm_test: DEVLINKS=/dev/block/8:16 /dev/disk/by-id/scsi-36000c290a7059574ab00ba1af518092f /dev/disk/by-path/pci-0000:02:07.0-scsi-0:0:0:0 /dev/disk/by-id/wwn-0x6000c290a7059574ab00ba1af518092f
udevadm_test: ID_SCSI=1
udevadm_test: ID_VENDOR=VMware_
udevadm_test: ID_VENDOR_ENC=VMware\x2c\x20
udevadm_test: ID_MODEL=VMware_Virtual_S
udevadm_test: ID_MODEL_ENC=VMware\x20Virtual\x20S
udevadm_test: ID_REVISION=1.0
udevadm_test: ID_TYPE=disk
udevadm_test: ID_SERIAL_RAW=36000c290a7059574ab00ba1af518092f
udevadm_test: ID_SERIAL=36000c290a7059574ab00ba1af518092f
udevadm_test: ID_SERIAL_SHORT=6000c290a7059574ab00ba1af518092f
udevadm_test: ID_WWN=0x6000c290a7059574
udevadm_test: ID_WWN_VENDOR_EXTENSION=0xab00ba1af518092f
udevadm_test: ID_WWN_WITH_EXTENSION=0x6000c290a7059574ab00ba1af518092f
udevadm_test: ID_SCSI_SERIAL=6000c290a7059574ab00ba1af518092f


尝试使用 multipath -v3 查看信息
[root@db02 disk]# multipath -v3

Feb 24 21:20:28 | sdb: getuid = /lib/udev/scsi_id --whitelisted --device=/dev/%n (config file default)
Feb 24 21:20:28 | /lib/udev/scsi_id exitted with 1
Feb 24 21:20:28 | error calling out /lib/udev/scsi_id --whitelisted --device=/dev/sdb
Feb 24 21:20:28 | sdb: state = running
Feb 24 21:20:28 | /lib/udev/scsi_id exitted with 1
Feb 24 21:20:28 | error calling out /lib/udev/scsi_id --whitelisted --device=/dev/sdb
Feb 24 21:20:28 | sdb: detect_prio = 1 (config file default)
Feb 24 21:20:28 | sdb: prio = const (config file default)
Feb 24 21:20:28 | sdb: const prio = 1
Feb 24 21:20:28 | sr0: device node name blacklisted
Feb 24 21:20:28 | dm-0: device node name blacklisted
Feb 24 21:20:28 | dm-1: device node name blacklisted
===== paths list =====
uuid hcil    dev dev_t pri dm_st chk_st vend/prod/rev            dev_st
     2:0:0:0 sda 8:0   1   undef ready  VMware,,VMware Virtual S running
     3:0:0:0 sdb 8:16  1   undef ready  VMware,,VMware Virtual S running
[root@db02 disk]#

最后发现是 vmx 缺少配置文件  disk.EnableUUID ="TRUE" , 添加后即正常。



您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

SACC2019中国系统架构师大会

【数字转型 架构演进】SACC2019中国系统架构师大会
2019年10月31日~11月2日第11届中国系统架构师大会(SACC2019)将在北京隆重召开。四大主线并行的演讲模式,1个主会场、20个技术专场、超千人参与的会议规模,100+来自互联网、金融、制造业、电商等领域的嘉宾阵容,将为广大参会者提供一场最具价值的技术交流盛会。




----------------------------------------

大会官网>>
  

北京盛拓优讯信息技术有限公司. 版权所有 16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122
中国互联网协会会员  联系我们:huangweiwei@it168.com
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP