matlab 关闭multipath,转:multipath排出本地硬盘

REDHAT 5以后不能再使用 qla的多路径软件,要使用系统自带的multipath工具,在系统启动的时候,会报如下错,这个和本地硬盘划分的分区个数有关(错误条数)

Apr 13 15:24:49 tgdb1 kernel: device-mapper: table: 253:0: multipath: error getting device

Apr 13 15:24:49 tgdb1 kernel: device-mapper: ioctl: error adding target to table

Apr 13 15:24:49 tgdb1 kernel: device-mapper: table: 253:0: multipath: error getting device

Apr 13 15:24:49 tgdb1 kernel: device-mapper: ioctl: error adding target to table

Apr 13 15:24:49 tgdb1 kernel: device-mapper: table: 253:115: multipath: error getting device

Apr 13 15:24:49 tgdb1 kernel: device-mapper: ioctl: error adding target to table

Apr 13 15:24:49 tgdb1 kernel: device-mapper: table: 253:115: multipath: error getting device

Apr 13 15:24:49 tgdb1 kernel: device-mapper: ioctl: error adding target to table

问题很简单,在mulutipath启动的时候检测到本地硬盘只有一条路径,所以报错,所以只要在multipath.conf里排出本地硬盘和分区就可以了。

blacklist{devnode “^sda”

devnode “^sda[1-3]}

可以看下官方的解释:http://sources.redhat.com/lvm2/wiki/MultipathUsageGuide,第9条,以前报的时候,知道没问题,懒的搞,今天处理了下。

When multipath/multipathd starts you might see a message(s) like

device-mapper: table: 253:0: multipath: error getting device

device-mapper: ioctl: error adding target to table

in console or /var/log/messages. This is due to dm-multipath trying to create multipath devices for your root device and/or other devices that are already mounted or opened.

You can avoid this by adding a blacklist stanza in your /etc/multipath.conf file for those devices that generate these errors.

你可能感兴趣的:(matlab,关闭multipath)