Hey,
(sorry for cross-posting, you will find this message also in centos-virt, maybe,
but this was not intended and a mistake)
I have a system with a mdraid 1
...
md1 : active raid1 sdb2[1] sda2[0]
1465031488 blocks [2/2] [UU]
...
this raid partition has a lvm physical volume with one volume group and several
logical volumes. This machine is running since years and I seldom touch the lvm
config. The lvm commands are giving me strange warnings I am uncomfortable with
...
# pvdisplay
Found duplicate PV b79x0kLXR9mAC0z0IZUxyJG1VC24Crl7: using /dev/sda2 not
/dev/md1
--- Physical volume ---
PV Name /dev/sda2
VG Name vg_sys
PV Size 1.36 TB / not usable 6.81 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 44709
Free PE 17701
Allocated PE 27008
PV UUID b79x0k-LXR9-mAC0-z0IZ-UxyJ-G1VC-24Crl7
...
What does this "Found duplicate PV b79x0kLXR9mAC0z0IZUxyJG1VC24Crl7: using
/dev/sda2 not /dev/md1" message?
Some logical volumes are virtual disks vor kvm guests. Are these guests using
sda only and not the mdraid?
--
Markus
On 04.12.2013 13:43, Markus Falb wrote:> > What does this "Found duplicate PV b79x0kLXR9mAC0z0IZUxyJG1VC24Crl7: > using /dev/sda2 not /dev/md1" message? > Some logical volumes are virtual disks vor kvm guests. Are these > guests using sda only and not the mdraid?Markus, I see /etc/lvm/lvm.conf has an option to ignore md members and seems on by default in EL6: md_component_detection = 1 If you run "pvdisplay /dev/sda2" what does it show? Normally you should get a "Failed to read physical volume "/dev/sda2". Do you have such thing in your /etc/lvm/lvm.conf? ADditionally you can force a filter on the drives, smth like: filter = ["r|/dev/sda2"] (make sure you delete /etc/lvm/cache/.cache and regenerate it with vgscan so as not to contain old stuff) -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro
Markus Falb wrote:> Hey, > (sorry for cross-posting, you will find this message also in centos-virt, > maybe, but this was not intended and a mistake) > > I have a system with a mdraid 1 > > ... > md1 : active raid1 sdb2[1] sda2[0] > 1465031488 blocks [2/2] [UU] > ... > > this raid partition has a lvm physical volume with one volume group and > several logical volumes. This machine is running since years and I seldom > touch the lvm config. The lvm commands are giving me strange warnings I am > uncomfortable with > > ... > # pvdisplay > Found duplicate PV b79x0kLXR9mAC0z0IZUxyJG1VC24Crl7: using /dev/sda2 not > /dev/md1 > --- Physical volume --- > PV Name /dev/sda2 > VG Name vg_sys > PV Size 1.36 TB / not usable 6.81 MB<snip> smartctl -t short to start. And is there anything in your logfiles saying something like " Device: /dev/sdb [SAT], 98 Currently unreadable (pending) sectors"? mark, who's working at decommissioning that server the line's from...