来自同一存储阵列.
在一台服务器上,/ dev / disk / by-ID / scsi- *设备正确指向
多路径设备:
server1:/dev/disk/by-ID # ls -l scsi-* | awk '{print ,,;}'scsi-3600a0b80005047d80000050c4933f22c -> ../../dm-1scsi-3600a0b80005047d80000050c4933f22c-part1 -> ../../dm-2scsi-3600a0b80005047d80000050c4933f22c-part2 -> ../../dm-3scsi-3600a0b80005047d80000b0a14dbb20e4 -> ../../dm-0
另一方面,/ dev / disk / by-ID / scsi- *磁盘设备指向其中一个
路径而不是multipath dm设备:
server2:/dev/disk/by-ID # ls -l scsi-* | awk '{print ,;}'scsi-3600a0b80005047d80000a3464a07f6ee -> ../../dm-1scsi-3600a0b8000505008000004f84933e183 -> ../../sdascsi-3600a0b8000505008000004f84933e183-part1 -> ../../dm-4scsi-3600a0b8000505008000004f84933e183-part2 -> ../../dm-5scsi-3600a0b80005050080000057749352a81 -> ../../sddscsi-3600a0b80005050080000057749352a81-part1 -> ../../dm-6scsi-3600a0b80005050080000a7cd4dbb2498 -> ../../sdg
这会导致问题,因为某些磁盘配置为使用整个磁盘
磁盘作为光伏.
我们需要在server2上更改什么才能让系统设置所有scsi- *链接
指向多路径设备而不是单个路径?
In SUSE linux Enterprise Server 10,
the kpartx software is used in the
/etc/init.d/boot.multipath to add
symlinks to the /dev/dm-* line in the
multipath.conf configuration file for
any newly created partitions without
requiring a reboot. This triggers
udevd to fill in the /dev/disk/by-*
symlinks.
所以,我愿意
>检查是否在第二台服务器上运行了boot.multipath
>检查两台服务器上的udev配置是否相同
>检查第二台服务器上是否正在运行udevd
如果所有这些都成立,您可以尝试在多路径设备上运行kpartx -a,以查看/ dev / disk / by-ID /中的条目是否已更新.
在你理顺之后,你仍然需要编辑lvm.conf.再次,从documentation:
总结By default,LVM2 does not recognize multipathed devices. To make LVM2 recognize the multipathed devices as possible physical volumes,you must modify /etc/lvm/lvm.conf. It is important to modify it so that it does not scan and use the physical paths,but only accesses the multipath I/O storage through the multipath I/O layer. If you are using user-frIEndly names,make sure to specify the path so that it scans only the device mapper names for the device (/dev/disk/by-ID/dm-uuID-.-mpath-.) after multipathing is configured.
以上是内存溢出为你收集整理的linux – / dev / disk / by-id / scsi- *指向sdX而不是多路径设备的链接全部内容,希望文章能够帮你解决linux – / dev / disk / by-id / scsi- *指向sdX而不是多路径设备的链接所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)