Found duplicate PV
本帖最后由 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
回复 1# dxwwp
不是可以屏蔽这些提示字符吗?
资料:
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.
我在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之后的都过滤了呢?