[root@zz0102lintxs04 ~]# multipathd -k multipathd>
2、检查当前生效的配置文件内容:
multipathd> show config defaults { verbosity 2 polling_interval 10 udev_dir "/dev" multipath_dir "/lib64/multipath" path_selector "round-robin 0" path_grouping_policy failover getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n" prio const features "0" path_checker directio failback manual rr_min_io 1000 rr_min_io_rq 1 max_fds 1048576 rr_weight uniform queue_without_daemon no hwtable_regex_match no checker_timeout 120 flush_on_last_del yes user_friendly_names yes find_multipaths no log_checker_err always retain_attached_hw_handler no detect_prio no reload_readwrite no replace_wwid_whitespace no force_sync no skip_kpartx no config_dir "/etc/multipath/conf.d" delay_watch_checks no delay_wait_checks no disable_changed_wwids no } blacklist { devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*" devnode "^(td|hd)[a-z]" devnode "^dcssblk[0-9]*" wwid "35000cca018649a80" device { vendor "DGC" product "LUNZ" } device { vendor "EMC" product "LUNZ" } device { vendor "IBM" product "Universal Xport" } device { vendor "IBM" product "S/390.*" } device { vendor "DELL" product "Universal Xport" } device { vendor "SGI" product "Universal Xport" } device { vendor "STK" product "Universal Xport" } device { vendor "SUN" product "Universal Xport" } device { vendor "(NETAPP|LSI|ENGENIO)" product "Universal Xport" } } blacklist_exceptions { } devices { device { vendor "MacroSAN" product "LU" path_grouping_policy group_by_prio getuid_callout "/lib/udev/scsi_id --whitelisted --device=/dev/%n" path_selector "round-robin 0" path_checker tur hardware_handler "0" prio alua failback 15 no_path_retry 30 } #............. #省略大部分都是multipath默认配置 multipaths { multipath { wwid 3600b342505dda17de293dbd26d0000de alias mpatha } multipath { wwid 3600b34282e3a4d8d7412d9960dc800d6 alias mpathc } } multipathd> multipathd>3、查看所有的块设备(包括黑名单和白名单的设备):
multipathd> show devices available block devices: ram0 devnode blacklisted, unmonitored ram1 devnode blacklisted, unmonitored ram2 devnode blacklisted, unmonitored ram3 devnode blacklisted, unmonitored ram4 devnode blacklisted, unmonitored ram5 devnode blacklisted, unmonitored ram6 devnode blacklisted, unmonitored ram7 devnode blacklisted, unmonitored ram8 devnode blacklisted, unmonitored ram9 devnode blacklisted, unmonitored ram10 devnode blacklisted, unmonitored ram11 devnode blacklisted, unmonitored ram12 devnode blacklisted, unmonitored ram13 devnode blacklisted, unmonitored ram14 devnode blacklisted, unmonitored ram15 devnode blacklisted, unmonitored loop0 devnode blacklisted, unmonitored loop1 devnode blacklisted, unmonitored loop2 devnode blacklisted, unmonitored loop3 devnode blacklisted, unmonitored loop4 devnode blacklisted, unmonitored loop5 devnode blacklisted, unmonitored loop6 devnode blacklisted, unmonitored loop7 devnode blacklisted, unmonitored sdc devnode whitelisted, monitored sdd devnode whitelisted, monitored sde devnode whitelisted, monitored sdb devnode whitelisted, monitored sda devnode whitelisted, unmonitored sr0 devnode blacklisted, unmonitored sdf devnode whitelisted, monitored dm-0 devnode blacklisted, unmonitored dm-1 devnode blacklisted, unmonitored sdh devnode whitelisted, monitored sdi devnode whitelisted, monitored sdg devnode whitelisted, monitored dm-2 devnode blacklisted, unmonitored dm-3 devnode blacklisted, unmonitored sdj devnode whitelisted, monitored sdk devnode whitelisted, monitored dm-4 devnode blacklisted, unmonitored multipathd>