- 论坛徽章:
- 0
|
资料:
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. |
|