Found duplicate PV

发布于 2022-10-15 08:22:16 字数 1422 浏览 18 评论 0

本帖最后由 dxwwp 于 2011-04-28 01:40 编辑

suse 10 sp2
目前系统上没有挂载存储,但是在执行lvscan、vgscan及pvscan时,都有如下信息:
  Found duplicate PV 2tciXcTxgrOXDETcirqIvF5TNEICYwAP: using /dev/sde1 not /dev/sdq1
  Found duplicate PV Evxn60uCZ8X2ACP89802E68Ji1oxdYlO: using /dev/sdf1 not /dev/sdb1
  Found duplicate PV 2vSQSBehYhbsx1J1o9tcTXOwo848q7xV: using /dev/sdg1 not /dev/sdc1
  Found duplicate PV PBwp1Z0UY7Vmpyy6FBxWG4V2h11cJ5Dk: using /dev/sdh1 not /dev/sdd1
  Found duplicate PV 2tciXcTxgrOXDETcirqIvF5TNEICYwAP: using /dev/sdi1 not /dev/sde1
  Found duplicate PV Evxn60uCZ8X2ACP89802E68Ji1oxdYlO: using /dev/sdj1 not /dev/sdf1
  Found duplicate PV 2vSQSBehYhbsx1J1o9tcTXOwo848q7xV: using /dev/sdk1 not /dev/sdg1
  Found duplicate PV PBwp1Z0UY7Vmpyy6FBxWG4V2h11cJ5Dk: using /dev/sdl1 not /dev/sdh1
  Found duplicate PV 2tciXcTxgrOXDETcirqIvF5TNEICYwAP: using /dev/sdm1 not /dev/sdi1
  Found duplicate PV Evxn60uCZ8X2ACP89802E68Ji1oxdYlO: using /dev/sdn1 not /dev/sdj1
  Found duplicate PV 2vSQSBehYhbsx1J1o9tcTXOwo848q7xV: using /dev/sdo1 not /dev/sdk1
  Found duplicate PV PBwp1Z0UY7Vmpyy6FBxWG4V2h11cJ5Dk: using /dev/sdp1 not /dev/sdl1

因为是利旧设备,不清楚之前是否挂载过存储,虽然知道目前这些提示信息对系统没什么影响,但还是想清除,请各位高手赐教,谢!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

扶醉桌前 2022-10-22 08:22:16

回复 1# dxwwp

    不是可以屏蔽这些提示字符吗?

趴在窗边数星星i 2022-10-22 08:22:16

资料:
By creating LVM on RAID 1 device, it could happen PVs are not created on the RAID device but on the physical partitions (e.g.: /dev/sda1 and /dev/sdb1 if there are part of /dev/md0). This will result as an error by doing LVM scanning (pvscan, vgscan, ...) like Found duplicate PV 9w3TIxKZ6lFRqWUmQm9tlV5nsdUkTi4i: using /dev/sda1 not /dev/sdb1 and will make impossible to create a new volume group on /dev/md0. In this case, you have to create a filter for LVM. In the /etc/lvm/lvm.conf file, you have to add such a line: filter = ["r|/dev/cdrom|","r|hd[ab]|" ] Logically, replace "hd" with "sd" for SCSI devices and "ab" with the correct one. This will prevent such devices are scanned or used for LVM. You have to reload LVM with /etc/init.d/lvm force-reload but since your system is on LVM, this is not possible. Therefore you have to reboot.

青瓷清茶倾城歌 2022-10-22 08:22:16

我在lvm.conf文件中添加了如下红色部分
# By default we accept every block device except udev names:
filter = [ "r|/dev/.*/by-path/.*|", "r|/dev/.*/by-id/.*|", "a/.*/","r|/dev/sde|" ]

reboot之后用lvscan之类的看不到之前的报错信息了,但是为什么我只是添加了对sde的过滤,可实际上系统把所有sde之后的都过滤了呢?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文