[CentOS] Found duplicate PV

Wed Dec 4 18:09:33 UTC 2013
m.roth at 5-cent.us <m.roth at 5-cent.us>

Markus Falb wrote:
>
> On 04.Dez.2013, at 15:57, Markus Falb wrote:
>> On 04.Dez.2013, at 15:11, m.roth at 5-cent.us wrote:
>>> Markus Falb wrote:
>>>> ...
>>>> # 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"?
>>
>> Interesting, I have this in /etc/smartd.conf
>> DEVICESCAN -n standby -a -m root -s (L/../../6/00|S/../.././00)
>>
>> but according to the selftest logs it seems it is only checking sdb but
>> *not* sda. I'll have to check this out.
>> A manual short test succeeded.
>> However, a failing disk should not affect LVM, should it?
>
> oh,
>
> ...
> # pvs /dev/sda2
>   Found duplicate PV b79x0kLXR9mAC0z0IZUxyJG1VC24Crl7: using /dev/md1 not
> /dev/sda2
>   PV         VG     Fmt  Attr PSize PFree
>   /dev/md1   vg_sys lvm2 a--  1.36T 553.16G
>
> # pvs /dev/sdb2
>   Failed to read physical volume "/dev/sdb2"
> ...
>
> smart status tells me
>
> ...
> 5 Reallocated_Sector_Ct   0x0033   001   001   036    Pre-fail  Always
> FAILING_NOW 4095
> ...
>
> smartd did not send warning mail, selftests are successful, only in the
> logfiles is
>
> ...
> Device: /dev/sdb [SAT], FAILED SMART self-check. BACK UP DATA NOW!
> Device: /dev/sdb [SAT], Failed SMART usage Attribute: 5
> Reallocated_Sector_Ct.
> ...
>
> I think I will replace sdb.

Good idea. You really want to do that before your logs suddenly fill with
DRDY errors....

        mark